@@ -38,15 +38,15 @@ describe("page-router-outlet-scenario", async function () {
38
38
39
39
it ( "should not hide action bar when hidden by page" , async function ( ) {
40
40
const hideActionBarButton = await driver . findElementByAutomationText ( "HideActionBar" ) ;
41
- hideActionBarButton . click ( ) ;
41
+ await hideActionBarButton . click ( ) ;
42
42
43
43
const screenMatches = await driver . compareScreen ( "actionBarVisibility-always-hidden" , 5 ) ;
44
44
assert ( screenMatches ) ;
45
45
} ) ;
46
46
47
47
it ( "should not do anything when shown action bar by page" , async function ( ) {
48
48
const showActionBarButton = await driver . findElementByAutomationText ( "ShowActionBar" ) ;
49
- showActionBarButton . click ( ) ;
49
+ await showActionBarButton . click ( ) ;
50
50
51
51
const screenMatches = await driver . compareScreen ( "actionBarVisibility-always-shown" , 5 ) ;
52
52
assert ( screenMatches ) ;
@@ -81,15 +81,15 @@ describe("page-router-outlet-scenario", async function () {
81
81
82
82
it ( "should not show action bar when shown by page" , async function ( ) {
83
83
const showActionBarButton = await driver . findElementByAutomationText ( "ShowActionBar" ) ;
84
- showActionBarButton . click ( ) ;
84
+ await showActionBarButton . click ( ) ;
85
85
86
86
const screenMatches = await driver . compareScreen ( "actionBarVisibility-never-shown" , 5 ) ;
87
87
assert ( screenMatches ) ;
88
88
} ) ;
89
89
90
90
it ( "should not do anything when hidden action bar by page" , async function ( ) {
91
91
const hideActionBarButton = await driver . findElementByAutomationText ( "HideActionBar" ) ;
92
- hideActionBarButton . click ( ) ;
92
+ await hideActionBarButton . click ( ) ;
93
93
94
94
const screenMatches = await driver . compareScreen ( "actionBarVisibility-never-hidden" , 5 ) ;
95
95
assert ( screenMatches ) ;
@@ -128,15 +128,15 @@ describe("page-router-outlet-scenario", async function () {
128
128
129
129
it ( "should not show action bar when shown by page" , async function ( ) {
130
130
const showActionBarButton = await driver . findElementByAutomationText ( "ShowActionBar" ) ;
131
- showActionBarButton . click ( ) ;
131
+ await showActionBarButton . click ( ) ;
132
132
133
133
const screenMatches = await driver . compareScreen ( `actionBarVisibility-never-shown${ imagePostFix } ` , 5 ) ;
134
134
assert ( screenMatches ) ;
135
135
} ) ;
136
136
137
137
it ( "should not do anything when hidden action bar by page" , async function ( ) {
138
138
const hideActionBarButton = await driver . findElementByAutomationText ( "HideActionBar" ) ;
139
- hideActionBarButton . click ( ) ;
139
+ await hideActionBarButton . click ( ) ;
140
140
141
141
const screenMatches = await driver . compareScreen ( `actionBarVisibility-never-hidden${ imagePostFix } ` , 5 ) ;
142
142
assert ( screenMatches ) ;
@@ -171,16 +171,14 @@ describe("page-router-outlet-scenario", async function () {
171
171
172
172
it ( "should hide action bar when hidden by page" , async function ( ) {
173
173
const hideActionBarButton = await driver . findElementByAutomationText ( "HideActionBar" ) ;
174
- hideActionBarButton . click ( ) ;
175
-
174
+ await hideActionBarButton . click ( ) ;
176
175
const screenMatches = await driver . compareScreen ( "actionBarVisibility-auto-hidden" , 5 ) ;
177
176
assert ( screenMatches ) ;
178
177
} ) ;
179
178
180
179
it ( "should show action bar when shown by page" , async function ( ) {
181
180
const showActionBarButton = await driver . findElementByAutomationText ( "ShowActionBar" ) ;
182
- showActionBarButton . click ( ) ;
183
-
181
+ await showActionBarButton . click ( ) ;
184
182
const screenMatches = await driver . compareScreen ( "actionBarVisibility-auto-shown" , 5 ) ;
185
183
assert ( screenMatches ) ;
186
184
} ) ;
0 commit comments