Skip to content

Commit

Permalink
Add failing integration test for #691
Browse files Browse the repository at this point in the history
  • Loading branch information
danyalaytekin committed Mar 18, 2024
1 parent 85c508e commit 09766f6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/integration/issue/691-input-autocomplete-username.test.js
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);
});
});
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>

0 comments on commit 09766f6

Please sign in to comment.