fix: Anvil App Navigation Spec (#33584)

Co-authored-by: Pawan Kumar <pawankumar@Pawans-MacBook-Pro-2.local>
This commit is contained in:
Pawan Kumar 2024-05-21 13:31:06 +05:30 committed by GitHub
parent e161b51725
commit 88111acba8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,7 @@ import { featureFlagIntercept } from "../../../../support/Objects/FeatureFlags";
describe(
`${ANVIL_EDITOR_TEST}: Validating multiple widgets in anvil layout mode with App navigation settings`,
{ tags: ["@tag.Anvil"] },
{ tags: ["@tag.Anvil", "@tag.IDE"] },
function () {
beforeEach(() => {
// intercept features call for Anvil + WDS tests
@ -41,6 +41,17 @@ describe(
propPane.NavigateToPage("Page1", "onClick");
appSettings.OpenAppSettings();
agHelper.GetNClick(appSettings.locators._navigationSettingsTab);
// assert that the default value of "Show Navbar" is "Off" for anvil apps
agHelper.AssertExistingCheckedState(
appSettings.locators._navigationSettings._showNavbar,
"false",
);
// enable the navigation
agHelper.GetNClick(
appSettings.locators._navigationSettings._showNavbar,
0,
true,
);
agHelper.GetNClick(
appSettings.locators._navigationSettings._orientationOptions._side,
);