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

New e2e tests #7738

Open
wants to merge 72 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
72 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
372df7a
try 127.0.0.1 instead of localhost
pr-Mais Oct 7, 2024
dd276ee
add screenshots
pr-Mais Oct 7, 2024
f66579c
-
pr-Mais Oct 7, 2024
a21d8c7
-
pr-Mais Oct 7, 2024
cae8150
-
pr-Mais Oct 7, 2024
4f75bfd
-
pr-Mais Oct 7, 2024
616a7af
-
pr-Mais Oct 7, 2024
8dffa47
-
pr-Mais Oct 7, 2024
5ec7d40
-
pr-Mais Oct 7, 2024
bfae546
-
pr-Mais Oct 7, 2024
7dce81d
-
pr-Mais Oct 7, 2024
ac871b4
-
pr-Mais Oct 7, 2024
330651b
Merge branch 'master' into e2e-tests-2
pr-Mais Oct 7, 2024
0f715b5
debug mode
pr-Mais Oct 7, 2024
9afa6b0
Merge branch 'master' into e2e-tests-2
pr-Mais Oct 8, 2024
cd49bbf
export screenshot only on error
pr-Mais Oct 8, 2024
9ee1c18
-
pr-Mais Oct 8, 2024
663be73
fix deploy test
pr-Mais Oct 8, 2024
c269ea2
remove logs
pr-Mais Oct 8, 2024
8a0507e
remove debug flag
pr-Mais Oct 8, 2024
797dfb7
fix firebase binary in test
pr-Mais Oct 8, 2024
3a6300d
-
pr-Mais Oct 8, 2024
eb2c46e
fix typing issue
pr-Mais Oct 10, 2024
bf3f2d1
addressing comments
pr-Mais Oct 10, 2024
bfb360c
fix typing issue 2
pr-Mais Oct 10, 2024
1194cce
revert `localhost` change
pr-Mais Oct 10, 2024
2b6819e
split graphql add/read data tests
pr-Mais Oct 10, 2024
87b5682
use service account for CI
pr-Mais Oct 10, 2024
20943df
init test for sidebar change
pr-Mais Oct 11, 2024
5e92538
remove execution retry logic
pr-Mais Oct 14, 2024
f8ffc2e
update generated sdk test
pr-Mais Oct 15, 2024
accd0b6
Merge branch 'master' of github.com:firebase/firebase-tools into e2e-…
pr-Mais Oct 15, 2024
dd75cba
fix
pr-Mais Oct 15, 2024
858de3a
fix error in importing scss modules
pr-Mais Oct 15, 2024
df5c779
add sdk to app test done
pr-Mais Oct 16, 2024
30fc412
remove unnecessary log
pr-Mais Oct 16, 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
59 changes: 56 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,8 +60,63 @@ 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
# This overrides the binary which runs firebase commands in the extension tasks such as emulator start.
# Currently, CI fails to start with npx so we change it to the global firebase binary.
FIREBASE_BINARY: firebase

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

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

# TODO temporary workaround for GitHub Actions CI issue:
# npm ERR! Your cache folder contains root-owned files, due to a bug in
# npm ERR! previous versions of npm which has since been addressed.
- run: sudo chown -R 501:20 "/Users/runner/.npm" || exit 1
- run: npm ci
- run: npm install
working-directory: firebase-vscode
- run: npm run build
working-directory: firebase-vscode

- run: npm i -g firebase-tools@latest

- 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: firebase-vscode/src/test/screenshots

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