-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
455 changed files
with
8,823 additions
and
3,203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
app/client/cypress/e2e/Regression/ClientSide/ActionExecution/Bug33601_spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import { | ||
agHelper, | ||
appSettings, | ||
assertHelper, | ||
deployMode, | ||
homePage, | ||
locators, | ||
} from "../../../../support/Objects/ObjectsCore"; | ||
import EditorNavigation, { | ||
EntityType, | ||
PageLeftPane, | ||
} from "../../../../support/Pages/EditorNavigation"; | ||
|
||
describe( | ||
"Bug:33601: resetWidget function causes the next async method to be undefined", | ||
{ tags: ["@tag.JS"] }, | ||
() => { | ||
it("1. Bug 33601", () => { | ||
homePage.NavigateToHome(); | ||
homePage.ImportApp("resetWidgetBug33601.json"); | ||
EditorNavigation.SelectEntityByName("List1", EntityType.Widget); | ||
PageLeftPane.expandCollapseItem("List1"); | ||
PageLeftPane.expandCollapseItem("Container1"); | ||
EditorNavigation.SelectEntityByName("Input1", EntityType.Widget); | ||
|
||
agHelper.EnterInputText("Label", "Widget Input2"); | ||
EditorNavigation.SelectEntityByName("Button1", EntityType.Widget); | ||
cy.get(locators._widgetInputSelector("inputwidgetv2")) | ||
.first() | ||
.invoke("attr", "value") | ||
.should("contain", "Widget Input2"); | ||
agHelper | ||
.GetAttribute(locators._imgWidgetInsideList, "src") | ||
.then((labelValue) => { | ||
expect(labelValue).not.to.contain("data:image/png;base64"); | ||
}); | ||
|
||
agHelper.ClickButton("Submit"); | ||
cy.get(locators._widgetInputSelector("inputwidgetv2")) | ||
.first() | ||
.invoke("attr", "value") | ||
.should("be.empty"); | ||
assertHelper.WaitForNetworkCall("@postExecute"); | ||
agHelper | ||
.GetAttribute(locators._imgWidgetInsideList, "src") | ||
.then((labelValue) => { | ||
expect(labelValue).to.contain("data:image/png;base64"); | ||
}); | ||
|
||
deployMode.DeployApp(); | ||
agHelper.AssertElementVisibility(appSettings.locators._header); | ||
agHelper.EnterInputText("Label", "Widget Input2"); | ||
cy.get(locators._widgetInputSelector("inputwidgetv2")) | ||
.first() | ||
.invoke("attr", "value") | ||
.should("contain", "Widget Input2"); | ||
agHelper | ||
.GetAttribute(locators._imgWidgetInsideList, "src") | ||
.then((labelValue) => { | ||
expect(labelValue).not.to.contain("data:image/png;base64"); | ||
}); | ||
agHelper.ClickButton("Submit"); | ||
cy.get(locators._widgetInputSelector("inputwidgetv2")) | ||
.first() | ||
.invoke("attr", "value") | ||
.should("be.empty"); | ||
agHelper | ||
.GetAttribute(locators._imgWidgetInsideList, "src") | ||
.then((labelValue) => { | ||
expect(labelValue).to.contain("data:image/png;base64"); | ||
}); | ||
}); | ||
}, | ||
); |
Oops, something went wrong.