From 217da70d9fd45b8aab3004d68b49d5e8a4087206 Mon Sep 17 00:00:00 2001 From: Rahul Barwal Date: Mon, 13 May 2024 16:45:03 +0530 Subject: [PATCH] chore: Fix failing spec with updated string (#33378) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Since `ab_show_templates_instead_of_blank_canvas_enabled` flag is GA, we removed its ref from code and updated empty canvas to have a differnt layout. Updated the spec to reflect that. Fixes #`Issue Number` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.IDE" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: ea00dcc8527463b9d5cd3ea093d0213ac502cd0c > Cypress dashboard url: Click here! ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No --- .../ClientSide/ExplorerTests/Page_Load_Spec.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/client/cypress/e2e/Regression/ClientSide/ExplorerTests/Page_Load_Spec.js b/app/client/cypress/e2e/Regression/ClientSide/ExplorerTests/Page_Load_Spec.js index beb2d80dda..991a50ea91 100644 --- a/app/client/cypress/e2e/Regression/ClientSide/ExplorerTests/Page_Load_Spec.js +++ b/app/client/cypress/e2e/Regression/ClientSide/ExplorerTests/Page_Load_Spec.js @@ -10,8 +10,12 @@ import { } from "../../../../support/Objects/ObjectsCore"; import PageList from "../../../../support/Pages/PageList"; import { EntityItems } from "../../../../support/Pages/AssertHelper"; +import { + createMessage, + STARTER_TEMPLATE_PAGE_LAYOUTS, +} from "../../../../../src/ce/constants/messages"; -describe("Page Load tests", { tags: ["@tag.IDE"] }, () => { +describe("Page Load tests", { tags: ["@tag.IDE", "@tag.Templates"] }, () => { afterEach(() => { agHelper.SaveLocalStorageCache(); }); @@ -23,7 +27,9 @@ describe("Page Load tests", { tags: ["@tag.IDE"] }, () => { before(() => { agHelper.AddDsl("PageLoadDsl"); PageList.AddNewPage(); - cy.get("h2").contains("Drag and drop a widget here"); + cy.get("span").contains( + createMessage(STARTER_TEMPLATE_PAGE_LAYOUTS.header), + ); }); it("1. Published page loads correctly", () => {