Skip to content

Commit

Permalink
Relax getAttribute test
Browse files Browse the repository at this point in the history
At least FF 64 with returns an absolute URL for the action attribute
  • Loading branch information
jason0x43 committed Jan 20, 2019
1 parent 8f23581 commit 6bd39a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/functional/Element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,9 @@ registerSuite('Element', () => {
return element.getAttribute('action');
})
.then(function(action) {
assert.strictEqual(action, 'form.html');
// At least Firefox 64 will return an absolute URL for the action
// attribute.
assert.match(action!, /(.*\/)?form.html/);
return session.findById('disabled');
})
.then(function(element) {
Expand Down

0 comments on commit 6bd39a1

Please sign in to comment.