From 7363bd8ba2759638db2c6da4141d585f5d981e02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Fri, 18 Feb 2022 09:54:02 -0300 Subject: [PATCH] Add some explicit waits for `Selenium\ExportTest::testDbExport` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- test/selenium/ExportTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/selenium/ExportTest.php b/test/selenium/ExportTest.php index ffa7ef8fad80..f6f5e0a3a27d 100644 --- a/test/selenium/ExportTest.php +++ b/test/selenium/ExportTest.php @@ -159,13 +159,13 @@ private function doExport(string $type, string $plugin): string $this->scrollIntoView('checkbox_sql_if_not_exists'); $ele = $this->byId('checkbox_sql_if_not_exists'); if (! $ele->isSelected()) { - $this->byCssSelector('label[for=checkbox_sql_if_not_exists]')->click(); + $this->waitForElement('cssSelector', 'label[for=checkbox_sql_if_not_exists]')->click(); } } $this->scrollToBottom(); - $this->byId('buttonGo')->click(); + $this->waitForElement('id', 'buttonGo')->click(); $this->waitAjax(); return $this->waitForElement('id', 'textSQLDUMP')->getText();