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,
|
entityExplorer,
|
||||||
propPane,
|
propPane,
|
||||||
draggableWidgets,
|
draggableWidgets,
|
||||||
|
assertHelper,
|
||||||
} from "../../../../../support/Objects/ObjectsCore";
|
} from "../../../../../support/Objects/ObjectsCore";
|
||||||
|
|
||||||
describe("Icon Button widget Tests", function () {
|
describe("Icon Button widget Tests", function () {
|
||||||
|
|
@ -102,10 +103,18 @@ describe("Icon Button widget Tests", function () {
|
||||||
"onClick",
|
"onClick",
|
||||||
"{{navigateTo('www.yahoo.com', {}, 'SAME_WINDOW');}}",
|
"{{navigateTo('www.yahoo.com', {}, 'SAME_WINDOW');}}",
|
||||||
);
|
);
|
||||||
deployMode.DeployApp();
|
deployMode.DeployApp(
|
||||||
|
locators._widgetInDeployed(draggableWidgets.ICONBUTTON),
|
||||||
|
);
|
||||||
agHelper.GetNClick(`${locators._widgetInDeployed("iconbuttonwidget")}`);
|
agHelper.GetNClick(`${locators._widgetInDeployed("iconbuttonwidget")}`);
|
||||||
agHelper.AssertURL("yahoo.com");
|
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();
|
deployMode.NavigateBacktoEditor();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user