Fixed automation tests

pull/4133/head
tidusjar 3 years ago
parent 16515ed3a8
commit 0eeb163a0d

@ -78,8 +78,8 @@
</div>
<div class="profile-block">
<a routerLink="/user-preferences">
<div class="profile-username">{{username}}</div>
<div class="profile-img"><img [matTooltip]="username" [src]="getUserImage()" /></div>
<div class="profile-username">{{username}}</div>
<div class="profile-img" data-test="profile-image"><img [matTooltip]="username" [src]="getUserImage()" /></div>
</a>
</div>

@ -69,7 +69,7 @@ class NavBar {
}
get userPreferences(): Cypress.Chainable<any> {
return cy.get('#profile-image');
return cy.getByData('profile-image');
}
get logout(): Cypress.Chainable<any> {

@ -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;

@ -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');
});

Loading…
Cancel
Save