Skip to content

Commit

Permalink
Form e2e-test modified.
Browse files Browse the repository at this point in the history
  • Loading branch information
msyk committed Dec 7, 2023
1 parent 7f8fcd0 commit 786f82b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/run/test/specs/form_page_tests/form.js
Original file line number Diff line number Diff line change
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 = FormPage.rowContact
const rows = await 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 = FormPage.rowContact
const rows = await FormPage.rowContact
await rows[0].waitForExist()
await rows[1].waitForExist()
await rows[2].waitForExist()
Expand Down Expand Up @@ -162,7 +162,7 @@ module.exports = (FormPage) => {
//await browser.acceptAlert()
await browser.pause(waiting * 4)

const rows = FormPage.rowContact
const rows = await FormPage.rowContact
await rows[0].waitForExist()
await rows[1].waitForExist()
await rows[2].waitForExist()
Expand Down

0 comments on commit 786f82b

Please sign in to comment.