test: Make folder navigation test less flaky

This commit is contained in:
Suraj Shetty 2023-06-16 10:58:27 +05:30
parent e8ebf19308
commit 91afe51c7c

View file

@ -11,9 +11,9 @@ context("Folder Navigation", () => {
cy.click_filter_button(); cy.click_filter_button();
cy.get(".filter-action-buttons > .text-muted").findByText("+ Add a Filter").click(); cy.get(".filter-action-buttons > .text-muted").findByText("+ Add a Filter").click();
cy.get(".fieldname-select-area > .awesomplete > .form-control:last").type("Fol{enter}"); cy.get(".fieldname-select-area > .awesomplete > .form-control:last").type("Fol{enter}");
cy.get( cy.get(".filter-field > .form-group > .link-field > .awesomplete > .input-with-feedback")
".filter-field > .form-group > .link-field > .awesomplete > .input-with-feedback" .first()
).type("Home{enter}"); .type("Home{enter}");
cy.get(".filter-action-buttons > div > .btn-primary").findByText("Apply Filters").click(); cy.get(".filter-action-buttons > div > .btn-primary").findByText("Apply Filters").click();
//Adding folder (Test Folder) //Adding folder (Test Folder)
@ -24,6 +24,7 @@ context("Folder Navigation", () => {
it("Navigating the nested folders, checking if the URL formed is correct, checking if the added content in the child folder is correct", () => { it("Navigating the nested folders, checking if the URL formed is correct, checking if the added content in the child folder is correct", () => {
//Navigating inside the Attachments folder //Navigating inside the Attachments folder
cy.clear_filters();
cy.wait(500); cy.wait(500);
cy.get('[title="Attachments"] > span').click(); cy.get('[title="Attachments"] > span').click();