Skip to content

Commit

Permalink
feat(playwright): waitForDisabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Jun 26, 2024
1 parent 59fbd5d commit 056bcb6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/helper/Playwright_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,16 +733,13 @@ describe('Playwright', function () {

describe('#waitForDisabled', () => {
it('should wait for input text field to be disabled', () =>
I.amOnPage('/form/wait_disabled')
.then(() => I.waitForDisabled('#text', 1)))
I.amOnPage('/form/wait_disabled').then(() => I.waitForDisabled('#text', 1)))

it('should wait for input text field to be enabled by xpath', () =>
I.amOnPage('/form/wait_disabled')
.then(() => I.waitForDisabled("//*[@name = 'test']", 1)))
I.amOnPage('/form/wait_disabled').then(() => I.waitForDisabled("//*[@name = 'test']", 1)))

it('should wait for a button to be disabled', () =>
I.amOnPage('/form/wait_disabled')
.then(() => I.waitForDisabled('#text', 1)))
I.amOnPage('/form/wait_disabled').then(() => I.waitForDisabled('#text', 1)))
})

describe('#waitForValue', () => {
Expand Down

0 comments on commit 056bcb6

Please sign in to comment.