Same name and namespace in other branches
  1. 8.x-1.x tests/src/FunctionalJavascript/ColorboxInlineJavascriptTest.php \Drupal\Tests\colorbox_inline\FunctionalJavascript\ColorboxInlineJavascriptTest::testInlineColorbox() 1 comment

Test the inline colorbox launches when a link is clicked.

File

tests/src/FunctionalJavascript/ColorboxInlineJavascriptTest.php, line 70

Class

ColorboxInlineJavascriptTest
Test that Colorbox Inline functions.

Namespace

Drupal\Tests\colorbox_inline\FunctionalJavascript

Code

public function testInlineColorbox() : void {
    $page = $this->getSession()
        ->getPage();
    $this->drupalGet('node/' . $this->node
        ->id());
    $this->clickLink('USS Voyager');
    $this->getSession()
        ->wait(static::COLORBOX_WAIT_TIMEOUT);
    $this->assertSession()
        ->elementContains('css', '#colorbox', 'NCC-74656');
}