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 19, 2019
1 parent 229cb9d commit c99e15b
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 c99e15b

Please sign in to comment.