Skip to content

Commit

Permalink
Merge pull request #391 from LorenzoBettini/flaky-swtbot-tests
Browse files Browse the repository at this point in the history
Flaky swtbot tests
  • Loading branch information
cdietrich authored Nov 20, 2023
2 parents de8a6a6 + 911e1d2 commit e66dbcd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-integtests-wizard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ jobs:
java-version: 17
- name: Build
run: xvfb-run scripts/integrationtests-wizard.sh
- name: Archive UI Tests Screenshots
uses: actions/upload-artifact@v2
if: ${{ failure() || cancelled() }}
with:
name: screenshots-${{ runner.os }}
path: '**/screenshots'
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void deleteAllProjects() {
SWTBot shellBot = shell.bot();
shellBot.checkBox().click();
shellBot.button("OK").click();
shell.waitUntilClosed(1000 * 30);
shell.waitUntilClosed();
}

private void deleteMavenProjects() {
Expand Down
2 changes: 1 addition & 1 deletion integrationtests/org.eclipse.xtext.swtbot.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<configuration>
<useUIThread>false</useUIThread>
<useUIHarness>true</useUIHarness>
<argLine>${memory-settings} ${os-jvm-flags} ${surefire-jvmargs} -Dorg.eclipse.swtbot.keyboard.layout=EN_US -Dorg.eclipse.swtbot.playback.delay=20</argLine>
<argLine>${memory-settings} ${os-jvm-flags} ${surefire-jvmargs} -Dorg.eclipse.swtbot.keyboard.layout=EN_US -Dorg.eclipse.swtbot.playback.delay=20 -Dorg.eclipse.swtbot.search.timeout=20000</argLine>
<appArgLine>-pluginCustomization ${basedir}/pluginCustomization.ini</appArgLine>
<includes>
<include>**/*Test.java</include>
Expand Down

0 comments on commit e66dbcd

Please sign in to comment.