Skip to content

Commit

Permalink
Form e2e-test back to previous code.
Browse files Browse the repository at this point in the history
  • Loading branch information
msyk committed Dec 6, 2023
1 parent 787ce46 commit 7f8fcd0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions spec/run/test/specs/form_page_tests/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = (FormPage) => {
const waiting = 500

describe('Form Page with Detail Area', () => {
it('1-can edit the first record.', async () => {
it('1-can edit the first record.', async () => {
await FormPage.navigatorUpdateButton.waitForClickable();
await FormPage.navigatorUpdateButton.click();
await browser.pause(waiting)
Expand Down Expand Up @@ -40,7 +40,7 @@ module.exports = (FormPage) => {
await browser.pause(waiting * 3)

await expect(FormPage.contactTable).toExist() // check the detailed Contact table
const rows = await FormPage.rowContact
const rows = FormPage.rowContact
await expect(rows[0]).toExist() // There has three lines
await expect(rows[1]).toExist()
await expect(rows[2]).toExist()
Expand Down Expand Up @@ -116,7 +116,7 @@ module.exports = (FormPage) => {
await FormPage.contactTableInsertButton.click()
await browser.acceptAlert()
await browser.pause(waiting * 2)
const rows = await FormPage.rowContact
const rows = FormPage.rowContact
await rows[0].waitForExist()
await rows[1].waitForExist()
await rows[2].waitForExist()
Expand All @@ -139,10 +139,10 @@ module.exports = (FormPage) => {
await browser.acceptAlert()
await browser.pause(waiting * 4)

const rows = await FormPage.rowContact
// await rows[0].waitForExist()
// await rows[1].waitForExist()
// await rows[2].waitForExist()
const rows = FormPage.rowContact
await rows[0].waitForExist()
await rows[1].waitForExist()
await rows[2].waitForExist()
await expect(rows[0]).toExist() // There has three lines
await expect(rows[1]).toExist()
await expect(rows[2]).toExist()
Expand All @@ -157,16 +157,16 @@ module.exports = (FormPage) => {
await browser.pause(waiting)
const value = await FormPage.rowContactSummary[1].getValue()
await expect(FormPage.contactTableInsertButton).toExist()
await FormPage.rowContactCopyButton[1].waitForClickable()
await FormPage.rowContactDeleteButton[1].waitForClickable()
await FormPage.rowContactCopyButton[1].click()
//await browser.acceptAlert()
await browser.pause(waiting * 4)

const rows = await FormPage.rowContact
// await rows[0].waitForExist()
// await rows[1].waitForExist()
// await rows[2].waitForExist()
// await rows[3].waitForExist()
const rows = FormPage.rowContact
await rows[0].waitForExist()
await rows[1].waitForExist()
await rows[2].waitForExist()
await rows[3].waitForExist()
await expect(rows[0]).toExist() // There has three lines
await expect(rows[1]).toExist()
await expect(rows[2]).toExist()
Expand Down

0 comments on commit 7f8fcd0

Please sign in to comment.