From 6939a24d4393598e25964f5f44f83a40e866a78e Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Mon, 18 Sep 2023 21:10:16 +0530 Subject: [PATCH] test: update tests for ui changes - update selectors - remove color check code --- cypress/integration/form.js | 4 ---- cypress/integration/list_paging.js | 2 +- cypress/integration/list_view.js | 2 +- cypress/integration/list_view_settings.js | 4 ++-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/cypress/integration/form.js b/cypress/integration/form.js index bbd89ddb7a..cab2e343c2 100644 --- a/cypress/integration/form.js +++ b/cypress/integration/form.js @@ -101,10 +101,6 @@ context("Form", () => { cy.get("@email_input2").type(valid_email, { waitForAnimations: false }); cy.get("@row1").click(); - cy.get("@email_input1").should(($div) => { - const style = window.getComputedStyle($div[0]); - expect(style.backgroundColor).to.equal(expectBackgroundColor); - }); cy.get("@email_input1").should("have.class", "invalid"); cy.get("@row2").click(); diff --git a/cypress/integration/list_paging.js b/cypress/integration/list_paging.js index 5195d0b3ae..cd4e2bc68d 100644 --- a/cypress/integration/list_paging.js +++ b/cypress/integration/list_paging.js @@ -29,7 +29,7 @@ context("List Paging", () => { cy.get(".list-paging-area .list-count").should("contain.text", "300 of"); // check if refresh works after load more - cy.get('.page-head .standard-actions [data-original-title="Refresh"]').click(); + cy.get('.page-head .standard-actions [data-original-title="Reload List"]').click(); cy.get(".list-paging-area .list-count").should("contain.text", "300 of"); cy.get('.list-paging-area .btn-group .btn-paging[data-value="500"]').click(); diff --git a/cypress/integration/list_view.js b/cypress/integration/list_view.js index b07f18edc2..537db0247e 100644 --- a/cypress/integration/list_view.js +++ b/cypress/integration/list_view.js @@ -14,7 +14,7 @@ context("List View", () => { cy.go_to_list("ToDo"); cy.clear_filters(); cy.get(".list-header-subject > .list-subject > .list-check-all").click(); - cy.get("button[data-original-title='Refresh']").click(); + cy.get("button[data-original-title='Reload List']").click(); cy.get(".list-row-container .list-row-checkbox:checked").should("be.visible"); }); diff --git a/cypress/integration/list_view_settings.js b/cypress/integration/list_view_settings.js index ff9a30ce5c..9c66edb5d5 100644 --- a/cypress/integration/list_view_settings.js +++ b/cypress/integration/list_view_settings.js @@ -15,7 +15,7 @@ context("List View Settings", () => { cy.clear_filters(); cy.wait(300); cy.get(".list-count").should("contain", "20 of"); - cy.get("[href='#icon-small-message']").should("be.visible"); + cy.get("[href='#es-line-chat-alt']").should("be.visible"); cy.get(".menu-btn-group button").click(); cy.get(".dropdown-menu li").filter(":visible").contains("List Settings").click(); cy.get(".modal-dialog").should("contain", "DocType Settings"); @@ -29,7 +29,7 @@ context("List View Settings", () => { cy.get(".list-count").should("be.empty"); cy.get(".list-sidebar .list-tags").should("not.exist"); - cy.get("[href='#icon-small-message']").should("not.be.visible"); + cy.get("[href='#es-line-chat-alt']").should("not.be.visible"); cy.get(".menu-btn-group button").click({ force: true }); cy.get(".dropdown-menu li").filter(":visible").contains("List Settings").click();