Skip to content

Commit 65a56cf

Browse files
authored
Fix syntax highlighting
1 parent 52f48cb commit 65a56cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Then use the cypress image diff command to take screenshots of pages or elements
3333

3434
### Take screenshot and compare of the whole page
3535

36-
```
36+
```js
3737
describe('Visuals', () => {
3838
it('should compare screenshot of the entire page', () => {
3939
cy.visit('www.google.com')
@@ -44,7 +44,7 @@ describe('Visuals', () => {
4444

4545
You can also make the comparison assertion more flexible by applying a higher threshold (default is 0):
4646

47-
```
47+
```js
4848
describe('Visuals', () => {
4949
it('should compare screenshot of the entire page', () => {
5050
cy.visit('www.google.com')
@@ -55,7 +55,7 @@ describe('Visuals', () => {
5555

5656
### Take screenshot and compare an element
5757

58-
```
58+
```js
5959
describe('Visuals', () => {
6060
it('should compare screenshot from a given element', () => {
6161
cy.visit('www.google.com')
@@ -88,7 +88,7 @@ Folder structure is hard coded (see below). There will be enhancements coming in
8888

8989
In order to force the screenshot resolution when running a test you will need to set the following environment variables:
9090

91-
```
91+
```js
9292
export HEIGHT=2240 // Default is set to 1280
9393
export WIDTH=1980 // Default is set to 720
9494
```

0 commit comments

Comments
 (0)