Skip to content

Commit b371b12

Browse files
committed
Fix Export Selenium test
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent c8cd855 commit b371b12

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/test-selenium.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
- name: Set up PHP ${{ env.php-version }}
9494
uses: shivammathur/setup-php@v2
9595
with:
96+
coverage: "none"
9697
php-version: ${{ env.php-version }}
9798
extensions: mbstring, iconv, mysqli, zip, gd, bz2
9899

test/selenium/ExportTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace PhpMyAdmin\Tests\Selenium;
66

7+
use Facebook\WebDriver\Exception\ElementClickInterceptedException;
8+
79
/**
810
* @coversNothing
911
*/
@@ -164,8 +166,13 @@ private function doExport(string $type, string $plugin): string
164166
}
165167

166168
$this->scrollToBottom();
169+
try {
170+
$this->waitForElement('id', 'buttonGo')->click();
171+
} catch (ElementClickInterceptedException $exception) {
172+
$this->scrollToBottom();
173+
$this->waitForElement('id', 'buttonGo')->click();
174+
}
167175

168-
$this->waitForElement('id', 'buttonGo')->click();
169176
$this->waitAjax();
170177

171178
return $this->waitForElement('id', 'textSQLDUMP')->getText();

0 commit comments

Comments
 (0)