@@ -130,6 +130,15 @@ module.exports = {
130
130
. assert . containsText ( '.view' , 'foo 1' )
131
131
. click ( 'li:nth-child(2) a' )
132
132
. assert . containsText ( '.view' , 'foo 1' )
133
+ . click ( 'li:nth-child(6) a' )
134
+ . click ( '#resetLogs' )
135
+ . click ( 'li:nth-child(7) a' )
136
+ . assert . containsText ( '.view' , 'foo 0' )
137
+ . expect . element ( '#logs' )
138
+ . text . to . equal (
139
+ [ 'update /f/2 - /f/2' , 'setup:update /f/2 - /f/2' ] . join ( '\n' )
140
+ )
141
+ browser . click ( 'li:nth-child(6) a' ) . assert . containsText ( '.view' , 'foo 0' )
133
142
134
143
browser . end ( )
135
144
} ,
@@ -168,6 +177,27 @@ module.exports = {
168
177
. click ( 'li:nth-child(2) a' )
169
178
. click ( 'li:nth-child(6) a' )
170
179
. assert . containsText ( '.view' , 'foo 2' )
180
+ . click ( '#resetLogs' )
181
+ . click ( 'li:nth-child(7) a' )
182
+ . assert . containsText ( '.view' , 'foo 0' )
183
+ . expect . element ( '#logs' )
184
+ // should only trigger active guards
185
+ . text . to . equal (
186
+ [ 'update /f/2 - /f/2' , 'setup:update /f/2 - /f/2' ] . join ( '\n' )
187
+ )
188
+ browser
189
+ . click ( 'li:nth-child(6) a' )
190
+ . assert . containsText ( '.view' , 'foo 2' )
191
+ . expect . element ( '#logs' )
192
+ . text . to . equal (
193
+ [
194
+ 'update /f/2 - /f/2' ,
195
+ 'setup:update /f/2 - /f/2' ,
196
+ // we won't see the update guard because the instance is not available
197
+ // 'update /f/2 - /f/2',
198
+ 'setup:update /f/2 - /f/2' ,
199
+ ] . join ( '\n' )
200
+ )
171
201
172
202
browser . end ( )
173
203
} ,
0 commit comments