Skip to content
Snippets Groups Projects
Commit be3b7439 authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-7160 Improve WcmsTestsContentTypeContactCest

parent a1dd7301
No related branches found
No related tags found
2 merge requests!83ISTWCMS-7160 Fix service content type in testAutomaticListBlocksSettings in...,!81ISTWCMS-7160 Make existing Codeception tests pass
...@@ -139,8 +139,9 @@ class WcmsTestsContentTypeContactCest { ...@@ -139,8 +139,9 @@ class WcmsTestsContentTypeContactCest {
]; ];
$i->waitForElementVisible("//button[contains(@class, 'tabledrag-toggle-weight')]", 60); $i->waitForElementVisible("//button[contains(@class, 'tabledrag-toggle-weight')]", 60);
$i->executeJS("document.querySelector(\"button.tabledrag-toggle-weight\").scrollIntoView(true);");
$i->waitForElementClickable("//button[contains(@class, 'tabledrag-toggle-weight')]", 60); $i->waitForElementClickable("//button[contains(@class, 'tabledrag-toggle-weight')]", 60);
$i->click("//button[contains(text(), 'Show row weights')]"); $i->click("//button[contains(@class, 'tabledrag-toggle-weight')]");
// Set weights for all contacts. // Set weights for all contacts.
foreach ($newOrder as $contactNum => $newPos) { foreach ($newOrder as $contactNum => $newPos) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment