test: Cypress | IconButton_2_spec.ts flaky fix (#28379)
## Description **Flaky fixes below:** - /Widgets/Others/IconButton_2_spec.ts #### Type of change - Script fix (non-breaking change which fixes an issue) ## Testing > #### How Has This Been Tested? - [X] Cypress CI runs ## Checklist: #### QA activity: - [X] Added `Test Plan Approved` label after Cypress tests were reviewed
This commit is contained in:
parent
4b3ef8ebd6
commit
777cb63f09
|
|
@ -5,6 +5,7 @@ import {
|
|||
entityExplorer,
|
||||
propPane,
|
||||
draggableWidgets,
|
||||
assertHelper,
|
||||
} from "../../../../../support/Objects/ObjectsCore";
|
||||
|
||||
describe("Icon Button widget Tests", function () {
|
||||
|
|
@ -102,10 +103,18 @@ describe("Icon Button widget Tests", function () {
|
|||
"onClick",
|
||||
"{{navigateTo('www.yahoo.com', {}, 'SAME_WINDOW');}}",
|
||||
);
|
||||
deployMode.DeployApp();
|
||||
deployMode.DeployApp(
|
||||
locators._widgetInDeployed(draggableWidgets.ICONBUTTON),
|
||||
);
|
||||
agHelper.GetNClick(`${locators._widgetInDeployed("iconbuttonwidget")}`);
|
||||
agHelper.AssertURL("yahoo.com");
|
||||
agHelper.BrowserNavigation(-1);
|
||||
// agHelper.BrowserNavigation(-1);
|
||||
cy.window({ timeout: 60000 }).then((win) => {
|
||||
win.history.back();
|
||||
});
|
||||
assertHelper.AssertNetworkResponseData("@viewPage");
|
||||
assertHelper.AssertDocumentReady();
|
||||
agHelper.Sleep(3000); //for view page to complete loading & then navigate back
|
||||
deployMode.NavigateBacktoEditor();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user