From cca1b55daf86a719098c256e4bc9a14108b787c7 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Fri, 19 Apr 2024 17:59:03 +0530 Subject: [PATCH] test: Fix page name test (#32825) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update test with the current page name validation rules on the server and the client. /ok-to-test tags="@tag.Settings" > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: e322d185a0089662054672ec045596e67e055316 > Cypress dashboard url: Click here! ## Summary by CodeRabbit - **Tests** - Updated comments and test cases in Page Settings to reflect restrictions on using slashes and colons in page names. --- .../Regression/ClientSide/SettingsPane/PageSettings_spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/client/cypress/e2e/Regression/ClientSide/SettingsPane/PageSettings_spec.ts b/app/client/cypress/e2e/Regression/ClientSide/SettingsPane/PageSettings_spec.ts index bc56fd6635..ccaecba896 100644 --- a/app/client/cypress/e2e/Regression/ClientSide/SettingsPane/PageSettings_spec.ts +++ b/app/client/cypress/e2e/Regression/ClientSide/SettingsPane/PageSettings_spec.ts @@ -59,10 +59,10 @@ describe("Page Settings", { tags: ["@tag.Settings"] }, () => { }); _.appSettings.ClosePane(); - //Page name doesn't allow special character + // Page name doesn't allow slashes and colons _.appSettings.OpenAppSettings(); _.appSettings.GoToPageSettings("Page3"); - _.pageSettings.UpdatePageNameAndVerifyTextValue("Page3!@#", "Page3 "); + _.pageSettings.UpdatePageNameAndVerifyTextValue("Page3/\\:", "Page3"); _.appSettings.ClosePane(); // Page name doesn't allow empty