-
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
test: updated tests with aghelper table methods #33737
Changes from all commits
1652d65
27d0259
c923d92
d03ff40
c198021
1c85ab2
c308cbb
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ import { | |
agHelper, | ||
propPane, | ||
deployMode, | ||
table, | ||
} from "../../../../support/Objects/ObjectsCore"; | ||
import PageList from "../../../../support/Pages/PageList"; | ||
|
||
|
@@ -61,7 +62,7 @@ describe( | |
cy.wait(2000); | ||
deployMode.DeployApp(); | ||
cy.get(widgetsPage.chartWidget).should("not.exist"); | ||
cy.isSelectRow(1); | ||
table.SelectTableRow(1, 0, true, "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. Refactor to use arrow functions for consistency and modern JavaScript practices. - it("2. Validate NavigateTo Page functionality ", function () {
+ it("2. Validate NavigateTo Page functionality ", () => {
|
||
cy.get(widgetsPage.chartWidget).should("be.visible"); | ||
}); | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ import { | |
agHelper, | ||
propPane, | ||
deployMode, | ||
table, | ||
} from "../../../../support/Objects/ObjectsCore"; | ||
|
||
describe( | ||
|
@@ -55,7 +56,7 @@ describe( | |
cy.wait(2000); | ||
deployMode.DeployApp(); | ||
cy.get(widgetsPage.chartWidget).should("not.exist"); | ||
cy.isSelectRow(1); | ||
table.SelectTableRow(1); | ||
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. Refactor to use arrow functions for consistency and modern JavaScript practices. - it("1. Create MyPage and valdiate if its successfully created", function () {
+ it("1. Create MyPage and valdiate if its successfully created", () => {
|
||
cy.get(widgetsPage.chartWidget).should("be.visible"); | ||
}); | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ import { | |
entityExplorer, | ||
agHelper, | ||
propPane, | ||
table, | ||
} from "../../../../support/Objects/ObjectsCore"; | ||
|
||
describe( | ||
|
@@ -35,7 +36,7 @@ describe( | |
}); | ||
|
||
it("2. validation of default data displayed in all widgets based on row selected", function () { | ||
cy.isSelectRow(1); | ||
table.SelectTableRow(1); | ||
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. Refactor to use arrow functions for consistency and modern JavaScript practices. - it("2. validation of default data displayed in all widgets based on row selected", function () {
+ it("2. validation of default data displayed in all widgets based on row selected", () => {
|
||
cy.readTabledataPublish("1", "0").then((tabData) => { | ||
const tabValue = tabData; | ||
expect(tabValue).to.be.equal("2736212"); | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -12,13 +12,12 @@ describe("Trigger errors in the debugger", function () { | |||||||||||||||||||||||||||||||||||||||||||
cy.EnableAllCodeEditors(); | ||||||||||||||||||||||||||||||||||||||||||||
cy.testJsontext("onrowselected", "{{console.logs('test')}}"); | ||||||||||||||||||||||||||||||||||||||||||||
// Click on a row of the table widget | ||||||||||||||||||||||||||||||||||||||||||||
cy.isSelectRow(1); | ||||||||||||||||||||||||||||||||||||||||||||
cy.wait(5000); | ||||||||||||||||||||||||||||||||||||||||||||
_.table.SelectTableRow(1); | ||||||||||||||||||||||||||||||||||||||||||||
//should be 2 if we decide to show trigger errors in the debugger. | ||||||||||||||||||||||||||||||||||||||||||||
_.debuggerHelper.AssertErrorCount(1); | ||||||||||||||||||||||||||||||||||||||||||||
// Fix code | ||||||||||||||||||||||||||||||||||||||||||||
cy.testJsontext("onrowselected", "{{console.log('test')}}"); | ||||||||||||||||||||||||||||||||||||||||||||
cy.isSelectRow(1); | ||||||||||||||||||||||||||||||||||||||||||||
_.table.SelectTableRow(1); | ||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+15
to
+20
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. Updated method usage aligns with new testing standards. Consider converting function expressions to arrow functions for consistency and modern JavaScript practices. - before(() => {
+ before(() => {
- it("1. Trigger errors need to be shown in the errors tab", function () {
+ it("1. Trigger errors need to be shown in the errors tab", () => { Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||
_.debuggerHelper.AssertErrorCount(1); | ||||||||||||||||||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||||||||||||||||||
}); |
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.
Refactor to use arrow functions for consistency and modern JavaScript practices.