-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
6,189 additions
and
2,165 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
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
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,50 @@ | ||
name: E2E testing | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
include: | ||
# Chrome 84.0 is the oldest version available on selenium/standalone-xxx. | ||
# Firefox 78.0 is also the oldest available on selenium/standalone-xxx. | ||
|
||
# [Purposes] | ||
# fetch() upload streaming: the latest version of Chrome used in this test | ||
# Non fetch()-upload streaming: the other browser | ||
# Streaming download: All browser with disable_service_worker=false | ||
# Non-streaming download: disable_service_worker=true | ||
# Fallback to posting chunks of ReadableStream over MessageChannel: chrome:84.0 | ||
|
||
# "selenium/standalone-${e2e_docker_image_fragment}" | ||
# Why fragment? These short names are more readable in GitHub UI | ||
- e2e_docker_image_fragment: chrome:108.0 | ||
- e2e_docker_image_fragment: chrome:84.0 | ||
- e2e_docker_image_fragment: firefox:108.0 | ||
- e2e_docker_image_fragment: firefox:78.0 | ||
- e2e_docker_image_fragment: firefox:108.0 | ||
e2e_service_worker_disable: true | ||
- e2e_docker_image_fragment: firefox:78.0 | ||
e2e_service_worker_disable: true | ||
|
||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: 'npm' | ||
cache-dependency-path: | | ||
package-lock.json | ||
e2e-test/package-lock.json | ||
- name: Install dependencies | ||
run: | | ||
set -eu | ||
npm ci & | ||
(cd e2e-test && npm ci) & | ||
wait | ||
- name: E2E test (${{ matrix.e2e_docker_image_fragment }}) | ||
run: cd e2e-test && E2E_DOCKER_IMAGE=selenium/standalone-${{ matrix.e2e_docker_image_fragment }} E2E_DISABLE_SERVICE_WORKER=${{ matrix.e2e_service_worker_disable }} npm start |
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
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
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 @@ | ||
/node_modules |
Empty file.
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,27 @@ | ||
# e2e-test | ||
|
||
## Purpose of E2E test | ||
* Ensure transferring in any browser | ||
|
||
Modern browsers have a lot of rich features in general. | ||
Piping UI uses the rich features for providing better experience and also supports old browsers which does not have those. | ||
Therefore, Piping UI has some fallbacks. | ||
This E2E test ensures transferring, which is the core function of Piping UI, in an environment with those fallbacks. | ||
|
||
## Non-goal | ||
* UI design confirmation | ||
|
||
## TIPS: Faster development | ||
|
||
Run as follows and wait for 4000 served. | ||
|
||
```bash | ||
cd .. | ||
PORT=4000 npm run serve | ||
``` | ||
|
||
Run as follows to E2E test | ||
|
||
```bash | ||
E2E_DOCKER_IMAGE=selenium/standalone-firefox:78.0 npm start | ||
``` |
Oops, something went wrong.