Open maximilianoertel opened 6 days ago
Status | Category | Percentage | Covered / Total |
---|---|---|---|
šµ | Lines | 4.98% | 380 / 7629 |
šµ | Statements | 4.88% | 411 / 8416 |
šµ | Functions | 6.13% | 115 / 1875 |
šµ | Branches | 2.29% | 105 / 4566 |
Failed #8266
•
0aa1b0e380: Adjust E2E tests for project configuration changes (#863)
Project |
roar-dashboard-e2e
|
Run status |
Failed #8266
|
Run duration | 01m 29s |
Commit |
0aa1b0e380: Adjust E2E tests for project configuration changes (#863)
|
Committer | Maximilian Oertel |
View all properties for this run āļø |
Test results | |
---|---|
Failures |
3
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
0
|
View
Output
Test | Artifacts | |
---|---|---|
An uncaught error was detected outside of a test |
Test Replay
Screenshots
|
View
Output
Test | Artifacts | |
---|---|---|
An uncaught error was detected outside of a test |
Test Replay
Screenshots
|
View
Output
Test | Artifacts | |
---|---|---|
An uncaught error was detected outside of a test |
Test Replay
Screenshots
|
Proposed changes
This PR introduces a series of changes to our E2E tests in order to mostly improve compatibility with the introduced changes related to environment configuration.
Key highlights
CYPRESS_
to follow the Cypress naming practices (docs).env.test
file are parsed bydotenvx
and only variables containing the prefix are loaded into Cypress. Mimicking Cypress's native behaviour, the prefix is stripped before injecting the variables.Additionally, this PR also improves the
login
command by introducing both a redirect assertion and additional validation to ensure the login was successful.Finally, this PR removes (almost) all arbitrary timeouts and refactors both failing and flaky tests. This is mostly achieved by improving selectors, restructuring tests and introducing
waitFor
to await page loads in certain cases. The latter should hopefully be a temporary solution until application performance is improved.Types of changes
Checklist
Justification of missing checklist items
Further comments