Skip to content

Commit

Permalink
Add sleep to allow the tables to resize and prevent possible errors
Browse files Browse the repository at this point in the history
The elements are not properly aligned and hence the click does not go through

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
  • Loading branch information
devenbansod committed Aug 23, 2017
1 parent f7fcecb commit 32c19d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/selenium/TestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,9 @@ public function navigateTable($table)
)->click();
$this->waitForElementNotPresent('byCssSelector', 'ajax_message_num_1');

// Wait for it to load
// Let table resize (uses JS)
sleep(1);

$this->waitForElement(
"byXPath",
"//a[@class='tabactive' and contains(., 'Browse')]"
Expand All @@ -629,6 +631,9 @@ public function navigateDatabase($database, $gotoHomepageRequired = false)
$this->waitForElement('byPartialLinkText','Databases')->click();
$this->waitForElementNotPresent('byCssSelector', 'div#loading_parent');

// Let the table resize (uses JS)
sleep(1);

// go to specific database page
$this->waitForElement(
'byXPath',
Expand Down

0 comments on commit 32c19d9

Please sign in to comment.