Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663
This commit is contained in:
parent
eb34d130a8
commit
f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions
42
vendor/behat/mink/driver-testsuite/tests/Js/JavascriptTest.php
vendored
Normal file
42
vendor/behat/mink/driver-testsuite/tests/Js/JavascriptTest.php
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace Behat\Mink\Tests\Driver\Js;
|
||||
|
||||
use Behat\Mink\Tests\Driver\TestCase;
|
||||
|
||||
class JavascriptTest extends TestCase
|
||||
{
|
||||
public function testAriaRoles()
|
||||
{
|
||||
$this->getSession()->visit($this->pathTo('/aria_roles.html'));
|
||||
|
||||
$this->getSession()->wait(5000, '$("#hidden-element").is(":visible") === false');
|
||||
$this->getSession()->getPage()->pressButton('Toggle');
|
||||
$this->getSession()->wait(5000, '$("#hidden-element").is(":visible") === true');
|
||||
|
||||
$this->getSession()->getPage()->clickLink('Go to Index');
|
||||
$this->assertEquals($this->pathTo('/index.html'), $this->getSession()->getCurrentUrl());
|
||||
}
|
||||
|
||||
public function testDragDrop()
|
||||
{
|
||||
$this->getSession()->visit($this->pathTo('/js_test.html'));
|
||||
$webAssert = $this->getAssertSession();
|
||||
|
||||
$draggable = $webAssert->elementExists('css', '#draggable');
|
||||
$droppable = $webAssert->elementExists('css', '#droppable');
|
||||
|
||||
$draggable->dragTo($droppable);
|
||||
$this->assertEquals('Dropped!', $this->getAssertSession()->elementExists('css', 'p', $droppable)->getText());
|
||||
}
|
||||
|
||||
// test accentuated char in button
|
||||
public function testIssue225()
|
||||
{
|
||||
$this->getSession()->visit($this->pathTo('/issue225.html'));
|
||||
$this->getSession()->getPage()->pressButton('Créer un compte');
|
||||
$this->getSession()->wait(5000, '$("#panel").text() != ""');
|
||||
|
||||
$this->assertContains('OH AIH!', $this->getSession()->getPage()->getText());
|
||||
}
|
||||
}
|
Reference in a new issue