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

ISTWCMS-7160 Changes in WcmsTestsContentTypeContactCest

parent 2bb91e38
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,9 +139,9 @@ class WcmsTestsContentTypeContactCest {
];
$i->waitForElementVisible("button.tabledrag-toggle-weight", 60);
$i->executeJS("document.querySelector('button.tabledrag-toggle-weight').scrollIntoView(true);");
$i->executeJS("var elem = document.querySelector('button.tabledrag-toggle-weight'); elem.style.display = 'block'; elem.style.visibility = 'visible'; elem.scrollIntoView(true);");
$i->waitForElementClickable("button.tabledrag-toggle-weight", 60);
$i->click("button.tabledrag-toggle-weight");
$i->executeJS('document.querySelector("button.tabledrag-toggle-weight").click();');
// Set weights for all contacts.
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