File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 1
- < div > second page</ div >
1
+ < div >
2
+ < h2 > second page</ h2 >
3
+ </ div >
2
4
< section >
3
5
< section >
4
6
< h2 > configure</ h2 >
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ module.exports = {
33
33
34
34
} ,
35
35
36
+
36
37
async 'getByLabelText' ( browser ) {
37
38
const { getByLabelText } = getQueriesFrom ( browser ) ;
38
39
const input = await getByLabelText ( 'Label For Input Labelled By Id' ) ;
@@ -94,7 +95,29 @@ module.exports = {
94
95
browser . assert . elementNotPresent ( nonExistentButtons ) ;
95
96
96
97
97
- }
98
+ } ,
99
+
100
+ async 'still works after page navigation' ( browser ) {
101
+ const { getByText } = getQueriesFrom ( browser ) ;
102
+
103
+ const page2 = await getByText ( 'Go to Page 2' ) ;
104
+
105
+ browser . click ( page2 ) ;
106
+
107
+ browser . expect . element ( await getByText ( 'second page' ) ) . to . be . present ;
108
+ } ,
109
+
110
+ async 'still works after refresh' ( browser ) {
111
+ const { getByText } = getQueriesFrom ( browser ) ;
112
+
113
+ browser . click ( await getByText ( 'Go to Page 2' ) ) ;
114
+
115
+ browser . back ( ) ;
116
+ browser . refresh ( ) ;
117
+
118
+ browser . expect . element ( await getByText ( 'getByText' ) ) . to . be . present ;
119
+ } ,
120
+
98
121
99
122
100
123
You can’t perform that action at this time.
0 commit comments