test: fixed failing UI test
This commit is contained in:
parent
26c5a1926b
commit
c12406fa3e
3 changed files with 3 additions and 4 deletions
|
|
@ -7,8 +7,7 @@ context("Folder Navigation", () => {
|
|||
|
||||
it("Adding Folders", () => {
|
||||
//Adding filter to go into the home folder
|
||||
cy.get(".filter-selector > .btn").findByText("1 filter").click();
|
||||
cy.findByRole("button", { name: "Clear Filters" }).click();
|
||||
cy.get(".filter-x-button").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(
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ context("Sidebar", () => {
|
|||
);
|
||||
|
||||
//To check if there is no filter added to the listview
|
||||
cy.get(".filter-selector > .btn").should("contain", "Filter");
|
||||
cy.get(".filter-button").should("contain", "Filter");
|
||||
|
||||
//To add a filter to display data into the listview
|
||||
cy.get(".group-by-field.show > .dropdown-menu > .group-by-item > .dropdown-item").click();
|
||||
|
|
|
|||
|
|
@ -479,7 +479,7 @@ Cypress.Commands.add("click_listview_row_item_with_text", (text) => {
|
|||
});
|
||||
|
||||
Cypress.Commands.add("click_filter_button", () => {
|
||||
cy.get(".filter-selector > .btn").click();
|
||||
cy.get(".filter-button").click();
|
||||
});
|
||||
|
||||
Cypress.Commands.add("click_listview_primary_button", (btn_name) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue