Commit 98ccb1ce authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-4535 Change assertOptionSelected() to assertSession()->optionExists()

Change record:
https://www.drupal.org/node/3129738
parent 34bf090b
......@@ -845,8 +845,8 @@ class UwWcmsBasicTest extends BrowserTestBase {
$tvi = $this->getSession()->getPage()->find('xpath', "//span[contains(text(), 'Taxonomy Views Integrator Settings')]");
$this->assertEquals('edit-tvi', $tvi->getParent()->getParent()->getAttribute('id'));
$this->assertSession()->checkboxChecked('edit-tvi-enable-override');
$this->assertOptionSelected('edit-tvi-view', 'uw_view_catalog_show_nodes');
$this->assertOptionSelected('edit-tvi-view-display', 'catalog_a_z_page');
$this->assertSession()->optionExists('edit-tvi-view', 'uw_view_catalog_show_nodes')->isSelected();
$this->assertSession()->optionExists('edit-tvi-view-display', 'catalog_a_z_page')->isSelected();
$this->assertSession()->checkboxChecked('tvi-inherit-check');
$this->assertSession()->checkboxChecked('tvi-pass-arguments');
......@@ -2153,7 +2153,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->drupalGet('admin/rearrange-contacts');
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->pageTextContains('Published');
$this->assertOptionSelected('edit-status', '- Any -');
$this->assertSession()->optionExists('edit-status', '- Any -')->isSelected();
$this->assertSession()->buttonExists('Apply filters');
// Check dashboard contact rearrange link.
......@@ -2272,7 +2272,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->drupalGet('admin/rearrange-profiles');
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->pageTextContains('Published');
$this->assertOptionSelected('edit-status', '- Any -');
$this->assertSession()->optionExists('edit-status', '- Any -')->isSelected();
$this->assertSession()->buttonExists('Apply filters');
// Check dashboard profile rearrange link.
......@@ -2516,11 +2516,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->checkboxNotChecked('edit-redirect-auto-redirect');
$this->assertSession()->checkboxChecked('edit-redirect-passthrough-querystring');
$this->assertOptionSelected('edit-redirect-default-status-code', '301 Moved Permanently');
$this->assertSession()->optionExists('edit-redirect-default-status-code', '301 Moved Permanently')->isSelected();
$this->assertSession()->checkboxChecked('edit-redirect-route-normalizer-enabled');
$this->assertSession()->checkboxNotChecked('edit-redirect-ignore-admin-path');
$this->assertSession()->checkboxNotChecked('edit-redirect-access-check');
$this->assertOptionSelected('edit-row-limit', '10000');
$this->assertSession()->optionExists('edit-row-limit', '10000')->isSelected();
$this->assertSession()->fieldExists('ignore_pages');
$this->assertSession()->checkboxNotChecked('edit-suppress-404');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment