-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test:replace assertPageSave with AssertAutoSave #33972
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ describe( | |
cy.get(commonlocators.singleSelectMenuItem) | ||
.contains(pageid) | ||
.click({ force: true }); | ||
cy.assertPageSave(); | ||
agHelper.AssertAutoSave(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace function expression with an arrow function for consistency and potential performance benefits. - function () {
+ () => {
|
||
//Validate NavigateTo Page functionality | ||
cy.wait(2000); | ||
deployMode.DeployApp(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -238,7 +238,7 @@ describe( | |
}); | ||
}); | ||
cy.wait("@blockImport").then(() => { | ||
cy.assertPageSave(); | ||
agHelper.AssertAutoSave(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace - const option = {
- eventConstructor: "MouseEvent",
- scrollBehavior: false,
- } as any;
+ const option: MouseEventInit = {
+ eventConstructor: "MouseEvent",
+ scrollBehavior: false,
+ };
|
||
// check that the widgets are present on the canvas | ||
agHelper.AssertElementVisibility('[data-testid="t--ide-list"]'); | ||
agHelper | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,7 @@ describe( | |
entityExplorer.DragDropWidgetNVerify(widget); | ||
//cy.dragAndDropToWidget(widget, "listwidgetv2", { x: 350, y: 50 }); | ||
agHelper.GetNClick(propPane._deleteWidget); | ||
cy.assertPageSave(); | ||
agHelper.AssertAutoSave(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace function expression with an arrow function for consistency and potential performance benefits. - function () {
+ () => { Also applies to: 89-92
|
||
cy.wait(800); | ||
}); | ||
}, | ||
|
@@ -86,10 +86,10 @@ describe( | |
entityExplorer.DragDropWidgetNVerify(widget); | ||
|
||
//cy.dragAndDropToWidget(widget, "listwidgetv2", { x: 350, y: 50 }); | ||
cy.assertPageSave(); | ||
agHelper.AssertAutoSave(); | ||
cy.get(`.t--draggable-${widget}`).should("exist"); | ||
cy.get(widgetsPage.removeWidget).click({ force: true }); | ||
cy.assertPageSave(); | ||
agHelper.AssertAutoSave(); | ||
cy.wait(800); | ||
}); | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ describe( | |
// select the green color | ||
|
||
cy.wait("@updateLayout"); | ||
cy.assertPageSave(); | ||
_.agHelper.AssertAutoSave(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace function expression with an arrow function for consistency and potential performance benefits. - function () {
+ () => { Also applies to: 59-59
|
||
_.deployMode.DeployApp(); | ||
cy.wait(4000); | ||
|
||
|
@@ -56,7 +56,7 @@ describe( | |
.clear({ force: true }) | ||
.type("purple", { force: true, delay: 0 }); | ||
cy.wait("@updateLayout"); | ||
cy.assertPageSave(); | ||
_.agHelper.AssertAutoSave(); | ||
_.deployMode.DeployApp(); | ||
cy.wait(4000); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ const testdata = require("../../../../fixtures/testdata.json"); | |
const apiwidget = require("../../../../locators/apiWidgetslocator.json"); | ||
|
||
import { | ||
agHelper, | ||
apiPage, | ||
entityExplorer, | ||
} from "../../../../support/Objects/ObjectsCore"; | ||
|
@@ -20,7 +21,7 @@ describe( | |
cy.Createpage("SecondPage"); | ||
cy.CreateAPI("FirstAPI"); | ||
cy.enterDatasourceAndPath(testdata.baseUrl, "{{ '/random' }}"); | ||
cy.assertPageSave(); | ||
agHelper.AssertAutoSave(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace function expression with an arrow function for consistency and potential performance benefits. - function () {
+ () => {
|
||
cy.get("body").click(0, 0); | ||
PageLeftPane.switchSegment(PagePaneSegment.Queries); | ||
entityExplorer.ActionContextMenuByEntityName({ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace function expression with an arrow function for consistency and potential performance benefits.