Skip to content

[v0.31.0] feat: e2e tests use containerized core #891

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

Open
wants to merge 32 commits into
base: 0.31
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d9712fd
update: `embed` tests use core apps
namsnath Mar 3, 2025
7351694
update: `generalerror` tests use core apps
namsnath Mar 3, 2025
f962cfb
update: `getRedirectionURL` tests use core apps
namsnath Mar 4, 2025
5585396
update: remove assertion on creating new apps
namsnath Mar 4, 2025
a6ea1c3
feat: adds mocha envs to test config
namsnath Mar 4, 2025
73e0087
lint: format code
namsnath Mar 4, 2025
3fd975b
refactor: split app creation and ST setup utils
namsnath Mar 7, 2025
f0e09fb
refactor: split app creation and ST setup utils
namsnath Mar 7, 2025
19e8563
update: `oauth2provider` tests use core apps
namsnath Mar 11, 2025
c76c553
update: `resetpasswordusingtoken` tests use core apps
namsnath Mar 12, 2025
8608e5f
update: `signin-rrdv5/6` tests use core apps
namsnath Mar 12, 2025
5fa997e
update: few `thirdparty` tests use core apps
namsnath Mar 12, 2025
011d7d9
update: removes `visual` tests
namsnath Mar 12, 2025
f448882
removes usages of old helper functions
namsnath Mar 12, 2025
8df0cd9
update: `userContext`/`userroles` tests use core apps
namsnath Mar 12, 2025
d4b6161
fix: broken tests, update configs
namsnath Mar 14, 2025
6bb2619
update: remove log
namsnath Mar 14, 2025
d25c6ed
fix: correct setup ST url
namsnath Mar 19, 2025
687f89d
test: only run few tests
namsnath Mar 19, 2025
2b28f89
revert: test: only run few tests
namsnath Mar 20, 2025
650b438
Fix package-lock issues
deepjyoti30-st Mar 25, 2025
187900b
Add some fixes for userContext and test server
deepjyoti30-st Mar 25, 2025
d973f79
update: remove spec config in mocha
namsnath Mar 25, 2025
3966e60
Add mochawesome as dep and fix package-lock
deepjyoti30-st Apr 7, 2025
7406edc
Fix all tests to make them compatible with unified core setup
deepjyoti30-st Apr 7, 2025
2fb1622
Add fixes for tests to make them run
deepjyoti30-st Apr 9, 2025
1412af6
Add compose and workflows for running the tests
deepjyoti30-st Apr 9, 2025
3b36476
Fix remaining tests and make them all pass
deepjyoti30-st Apr 9, 2025
c8c9e45
Add some fixes to the tests
deepjyoti30-st Apr 9, 2025
ffb7950
Add fixes for tests upto signup
deepjyoti30-st Apr 9, 2025
6ce9986
Add fix for no providers enabled on the backend test
deepjyoti30-st Apr 10, 2025
c43e03c
Fix all tests and ensure they pass
deepjyoti30-st Apr 10, 2025
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
33 changes: 0 additions & 33 deletions .github/workflows/tests-visual.yml

This file was deleted.

15 changes: 10 additions & 5 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
spec:
- test/unit/**/*.test.js
- test/end-to-end/**/*.test.js
reporter: spec
# spec:
# - test/end-to-end/**/*.test.js
slow: 20000
timeout: 30000
timeout: 40000
exit: true
require:
- "@babel/register"
- test/test.mocha.env
reporter: mocha-multi-reporters
reporter-option:
- configFile=mocha-multi-reporters.json
9 changes: 9 additions & 0 deletions mocha-multi-reporters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"reporterEnabled": "mochawesome, mocha-junit-reporter",
"mochaJunitReporterReporterOptions": {
"mochaFile": "test_report/test-results.xml"
},
"mochawesomeReporterOptions": {
"reportDir": "test_report/mochawesome"
}
}
31,601 changes: 9,543 additions & 22,058 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@
"jsdom-global": "3.0.2",
"madge": "^5.0.1",
"mkdirp": "^1.0.4",
"mocha": "6.1.4",
"mocha-junit-reporter": "^2.0.2",
"mocha-multi": "1.1.6",
"mocha": "^10.2.0",
"mocha-junit-reporter": "^2.2.1",
"mocha-multi": "^1.1.7",
"mocha-multi-reporters": "^1.5.1",
"mocha-split-tests": "github:rishabhpoddar/mocha-split-tests",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.19",
Expand Down Expand Up @@ -76,6 +77,7 @@
},
"dependencies": {
"intl-tel-input": "^17.0.19",
"mochawesome": "^7.1.3",
"prop-types": "*",
"supertokens-js-override": "^0.0.4"
},
Expand All @@ -96,7 +98,7 @@
"test-e2e": "./test/startTestApp.sh 8082",
"test-e2e-react16": "RUN_REACT_16_TESTS=true ./test/startTestApp.sh 8082",
"test-e2e-with-non-node": "./test/startTestApp.sh 8083",
"test-unit": "TEST_MODE=testing jest -c jest.config.js --runInBand",
"test-unit": "TEST_MODE=testing jest --silent -c jest.config.js --runInBand",
"test-visual": "SPEC_FILES=test/visual/**/*.test.js npx percy exec -- npm run test-e2e",
"prep-test-app": "./test/prepTestApp.sh $SRC",
"build-check": "cd lib && npx tsc -p tsconfig.json --noEmit && cd ../test/with-typescript && npx tsc -p tsconfig.json",
Expand Down
Loading
Loading