public function ColorboxInlineJavascriptTest::testInlineColorbox in Colorbox Inline 8
Test the inline colorbox launches when a link is clicked.
File
- tests/
src/ FunctionalJavascript/ ColorboxInlineJavascriptTest.php, line 65
Class
- ColorboxInlineJavascriptTest
- Test that Colorbox Inline functions.
Namespace
Drupal\Tests\colorbox_inline\FunctionalJavascriptCode
public function testInlineColorbox() {
$this
->drupalGet('node/' . $this->node
->id());
$this
->getSession()
->getPage()
->clickLink('USS Voyager');
$this
->getSession()
->wait(static::COLORBOX_WAIT_TIMEOUT);
$this
->assertSession()
->elementContains('css', '#colorbox', 'NCC-74656');
}