public function UiPatternsLibraryOverviewTest::testSinglePages in UI Patterns 8
Tests overview page.
File
- modules/
ui_patterns_library/ tests/ src/ FunctionalJavascript/ UiPatternsLibraryOverviewTest.php, line 70
Class
- UiPatternsLibraryOverviewTest
- Test patterns overview page.
Namespace
Drupal\Tests\ui_patterns_library\FunctionalJavascriptCode
public function testSinglePages() {
$session = $this
->assertSession();
foreach ($this
->getExpectedPatterns() as $pattern) {
$this
->drupalGet('/patterns/' . $pattern['name']);
$session
->elementContains('css', 'h1', $pattern['label']);
// Assert pattern preview.
$this
->assertPatternPreview($pattern);
}
}