mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-06 13:11:13 -07:00
test(automation): 🧪 Fixed flakey tests
This commit is contained in:
parent
10f5e056c8
commit
2fe41f3910
1 changed files with 13 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
import { discoverPage as Page } from "@/integration/page-objects";
|
||||
import { DiscoverType } from "@/integration/page-objects/shared/DiscoverCard";
|
||||
import { discoverPage as Page } from "@/integration/page-objects";
|
||||
|
||||
describe("Discover Cards Requests Tests", () => {
|
||||
beforeEach(() => {
|
||||
|
@ -288,9 +288,15 @@ describe("Discover Cards Requests Tests", () => {
|
|||
var expectedId = body[3].id;
|
||||
var title = body[3].title;
|
||||
|
||||
cy.wait(3000);
|
||||
|
||||
const card = Page.popularCarousel.getCard(expectedId, false, DiscoverType.Popular);
|
||||
card.title.realHover();
|
||||
|
||||
cy.waitUntil(() => {
|
||||
return card.requestButton.should("be.visible");
|
||||
});
|
||||
|
||||
card.verifyTitle(title);
|
||||
card.requestButton.should("be.visible");
|
||||
card.requestButton.click();
|
||||
|
@ -335,9 +341,15 @@ describe("Discover Cards Requests Tests", () => {
|
|||
var expectedId = body[5].id;
|
||||
var title = body[5].title;
|
||||
|
||||
cy.wait(3000);
|
||||
|
||||
const card = Page.popularCarousel.getCard(expectedId, false, DiscoverType.Popular);
|
||||
card.title.realHover();
|
||||
|
||||
cy.waitUntil(() => {
|
||||
return card.requestButton.should("be.visible");
|
||||
});
|
||||
|
||||
card.verifyTitle(title);
|
||||
card.requestButton.should("be.visible");
|
||||
card.requestButton.click();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue