Skip to content

Commit 2680dd3

Browse files
Fixing cypress functional test coverage - WIP
Signed-off-by: Lukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot)
1 parent e2177fd commit 2680dd3

24 files changed

+3197
-1821
lines changed

tests/functional/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ You can ask for example `.env` file over slack.
9090
- Run `npx cypress install`
9191
- Run tests using cmd `npx cypress run`. Or `xvfb-run -a npx cypress run` when runnign over SSH.
9292
- Run tests using UI `npx cypress open`. Choose **E2E testing**, select **Chrome** browser.
93+
- Run single E2E spec file: `` [ALLOW_FAIL=1] ./run-single-test.sh github-repositories ``.
94+
- Run single test from E2E spec file: `` [ALLOW_FAIL=1] ./run-single-test.sh github-repositories 'test name regexp' ``.
9395
- View test reports in the `cypress-report` directory.
9496
- Explore source code files for detailed implementation.
9597

tests/functional/cypress.config.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ export default defineConfig({
99
e2e: {
1010
// baseUrl: 'http://localhost:1234',
1111
specPattern: 'cypress/e2e/**/**/*.{js,jsx,ts,tsx}',
12+
setupNodeEvents(on, config) {
13+
on('task', {
14+
log(message: string) {
15+
console.log(message);
16+
return null;
17+
},
18+
table(rows: any[]) {
19+
console.table(rows);
20+
return null;
21+
},
22+
});
23+
return config;
24+
},
1225
},
1326
env: {
1427
APP_URL: process.env.APP_URL,
@@ -19,6 +32,5 @@ export default defineConfig({
1932
AUTH0_CLIENT_SECRET: process.env.AUTH0_CLIENT_SECRET,
2033
AUTH0_CLIENT_ID: process.env.AUTH0_CLIENT_ID,
2134
CYPRESS_ENV: process.env.CYPRESS_ENV,
22-
}
35+
},
2336
});
24-

0 commit comments

Comments
 (0)