Skip to content

Commit 63ccdd3

Browse files
committed
Merge pull request #1157 from amanchopra1905/stage
playwright accessibility doc updates
1 parent 90201be commit 63ccdd3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/playwright-accessibility-test.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import TabItem from '@theme/TabItem';
4242
})
4343
}}
4444
></script>
45-
4645
This document walks you through the process of evaluating the accessibility of your website through the execution of automated tests using LambdaTest's Accessibility Tool.
4746

4847
<!-- > Compatible only with Chrome and Edge browser versions >= 90. -->
@@ -55,7 +54,6 @@ This document walks you through the process of evaluating the accessibility of y
5554
## Step-by-Step Guide to Trigger Your Test
5655

5756
### Step 1: Setup Your Test Suite
58-
5957
You can use your own project to configure and test it. For demo purposes, we are using the sample repository.
6058

6159
:::tip sample repo
@@ -117,7 +115,6 @@ set LT_ACCESS_KEY="${ YOUR_LAMBDATEST_ACCESS_KEY()}"`}
117115
</Tabs>
118116

119117
### Step 3: Configure the Necessary Capabilities
120-
121118
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.
122119

123120
```javascript
@@ -132,7 +129,16 @@ To enable the accessibility testing within your automated test suite, set the `a
132129
}
133130
```
134131

135-
### Step 4: Execute and Monitor your Test
132+
### 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:
134+
135+
```javascript
136+
await ltPage.goto("chrome://extensions/?id=johgkfjmgfeapgnbkmfkfkaholjbcnah");
137+
const secondToggleButton = ltPage.locator('#crToggle').nth(0);
138+
await secondToggleButton.click();
139+
```
140+
141+
### Step 5: Execute and Monitor your Test
136142

137143
Now execute your tests and visit the [Automation Dashboard](https://accounts.lambdatest.com/dashboard). Click on the Accessibility tab and check the report generated.
138144

0 commit comments

Comments
 (0)