Skip to content

Commit 8f3c12b

Browse files
committed
fix: Chrome popup causes problems with TestCafe
1 parent b287a41 commit 8f3c12b

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

test/helper/webapi.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -533,15 +533,6 @@ module.exports.tests = function () {
533533
assert.equal(formContents('name'), 'Nothing special')
534534
})
535535

536-
it('should fill field by name', async () => {
537-
await I.amOnPage('/form/example1')
538-
await I.fillField('LoginForm[username]', 'davert')
539-
await I.fillField('LoginForm[password]', '123456')
540-
await I.click('Login')
541-
assert.equal(formContents('LoginForm').username, 'davert')
542-
assert.equal(formContents('LoginForm').password, '123456')
543-
})
544-
545536
it('should fill textarea by css', async () => {
546537
await I.amOnPage('/form/textarea')
547538
await I.fillField('textarea', 'Nothing special')
@@ -580,6 +571,16 @@ module.exports.tests = function () {
580571
assert.equal(formContents('name'), 'OLD_VALUE_AND_NEW')
581572
})
582573

574+
it('should fill field by name', async () => {
575+
if (isHelper('TestCafe')) return // TODO Chrome popup causes problems with TestCafe
576+
await I.amOnPage('/form/example1')
577+
await I.fillField('LoginForm[username]', 'davert')
578+
await I.fillField('LoginForm[password]', '123456')
579+
await I.click('Login')
580+
assert.equal(formContents('LoginForm').username, 'davert')
581+
assert.equal(formContents('LoginForm').password, '123456')
582+
})
583+
583584
it.skip('should not fill invisible fields', async () => {
584585
if (isHelper('Playwright')) return // It won't be implemented
585586
await I.amOnPage('/form/field')

0 commit comments

Comments
 (0)