-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add failing integration test for #691
- Loading branch information
1 parent
85c508e
commit 09766f6
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
test/integration/issue/691-input-autocomplete-username.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use strict'; | ||
|
||
const runPa11yCli = require('../helper/pa11y-cli'); | ||
|
||
describe('pa11y/pa11y#691: With input[autocomplete*=username]', () => { | ||
it('CLI invocation produces results, avoiding exit with TypeError', async () => { | ||
const {output} = await runPa11yCli( | ||
`${global.mockWebsiteAddress}/issue/691-input-autocomplete-username`, { | ||
arguments: ['--reporter', 'cli'] | ||
} | ||
); | ||
expect(output).toMatch(/Results for URL/i); | ||
}); | ||
}); |
17 changes: 17 additions & 0 deletions
17
test/integration/mock/html/issue/691-input-autocomplete-username.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<meta | ||
data-issue="691" | ||
data-description="CLI exits with TypeError if input[autocomplete*=username] is present" | ||
data-url="https://github.com/pa11y/pa11y/issues/691" | ||
> | ||
<title>Minimal reproduction of pa11y/pa11y#691</title> | ||
</head> | ||
<body> | ||
|
||
<input autocomplete="username"> | ||
|
||
</body> | ||
</html> |