-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(cat-voices): smoke integration test (#898)
* feat: restore earthfile * feat: adds simple test * feat: remove old tests * fix: format * feat: adds bluprint.cue * test: run only chrome * test: run only firefox * wip * fix: earthly deps * test * test * test * test * test * fix: flutter drive params * fix --------- Co-authored-by: Steven Johnson <[email protected]>
- Loading branch information
Showing
7 changed files
with
52 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
VERSION 0.8 | ||
|
||
IMPORT ../ AS catalyst-voices | ||
|
||
integration-test-web: | ||
FROM catalyst-voices+build-web | ||
ARG TARGETARCH | ||
ARG browser | ||
LET driver_port = 4444 | ||
|
||
IF [ $browser = "chrome" ] | ||
LET driver = "chromedriver" | ||
END | ||
|
||
IF [ $browser = "firefox" ] | ||
LET driver = "geckodriver" | ||
END | ||
# Commenting out Edge tests as they are failing due to: | ||
# https://github.com/flutter/flutter/issues/76213 | ||
# https://github.com/flutter/flutter/issues/142021 | ||
# IF [ $browser = "edge" && $TARGETARCH = "amd64" ]] | ||
# LET driver = "msedgedriver" | ||
# END | ||
RUN ($driver --port=$driver_port > $driver.log &) && \ | ||
sleep 5 && \ | ||
flutter drive --driver=test_driver/integration_tests.dart \ | ||
--target=integration_test/app_test.dart \ | ||
-d web-server --browser-name=$browser --driver-port=$driver_port \ | ||
# https://github.com/flutter/flutter/issues/154727 | ||
--web-browser-flag=--disable-web-security \ | ||
--web-browser-flag=--disable-gpu \ | ||
--web-browser-flag=--headless=old \ | ||
--web-browser-flag=--disable-search-engine-choice-screen \ | ||
--profile || echo fail > fail | ||
WAIT | ||
SAVE ARTIFACT $driver.log AS LOCAL $driver.log | ||
END | ||
IF [ -f fail ] | ||
RUN --no-cache echo ""$browser" integration test failed" && \ | ||
echo "Printing "$driver" logs..." && \ | ||
cat $driver.log && \ | ||
exit 1 | ||
END | ||
|
||
test-web-all: | ||
BUILD +integration-test-web \ | ||
--browser=chrome \ | ||
--browser=firefox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
version: "1.0.0" | ||
project: name: "voices-integration-tests" |
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
catalyst_voices/integration_test/scenarios/login_scenario.dart
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
catalyst_voices/integration_test/scenarios/robots/login_robot.dart
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.