mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
feat: dashboard ui tests
This commit is contained in:
committed by
Rainer Killinger
parent
eb108c7414
commit
9f8ab5c7a1
@@ -57,7 +57,7 @@ describe('schedule', function () {
|
||||
]) {
|
||||
const slideMultiplier = 3;
|
||||
it(`should have ${count} slides for ${width}px`, function () {
|
||||
cy.visit('/schedule/calendar/2022-01-19');
|
||||
cy.visit('/schedule/calendar/2022-01-59');
|
||||
cy.viewport(width, 550);
|
||||
cy.get('.schedule-wrapper > .infinite-swiper-wrapper')
|
||||
.find('.swiper-slide')
|
||||
@@ -69,18 +69,18 @@ describe('schedule', function () {
|
||||
}
|
||||
|
||||
it('should navigate to a specific date', function () {
|
||||
cy.visit('/schedule/calendar/2022-01-19');
|
||||
cy.contains('#date-select-button0', '19.01.22').click();
|
||||
cy.visit('/schedule/calendar/2059-01-19');
|
||||
cy.contains('#date-select-button0', '19.01.59').click();
|
||||
cy.wait(2000);
|
||||
cy.get('button[data-day=1][data-month=1][data-year=2022]', {
|
||||
cy.get('button[data-day=1][data-month=1][data-year=2059]', {
|
||||
includeShadowDom: true,
|
||||
}).click();
|
||||
cy.wait(2000);
|
||||
cy.contains('#date-select-button0', '01.01.22').click();
|
||||
cy.contains('#date-select-button0', '01.01.59').click();
|
||||
});
|
||||
|
||||
it('should add events', function () {
|
||||
cy.visit('/schedule/calendar/2022-01-19');
|
||||
cy.visit('/schedule/calendar/2059-01-19');
|
||||
cy.get('stapps-schedule-card').should('not.exist');
|
||||
|
||||
cy.get('ion-fab-button').click();
|
||||
@@ -98,7 +98,7 @@ describe('schedule', function () {
|
||||
});
|
||||
|
||||
cy.get('ion-app > ion-modal').within(() => {
|
||||
cy.contains('ion-item', /eine Stunde um 19. Jan. 2022, \d+:00/).click();
|
||||
cy.contains('ion-item', /eine Stunde um 19. Jan. 2059, \d+:00/).click();
|
||||
cy.wait(2000);
|
||||
cy.contains('ion-button', 'Bestätigen').click();
|
||||
cy.wait(2000);
|
||||
|
||||
Reference in New Issue
Block a user