From 0eeb163a0d148e6435bae57b572bd1d96da7bde1 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Thu, 1 Apr 2021 10:21:48 +0100 Subject: [PATCH] Fixed automation tests --- src/Ombi/ClientApp/src/app/my-nav/my-nav.component.html | 4 ++-- tests/cypress/integration/page-objects/shared/NavBar.ts | 2 +- tests/cypress/tests/discover/discover-cards-requests.spec.ts | 2 +- tests/cypress/tests/search/search.spec.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Ombi/ClientApp/src/app/my-nav/my-nav.component.html b/src/Ombi/ClientApp/src/app/my-nav/my-nav.component.html index 9e9bdcd73..190e253cf 100644 --- a/src/Ombi/ClientApp/src/app/my-nav/my-nav.component.html +++ b/src/Ombi/ClientApp/src/app/my-nav/my-nav.component.html @@ -78,8 +78,8 @@
-
{{username}}
-
+
{{username}}
+
diff --git a/tests/cypress/integration/page-objects/shared/NavBar.ts b/tests/cypress/integration/page-objects/shared/NavBar.ts index b7ed09bbb..8ca5e70db 100644 --- a/tests/cypress/integration/page-objects/shared/NavBar.ts +++ b/tests/cypress/integration/page-objects/shared/NavBar.ts @@ -69,7 +69,7 @@ class NavBar { } get userPreferences(): Cypress.Chainable { - return cy.get('#profile-image'); + return cy.getByData('profile-image'); } get logout(): Cypress.Chainable { diff --git a/tests/cypress/tests/discover/discover-cards-requests.spec.ts b/tests/cypress/tests/discover/discover-cards-requests.spec.ts index 6d22f6bde..81d86d7e7 100644 --- a/tests/cypress/tests/discover/discover-cards-requests.spec.ts +++ b/tests/cypress/tests/discover/discover-cards-requests.spec.ts @@ -197,7 +197,7 @@ describe("Discover Cards Requests Tests", () => { }); }); - it.only("Available TV does not allow us to request", () => { + it("Available TV does not allow us to request", () => { cy.intercept("GET", "**/search/Tv/popular/**", (req) => { req.reply((res) => { const body = res.body; diff --git a/tests/cypress/tests/search/search.spec.ts b/tests/cypress/tests/search/search.spec.ts index 35711abc0..fee3eaf9d 100644 --- a/tests/cypress/tests/search/search.spec.ts +++ b/tests/cypress/tests/search/search.spec.ts @@ -16,7 +16,7 @@ describe("Search Tests", () => { card.topLevelCard.realHover(); card.title.should('have.text', "Dexter's Laboratory"); card.overview.contains('Cartoon Network'); - card.requestType.contains('Tv Show'); + card.requestType.contains('TV Show'); card.requestButton.should('exist'); }); @@ -115,7 +115,7 @@ describe("Search Tests", () => { card.topLevelCard.realHover(); card.title.should('have.text', "It's Always Sunny in Philadelphia"); card.overview.contains('Irish pub'); - card.requestType.contains('Tv Show'); + card.requestType.contains('TV Show'); card.requestButton.should('exist'); });