You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/playwright-accessibility-test.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,21 +118,19 @@ set LT_ACCESS_KEY="${ YOUR_LAMBDATEST_ACCESS_KEY()}"`}
118
118
To enable the accessibility testing within your automated test suite, set the `accessibility: true` in your configuration file. You can also define other settings capabilities as described below.
119
119
120
120
```javascript
121
-
constcapabilities= {
122
-
'LT:Options': {
123
-
..//
124
-
"accessibility":true,
125
-
"accessibility.wcagVersion":"wcag21a",
126
-
"accessibility.bestPractice":true,
127
-
"accessibility.needsReview":true
128
-
}
129
-
}
121
+
constcapabilities= {
122
+
"accessibility":true,
123
+
"accessibility.wcagVersion":"wcag21a",
124
+
"accessibility.bestPractice":false,
125
+
"accessibility.needsReview":true
126
+
};
130
127
```
131
128
132
129
### Step 4: Add the following add-on Script
133
-
In your `lambdatest-setup.js` file add these three lines after your page creation command as shown below:
130
+
LambdaTest uses an internal Chrome extension that powers accessibility scans and generates accessibility reports. In your `lambdatest-setup.js` file add these three lines after your page creation command as shown below:
134
131
135
132
```javascript
133
+
// Load the extension for report generation of the accessibility tests
Now execute your tests and visit the [Automation Dashboard](https://accounts.lambdatest.com/dashboard). Click on the Accessibility tab and check the report generated.
144
142
145
143
```bash
146
-
node test
144
+
npx playwright test --config=./playwright.config.js
0 commit comments