Skip to content

Commit

Permalink
fix wd UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Jan 24, 2025
1 parent ef800ae commit 9f0954a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/helper/webapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,8 @@ module.exports.tests = function () {

describe('#attachFile', () => {
it('should upload file located by CSS', async () => {
if (isHelper('WebDriver')) this.skip()

await I.amOnPage('/form/file')
await I.attachFile('#avatar', 'app/avatar.jpg')
await I.click('Submit')
Expand All @@ -856,6 +858,8 @@ module.exports.tests = function () {
})

it('should upload file located by label', async () => {
if (isHelper('WebDriver')) this.skip()

await I.amOnPage('/form/file')
await I.attachFile('Avatar', 'app/avatar.jpg')
await I.click('Submit')
Expand Down

0 comments on commit 9f0954a

Please sign in to comment.