mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-06 05:01:13 -07:00
Fixed automation tests
This commit is contained in:
parent
16515ed3a8
commit
0eeb163a0d
4 changed files with 6 additions and 6 deletions
|
@ -78,8 +78,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="profile-block">
|
<div class="profile-block">
|
||||||
<a routerLink="/user-preferences">
|
<a routerLink="/user-preferences">
|
||||||
<div class="profile-username">{{username}}</div>
|
<div class="profile-username">{{username}}</div>
|
||||||
<div class="profile-img"><img [matTooltip]="username" [src]="getUserImage()" /></div>
|
<div class="profile-img" data-test="profile-image"><img [matTooltip]="username" [src]="getUserImage()" /></div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ class NavBar {
|
||||||
}
|
}
|
||||||
|
|
||||||
get userPreferences(): Cypress.Chainable<any> {
|
get userPreferences(): Cypress.Chainable<any> {
|
||||||
return cy.get('#profile-image');
|
return cy.getByData('profile-image');
|
||||||
}
|
}
|
||||||
|
|
||||||
get logout(): Cypress.Chainable<any> {
|
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) => {
|
cy.intercept("GET", "**/search/Tv/popular/**", (req) => {
|
||||||
req.reply((res) => {
|
req.reply((res) => {
|
||||||
const body = res.body;
|
const body = res.body;
|
||||||
|
|
|
@ -16,7 +16,7 @@ describe("Search Tests", () => {
|
||||||
card.topLevelCard.realHover();
|
card.topLevelCard.realHover();
|
||||||
card.title.should('have.text', "Dexter's Laboratory");
|
card.title.should('have.text', "Dexter's Laboratory");
|
||||||
card.overview.contains('Cartoon Network');
|
card.overview.contains('Cartoon Network');
|
||||||
card.requestType.contains('Tv Show');
|
card.requestType.contains('TV Show');
|
||||||
card.requestButton.should('exist');
|
card.requestButton.should('exist');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ describe("Search Tests", () => {
|
||||||
card.topLevelCard.realHover();
|
card.topLevelCard.realHover();
|
||||||
card.title.should('have.text', "It's Always Sunny in Philadelphia");
|
card.title.should('have.text', "It's Always Sunny in Philadelphia");
|
||||||
card.overview.contains('Irish pub');
|
card.overview.contains('Irish pub');
|
||||||
card.requestType.contains('Tv Show');
|
card.requestType.contains('TV Show');
|
||||||
card.requestButton.should('exist');
|
card.requestButton.should('exist');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue