Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E tests #7846

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
597f9a1
New e2e tests
pr-Mais Sep 26, 2024
b69622c
remove unneeded dependency
pr-Mais Sep 26, 2024
279f041
fix wdio config type
pr-Mais Sep 26, 2024
d936b5e
restore graphql file
pr-Mais Sep 26, 2024
67f0ddb
Fix wdio types errors
pr-Mais Sep 26, 2024
36ae56c
fix graphql test issues
pr-Mais Sep 26, 2024
e3ee984
adding and reading data e2e tests
pr-Mais Sep 26, 2024
d013185
fix graphql test
pr-Mais Sep 26, 2024
f960d23
emulator startup e2e tests
pr-Mais Sep 27, 2024
ae362e8
Mock user & fix execution tests
pr-Mais Sep 27, 2024
e9daad9
package-lock
pr-Mais Sep 27, 2024
f57317b
-
pr-Mais Oct 2, 2024
4d18693
Merge remote-tracking branch 'origin' into e2e-tests-2
pr-Mais Oct 2, 2024
c159e84
undo changes in ui
pr-Mais Oct 2, 2024
96e8baa
chore: undo changes to tsconfig
pr-Mais Oct 3, 2024
7691aa3
exclude test folder from build
pr-Mais Oct 3, 2024
f4f7528
Fix tests setup
pr-Mais Oct 4, 2024
c45ad3b
Fix test hooks
pr-Mais Oct 4, 2024
7029837
Try changing CI to macos
pr-Mais Oct 4, 2024
0964f33
Limit parallelism to enhance CI performance
pr-Mais Oct 4, 2024
36a30c1
Lower parallelism
pr-Mais Oct 4, 2024
da90d7b
Remove prod build from pretest
pr-Mais Oct 4, 2024
8007a2a
CI for e2e tests
pr-Mais Oct 4, 2024
3e272df
Increase memory limit for prod build
pr-Mais Oct 4, 2024
c078a18
Await for notifications to be displayed
pr-Mais Oct 4, 2024
79e64a9
Increase test timeout for e2e
pr-Mais Oct 4, 2024
c5a0c91
Enhance e2e tests
pr-Mais Oct 4, 2024
25a2894
Merge branch 'master' into e2e-tests-2
pr-Mais Oct 4, 2024
30d5c20
-
pr-Mais Oct 4, 2024
4c7f01c
Increase timeout
pr-Mais Oct 4, 2024
260aecd
-
pr-Mais Oct 4, 2024
ff594d5
-
pr-Mais Oct 4, 2024
c59350d
-
pr-Mais Oct 4, 2024
6834906
-
pr-Mais Oct 4, 2024
a07b25f
Adding logs to debug
pr-Mais Oct 4, 2024
ad7820b
-
pr-Mais Oct 7, 2024
48c3016
test 120.0.0.1
hlshen Oct 7, 2024
0160656
Merge branch 'master' into hlshen/e2e
hlshen Oct 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 63 additions & 3 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ jobs:
working-directory: firebase-vscode

vscode_unit:
# Using windows to bypass an error thrown by VScode
# when run in an environment that does not have a screen.
runs-on: windows-latest
runs-on: macos-latest
strategy:
matrix:
node-version:
Expand All @@ -62,12 +60,74 @@ jobs:
- run: npm ci
- run: npm install
working-directory: firebase-vscode
- run: npm run build
working-directory: firebase-vscode
- run: npm run test:unit
working-directory: firebase-vscode
- uses: codecov/codecov-action@v3
if: matrix.node-version == '20'

vscode_integration:
runs-on: macos-latest
strategy:
matrix:
node-version:
- "18"
- "20"

env:
FIREBASE_EMULATORS_PATH: ${{ github.workspace }}/emulator-cache

steps:
- uses: actions/checkout@v4

- name: Setup Java JDK
uses: actions/setup-java@v3.3.0
with:
java-version: 17
distribution: temurin

- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: firebase-vscode/package-lock.json

- name: Install Tools
run: sudo npm i -g firebase-tools

- name: Cache Firebase Emulators
uses: actions/cache@v3
with:
path: ${{ env.FIREBASE_EMULATORS_PATH }}
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('emulator-cache/**') }}
continue-on-error: true

- run: npm i -g npm@9.5
- run: npm ci
- run: npm install
working-directory: firebase-vscode
- run: npm run build
working-directory: firebase-vscode

- uses: GabrielBB/xvfb-action@v1
with:
run: npm run test:e2e
working-directory: firebase-vscode

- uses: actions/upload-artifact@v3
if: failure()
with:
name: screenshots
path: test/screenshots

- uses: codecov/codecov-action@v3
if: matrix.node-version == '20'

- name: Print debug logs
if: failure()
run: type *debug.log

unit:
runs-on: ubuntu-latest
strategy:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"projects":{"default":"my-project"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"emulators":{"dataconnect":{"port":9399}}}
8 changes: 8 additions & 0 deletions firebase-vscode/dataconnect-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
I1004 19:21:46.508025 68363 load.go:37] Reloading schema and connectors...
I1004 19:21:46.527861 68363 control.go:45] [engine.Service /emulator/us-east deb0] UpdateSchema(): done sources: schema/schema.gql [126B]
E1004 19:21:46.536474 68363 load.go:56] Could not load sources: connectors/a/queries.gql:3: Expected $, found Name
I1004 19:21:46.536950 68363 load.go:57] Finished reloading
I1004 19:21:46.540838 68363 dev.go:95] Listening on address (HTTP + gRPC): 127.0.0.1:50001
I1004 19:21:46.659962 68363 engine.go:148] [engine.Service /emulator/us-east deb0] ExecuteGraphqlRead IntrospectionQuery: succeeded.
I1004 19:21:46.751598 68363 engine.go:148] [engine.Service /emulator/us-east deb0] ExecuteGraphqlRead IntrospectionQuery: succeeded.
I1004 19:22:01.714402 68363 engine.go:148] [engine.Service /emulator/us-east deb0] ExecuteGraphqlRead IntrospectionQuery: succeeded.
Loading
Loading