mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 22:42:54 +00:00
refactor: separate dashboard schedule nav e2e tests
This commit is contained in:
@@ -42,3 +42,17 @@ The command `ionic cordova run ios` runs into the error `/platforms/ios/build/em
|
|||||||
|
|
||||||
- Either use the command: `ionic cordova emulate ios -- --buildFlag="-UseModernBuildSystem=0"`
|
- Either use the command: `ionic cordova emulate ios -- --buildFlag="-UseModernBuildSystem=0"`
|
||||||
- Or open the iOS project in Xcode and change build system in workspace settings to `Lagacy Build System`. Then the normal run command works also.
|
- Or open the iOS project in Xcode and change build system in workspace settings to `Lagacy Build System`. Then the normal run command works also.
|
||||||
|
|
||||||
|
## Cypress
|
||||||
|
|
||||||
|
#### Problem
|
||||||
|
|
||||||
|
The browser doesn't open or the tests don't connect to a browser
|
||||||
|
|
||||||
|
#### Solution
|
||||||
|
|
||||||
|
Delete the Cypress config file
|
||||||
|
|
||||||
|
```shell
|
||||||
|
rm -rf ~/.config/Cypress
|
||||||
|
```
|
||||||
|
|||||||
@@ -18,13 +18,15 @@
|
|||||||
|
|
||||||
describe('dashboard', async function () {
|
describe('dashboard', async function () {
|
||||||
describe('schedule section', function () {
|
describe('schedule section', function () {
|
||||||
it('should lead to the schedule', function () {
|
it('should lead to the week overview', function () {
|
||||||
cy.visit('/overview');
|
cy.visit('/overview');
|
||||||
cy.get('.schedule')
|
cy.get('.schedule')
|
||||||
.contains('a', /Wochen.*übersicht/)
|
.contains('a', /Wochen.*übersicht/)
|
||||||
.click();
|
.click();
|
||||||
cy.url().should('include', '/schedule/week-overview');
|
cy.url().should('include', '/schedule/week-overview');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should lead to the calendar', function () {
|
||||||
cy.visit('/overview');
|
cy.visit('/overview');
|
||||||
cy.get('.schedule').contains('a', 'Kein Eintrag gefunden').click();
|
cy.get('.schedule').contains('a', 'Kein Eintrag gefunden').click();
|
||||||
cy.url().should('include', '/schedule/calendar');
|
cy.url().should('include', '/schedule/calendar');
|
||||||
|
|||||||
Reference in New Issue
Block a user