Skip to content

Commit 1d5ee14

Browse files
committed
Enabled CI build with GitHub action, mixed in IntegrationPatience for GoogleSearchSpec.
1 parent 59350bd commit 1d5ee14

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: macos-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
- name: Setup JDK
12+
uses: actions/setup-java@v3
13+
with:
14+
distribution: temurin
15+
java-version: 8
16+
- name: Build and Test
17+
run: |
18+
export DISPLAY=:99
19+
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
20+
export MOZ_HEADLESS=1
21+
sbt -v +test

src/test/scala/org/scalatestplus/selenium/DriverSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class DriverSpec extends funspec.AnyFunSpec {
88

99
describe("Tests grouped using Driver trait") {
1010

11-
trait GoogleSearchSpec extends funspec.AnyFunSpecLike with concurrent.Eventually { this: WebBrowser with Driver =>
11+
trait GoogleSearchSpec extends funspec.AnyFunSpecLike with concurrent.Eventually with concurrent.IntegrationPatience { this: WebBrowser with Driver =>
1212

1313
describe("google.com") {
1414

0 commit comments

Comments
 (0)