From 7a2a14695e8f2b2972a3a065b2e47d0b4111053e Mon Sep 17 00:00:00 2001 From: tidusjar Date: Thu, 14 Oct 2021 15:44:32 +0100 Subject: [PATCH] test: :white_check_mark: Fixed user management tests --- .../cypress/tests/01-wizard/01-wizard.spec.ts | 2 +- .../usermanagement/usermanagement.spec.ts | 24 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/cypress/tests/01-wizard/01-wizard.spec.ts b/tests/cypress/tests/01-wizard/01-wizard.spec.ts index b0ff071f5..a04313fd0 100644 --- a/tests/cypress/tests/01-wizard/01-wizard.spec.ts +++ b/tests/cypress/tests/01-wizard/01-wizard.spec.ts @@ -8,7 +8,7 @@ describe("Wizard Setup", () => { }); - it.only("Finsh with no local user", () => { + it("Finsh with no local user", () => { Page.visit(); Page.welcomeTab.next.click(); diff --git a/tests/cypress/tests/usermanagement/usermanagement.spec.ts b/tests/cypress/tests/usermanagement/usermanagement.spec.ts index 466fe52d2..f59675b61 100644 --- a/tests/cypress/tests/usermanagement/usermanagement.spec.ts +++ b/tests/cypress/tests/usermanagement/usermanagement.spec.ts @@ -106,9 +106,9 @@ describe('User Management Page', () => { // Verify that the limits are set cy.get('#edituserToEdit').click(); cy.contains('Request Limits').click(); - cy.get('#movieRequestLimit').should('have.attr', 'ng-reflect-model', '2') - cy.get('#musicRequestLimit').should('have.attr', 'ng-reflect-model', '3') - cy.get('#episodeRequestLimit').should('have.attr', 'ng-reflect-model', '4') + cy.get('#movieRequestLimit').should('have.value', '2') + cy.get('#musicRequestLimit').should('have.value', '3') + cy.get('#episodeRequestLimit').should('have.value', '4') }); @@ -134,14 +134,14 @@ describe('User Management Page', () => { // Verify that the limits are set cy.get('#edituserToEdit').click(); cy.contains('Notification Preferences').click(); - cy.get('#Discord').should('have.attr', 'ng-reflect-model', "Discord"); - cy.get('#Pushbullet').should('have.attr', 'ng-reflect-model', "Pushbullet"); - cy.get('#Pushover').should('have.attr', 'ng-reflect-model', "Pushover"); - cy.get('#Telegram').should('have.attr', 'ng-reflect-model', "Telegram"); - cy.get('#Slack').should('have.attr', 'ng-reflect-model', "Slack"); - cy.get('#Mattermost').should('have.attr', 'ng-reflect-model', "Mattermost"); - cy.get('#Gotify').should('have.attr', 'ng-reflect-model', "Gotify"); - cy.get('#WhatsApp').should('have.attr', 'ng-reflect-model', "Whatsapp"); + cy.get('#Discord').should('have.value', "Discord"); + cy.get('#Pushbullet').should('have.value', "Pushbullet"); + cy.get('#Pushover').should('have.value', "Pushover"); + cy.get('#Telegram').should('have.value', "Telegram"); + cy.get('#Slack').should('have.value', "Slack"); + cy.get('#Mattermost').should('have.value', "Mattermost"); + cy.get('#Gotify').should('have.value', "Gotify"); + cy.get('#WhatsApp').should('have.value', "Whatsapp"); }); @@ -158,6 +158,6 @@ describe('User Management Page', () => { cy.verifyNotification('successfully'); cy.get('#edituserToEdit').click(); - cy.get('#rolePowerUser').should('have.attr', 'ng-reflect-model', 'true'); + cy.get('#rolePowerUser').should('have.class', 'mat-checked'); }); }); \ No newline at end of file