Skip to content

Commit

Permalink
for Edge browser, run only a small subset of tests on GitHub Actions.
Browse files Browse the repository at this point in the history
Edge browser is quite unstable there. It often fails because of env instability, and never - because of Edge-specific errors in Selenide.
  • Loading branch information
asolntsev committed May 24, 2023
1 parent c34fdea commit c3a2df5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
gradle-task: [ 'check', 'edge_headless' ]
gradle-task: [ 'check', 'edge_headless_smoke' ]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -22,7 +22,7 @@ jobs:
cache: 'gradle'
java-version: '17'
- name: Setup Edge
if: ${{ matrix.gradle-task == 'edge_headless' }}
if: ${{ contains(matrix.gradle-task, 'edge') }}
uses: browser-actions/setup-edge@latest
- name: Set-DisplayResolution
shell: pwsh
Expand Down
9 changes: 9 additions & 0 deletions gradle/tests.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ subprojects {
outputs.upToDateWhen {false}
}

tasks.register("edge_headless_smoke", Test) {
systemProperties['selenide.browser'] = 'edge'
systemProperties['selenide.headless'] = 'true'
include 'integration/**/*Download*'
exclude 'com/codeborne/selenide/**/*'
exclude 'org/selenide/**/*'
outputs.upToDateWhen {false}
}

tasks.register("chrome", Test) {
systemProperties['selenide.browser'] = 'chrome'
include 'integration/**/*'
Expand Down

0 comments on commit c3a2df5

Please sign in to comment.