@@ -16,7 +16,7 @@ describe("toClick", () => {
16
16
await expect ( instance ) . toClick ( 'a[href="/page2.html"]' ) ;
17
17
await instance . waitForNavigation ( ) ;
18
18
const pathname = await instance . evaluate (
19
- ( ) => document . location . pathname
19
+ ( ) => document . location . pathname ,
20
20
) ;
21
21
expect ( pathname ) . toBe ( "/page2.html" ) ;
22
22
} ) ;
@@ -28,7 +28,7 @@ describe("toClick", () => {
28
28
} ) ;
29
29
await instance . waitForNavigation ( ) ;
30
30
const pathname = await instance . evaluate (
31
- ( ) => document . location . pathname
31
+ ( ) => document . location . pathname ,
32
32
) ;
33
33
expect ( pathname ) . toBe ( "/page2.html" ) ;
34
34
} ) ;
@@ -40,7 +40,7 @@ describe("toClick", () => {
40
40
} ) ;
41
41
await instance . waitForNavigation ( ) ;
42
42
const pathname = await instance . evaluate (
43
- ( ) => document . location . pathname
43
+ ( ) => document . location . pathname ,
44
44
) ;
45
45
expect ( pathname ) . toBe ( "/page2.html" ) ;
46
46
} ) ;
@@ -49,7 +49,7 @@ describe("toClick", () => {
49
49
await expect ( instance ) . toClick ( "a" , { text : "Page 2" } ) ;
50
50
await instance . waitForNavigation ( ) ;
51
51
const pathname = await instance . evaluate (
52
- ( ) => document . location . pathname
52
+ ( ) => document . location . pathname ,
53
53
) ;
54
54
expect ( pathname ) . toBe ( "/page2.html" ) ;
55
55
} ) ;
@@ -60,11 +60,11 @@ describe("toClick", () => {
60
60
value : "//a" ,
61
61
type : "xpath" ,
62
62
} ,
63
- { text : "Page 2" }
63
+ { text : "Page 2" } ,
64
64
) ;
65
65
await instance . waitForNavigation ( ) ;
66
66
const pathname = await instance . evaluate (
67
- ( ) => document . location . pathname
67
+ ( ) => document . location . pathname ,
68
68
) ;
69
69
expect ( pathname ) . toBe ( "/page2.html" ) ;
70
70
} ) ;
@@ -75,11 +75,11 @@ describe("toClick", () => {
75
75
value : "a" ,
76
76
type : "css" ,
77
77
} ,
78
- { text : "Page 2" }
78
+ { text : "Page 2" } ,
79
79
) ;
80
80
await instance . waitForNavigation ( ) ;
81
81
const pathname = await instance . evaluate (
82
- ( ) => document . location . pathname
82
+ ( ) => document . location . pathname ,
83
83
) ;
84
84
expect ( pathname ) . toBe ( "/page2.html" ) ;
85
85
} ) ;
@@ -101,7 +101,7 @@ describe("toClick", () => {
101
101
try {
102
102
await expect ( instance ) . toClick (
103
103
{ value : "//a" , type : "xpath" } ,
104
- { text : "Nop" }
104
+ { text : "Nop" } ,
105
105
) ;
106
106
} catch ( error : any ) {
107
107
expect ( error . message ) . toMatch ( 'Element //a (text: "Nop") not found' ) ;
@@ -115,7 +115,7 @@ describe("toClick", () => {
115
115
try {
116
116
await expect ( instance ) . toClick (
117
117
{ value : "a" , type : "css" } ,
118
- { text : "Nop" }
118
+ { text : "Nop" } ,
119
119
) ;
120
120
} catch ( error : any ) {
121
121
expect ( error . message ) . toMatch ( 'Element a (text: "Nop") not found' ) ;
0 commit comments