-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix: table version changed for crud #29457
Changes from all commits
8ffbe1b
1cf36c6
06cc0c8
d176488
b03a110
50ef2e5
a2a1c6d
d7a2c73
8a91736
5e10141
f72c6b0
5cbb108
5a71982
58596c6
b93dd07
d9d9e71
456926a
1a01f39
2866789
e208b6b
121c7c1
a5416ce
4e4440d
c10d49c
e824a15
03dbf24
b161f65
4b42f0f
1ac32b0
f1c41de
8868f13
499ce8e
045724d
aafbd9a
caf7406
be295d2
031c59d
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ import { | |
assertHelper, | ||
dataSources, | ||
deployMode, | ||
draggableWidgets, | ||
entityExplorer, | ||
entityItems, | ||
locators, | ||
|
@@ -49,7 +50,7 @@ describe( | |
); | ||
|
||
deployMode.NavigateBacktoEditor(); | ||
table.WaitUntilTableLoad(); | ||
table.WaitUntilTableLoad(0, 0, "v2"); | ||
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. The |
||
|
||
//Delete the test data | ||
entityExplorer.ActionContextMenuByEntityName({ | ||
|
@@ -75,7 +76,7 @@ describe( | |
agHelper.GetNClickByContains(dataSources._dropdownOption, "coffeeCafe"); | ||
GenerateCRUDNValidateDeployPage("", "", "Washington, US", 11); | ||
deployMode.NavigateBacktoEditor(); | ||
table.WaitUntilTableLoad(1, 0); | ||
table.WaitUntilTableLoad(1, 0, "v2"); | ||
//Delete the test data | ||
PageLeftPane.expandCollapseItem("Pages"); | ||
entityExplorer.ActionContextMenuByEntityName({ | ||
|
@@ -103,17 +104,17 @@ describe( | |
assertHelper.AssertNetworkStatus("@postExecute", 200); | ||
agHelper.ClickButton("Got it"); | ||
assertHelper.AssertNetworkStatus("@updateLayout", 200); | ||
deployMode.DeployApp(locators._widgetInDeployed("tablewidget")); | ||
deployMode.DeployApp(locators._widgetInDeployed(draggableWidgets.TABLE)); | ||
|
||
//Validating loaded table | ||
agHelper.AssertElementExist(dataSources._selectedRow); | ||
table.ReadTableRowColumnData(0, 0, "v1", 2000).then(($cellData) => { | ||
table.ReadTableRowColumnData(0, 0, "v2", 2000).then(($cellData) => { | ||
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. The |
||
expect($cellData).to.eq(col1Text); | ||
}); | ||
table.ReadTableRowColumnData(0, 3, "v1", 200).then(($cellData) => { | ||
table.ReadTableRowColumnData(0, 3, "v2", 200).then(($cellData) => { | ||
expect($cellData).to.eq(col2Text); | ||
}); | ||
table.ReadTableRowColumnData(0, 6, "v1", 200).then(($cellData) => { | ||
table.ReadTableRowColumnData(0, 6, "v2", 200).then(($cellData) => { | ||
expect($cellData).to.eq(col3Text); | ||
}); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ import { | |
assertHelper, | ||
dataSources, | ||
deployMode, | ||
draggableWidgets, | ||
entityExplorer, | ||
entityItems, | ||
homePage, | ||
Comment on lines
3
to
9
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.
The |
||
|
@@ -58,7 +59,7 @@ describe( | |
GenerateCRUDNValidateDeployPage("ABW", "Aruba", "North America", "Code"); | ||
|
||
deployMode.NavigateBacktoEditor(); | ||
table.WaitUntilTableLoad(); | ||
table.WaitUntilTableLoad(0, 0, "v2"); | ||
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. The |
||
//Delete the test data | ||
PageLeftPane.expandCollapseItem("Pages"); | ||
entityExplorer.ActionContextMenuByEntityName({ | ||
|
@@ -127,7 +128,7 @@ describe( | |
); | ||
|
||
deployMode.NavigateBacktoEditor(); | ||
table.WaitUntilTableLoad(); | ||
table.WaitUntilTableLoad(0, 0, "v2"); | ||
//Delete the test data | ||
PageLeftPane.expandCollapseItem("Pages"); | ||
entityExplorer.ActionContextMenuByEntityName({ | ||
|
@@ -191,29 +192,29 @@ describe( | |
assertHelper.AssertNetworkStatus("@postExecute", 200); | ||
agHelper.ClickButton("Got it"); | ||
assertHelper.AssertNetworkStatus("@updateLayout", 200); | ||
deployMode.DeployApp(locators._widgetInDeployed("tablewidget")); | ||
deployMode.DeployApp(locators._widgetInDeployed(draggableWidgets.TABLE)); | ||
|
||
//Validating loaded table | ||
agHelper.AssertElementExist(dataSources._selectedRow); | ||
table.ReadTableRowColumnData(0, 0, "v1", 2000).then(($cellData) => { | ||
table.ReadTableRowColumnData(0, 0, "v2", 2000).then(($cellData) => { | ||
expect($cellData).to.eq("Classic Cars"); | ||
}); | ||
table.ReadTableRowColumnData(1, 0, "v1", 200).then(($cellData) => { | ||
table.ReadTableRowColumnData(1, 0, "v2", 200).then(($cellData) => { | ||
expect($cellData).to.eq("Motorcycles"); | ||
}); | ||
table.ReadTableRowColumnData(2, 0, "v1", 200).then(($cellData) => { | ||
table.ReadTableRowColumnData(2, 0, "v2", 200).then(($cellData) => { | ||
expect($cellData).to.eq("Planes"); | ||
}); | ||
table.ReadTableRowColumnData(3, 0, "v1", 200).then(($cellData) => { | ||
table.ReadTableRowColumnData(3, 0, "v2", 200).then(($cellData) => { | ||
expect($cellData).to.eq("Ships"); | ||
}); | ||
table.ReadTableRowColumnData(4, 0, "v1", 200).then(($cellData) => { | ||
table.ReadTableRowColumnData(4, 0, "v2", 200).then(($cellData) => { | ||
expect($cellData).to.eq("Trains"); | ||
}); | ||
table.ReadTableRowColumnData(5, 0, "v1", 200).then(($cellData) => { | ||
table.ReadTableRowColumnData(5, 0, "v2", 200).then(($cellData) => { | ||
expect($cellData).to.eq("Trucks and Buses"); | ||
}); | ||
table.ReadTableRowColumnData(6, 0, "v1", 200).then(($cellData) => { | ||
table.ReadTableRowColumnData(6, 0, "v2", 200).then(($cellData) => { | ||
expect($cellData).to.eq("Vintage Cars"); | ||
}); | ||
//Validating loaded JSON form | ||
|
@@ -273,7 +274,7 @@ describe( | |
|
||
it("8. Validate Deletion of the Newly Created Page - Productlines", () => { | ||
deployMode.NavigateBacktoEditor(); | ||
table.WaitUntilTableLoad(); | ||
table.WaitUntilTableLoad(0, 0, "v2"); | ||
//Delete the test data | ||
entityExplorer.ActionContextMenuByEntityName({ | ||
entityNameinLeftSidebar: "Productlines", | ||
|
@@ -327,18 +328,18 @@ describe( | |
assertHelper.AssertNetworkStatus("@postExecute", 200); | ||
agHelper.ClickButton("Got it"); | ||
assertHelper.AssertNetworkStatus("@updateLayout", 200); | ||
deployMode.DeployApp(locators._widgetInDeployed("tablewidget")); | ||
table.WaitUntilTableLoad(); | ||
deployMode.DeployApp(locators._widgetInDeployed(draggableWidgets.TABLE)); | ||
table.WaitUntilTableLoad(0, 0, "v2"); | ||
|
||
//Validating loaded table | ||
agHelper.AssertElementExist(dataSources._selectedRow); | ||
table.ReadTableRowColumnData(0, 0, "v1", 2000).then(($cellData) => { | ||
table.ReadTableRowColumnData(0, 0, "v2", 2000).then(($cellData) => { | ||
expect($cellData).to.eq(col1Text); | ||
}); | ||
table.ReadTableRowColumnData(0, 1, "v1", 200).then(($cellData) => { | ||
table.ReadTableRowColumnData(0, 1, "v2", 200).then(($cellData) => { | ||
expect($cellData).to.eq(col2Text); | ||
}); | ||
table.ReadTableRowColumnData(0, 2, "v1", 200).then(($cellData) => { | ||
table.ReadTableRowColumnData(0, 2, "v2", 200).then(($cellData) => { | ||
expect($cellData).to.eq(col3Text); | ||
}); | ||
|
||
|
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.
The
WaitUntilTableLoad
function has been updated to include parameters for coordinates and version. Ensure that the new parameters are being used correctly throughout the test suite and that all instances of this function call have been updated accordingly.