mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
automation improvements
This commit is contained in:
parent
75356b44c7
commit
4509a0aed6
1 changed files with 9 additions and 4 deletions
|
@ -9,22 +9,27 @@ describe("Requests Tests", () => {
|
|||
cy.intercept("token").as("login");
|
||||
cy.login();
|
||||
|
||||
cy.requestAllTv(60735); // The Flash
|
||||
const dbID = 60735; // The Flash
|
||||
cy.requestAllTv(dbID);
|
||||
|
||||
Page.visit();
|
||||
|
||||
Page.tvTab.click();
|
||||
const row = Page.tv.getGridRow(60735);
|
||||
cy.waitUntil(() => {
|
||||
const row = Page.tv.getGridRow(dbID);
|
||||
return row.detailsButton.should("be.visible");
|
||||
});
|
||||
const row = Page.tv.getGridRow(dbID);
|
||||
row.detailsButton.click();
|
||||
|
||||
cy.location("pathname").should("contains", "/details/tv/60735");
|
||||
cy.location("pathname").should("contains", "/details/tv/" + dbID);
|
||||
TvPage.title.contains("The Flash");
|
||||
});
|
||||
|
||||
it("Deleting TV requests, removes from grid", () => {
|
||||
cy.intercept("POST", "request/tv").as("tvRequest");
|
||||
cy.intercept("token").as("login");
|
||||
cy.intercept('DELETE', 'Request/tv/child/60735').as('deleteRequest');
|
||||
cy.intercept('DELETE','api/v1/Request/tv/child/60735').as('deleteRequest');
|
||||
cy.login();
|
||||
|
||||
// cy.wait('@login');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue