projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
modules
/
action
/
tests
/
src
/
FunctionalJavascript
/
ActionFormAjaxTest.php
diff --git
a/web/core/modules/action/tests/src/FunctionalJavascript/ActionFormAjaxTest.php
b/web/core/modules/action/tests/src/FunctionalJavascript/ActionFormAjaxTest.php
index bc314a573d5f79f9b1579a30c6964cf8d03bb26f..f4c85fc755d7054c1d9706bb9f449bfc6e607d33 100644
(file)
--- a/
web/core/modules/action/tests/src/FunctionalJavascript/ActionFormAjaxTest.php
+++ b/
web/core/modules/action/tests/src/FunctionalJavascript/ActionFormAjaxTest.php
@@
-3,7
+3,7
@@
namespace Drupal\Tests\action\FunctionalJavascript;
use Drupal\Core\Url;
namespace Drupal\Tests\action\FunctionalJavascript;
use Drupal\Core\Url;
-use Drupal\FunctionalJavascriptTests\
Javascript
TestBase;
+use Drupal\FunctionalJavascriptTests\
WebDriver
TestBase;
use Drupal\system\Entity\Action;
/**
use Drupal\system\Entity\Action;
/**
@@
-11,7
+11,7
@@
use Drupal\system\Entity\Action;
*
* @group action
*/
*
* @group action
*/
-class ActionFormAjaxTest extends
Javascript
TestBase {
+class ActionFormAjaxTest extends
WebDriver
TestBase {
/**
* {@inheritdoc}
/**
* {@inheritdoc}
@@
-33,16
+33,15
@@
class ActionFormAjaxTest extends JavascriptTestBase {
public function testActionConfigurationWithAjax() {
$url = Url::fromRoute('action.admin_add', ['action_id' => 'action_form_ajax_test']);
$this->drupalGet($url);
public function testActionConfigurationWithAjax() {
$url = Url::fromRoute('action.admin_add', ['action_id' => 'action_form_ajax_test']);
$this->drupalGet($url);
- $this->assertSession()->statusCodeEquals(200);
$page = $this->getSession()->getPage();
$id = 'test_plugin';
$page = $this->getSession()->getPage();
$id = 'test_plugin';
- $
page->find('css', '[name="id"]')
-
->setValue($id);
+ $
this->assertSession()->waitForElementVisible('named', ['button', 'Edit'])->press();
+
$this->assertSession()->waitForElementVisible('css', '[name="id"]')
->setValue($id);
$page->find('css', '[name="having_a_party"]')
->check();
$page->find('css', '[name="having_a_party"]')
->check();
- $this->assertSession()->waitForElement('css', '[name="party_time"]');
+ $this->assertSession()->waitForElement
Visible
('css', '[name="party_time"]');
$party_time = 'Evening';
$page->find('css', '[name="party_time"]')
$party_time = 'Evening';
$page->find('css', '[name="party_time"]')
@@
-54,7
+53,6
@@
class ActionFormAjaxTest extends JavascriptTestBase {
$url = Url::fromRoute('entity.action.collection');
$this->assertSession()->pageTextContains('The action has been successfully saved.');
$this->assertSession()->addressEquals($url);
$url = Url::fromRoute('entity.action.collection');
$this->assertSession()->pageTextContains('The action has been successfully saved.');
$this->assertSession()->addressEquals($url);
- $this->assertSession()->statusCodeEquals(200);
// Check storage.
$instance = Action::load($id);
// Check storage.
$instance = Action::load($id);