File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
MSAL/test/automation/tests Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -214,9 +214,21 @@ - (void)closeAuthUIUsingWebViewType:(MSIDWebviewType)webViewType
214
214
// We take the second one and tap it
215
215
XCUIElement *secondButton = [elementQuery elementBoundByIndex: 1 ];
216
216
[secondButton msidTap ];
217
- } else
217
+ }
218
+ else
218
219
{
219
- [self .testApp.buttons[buttonTitle] msidTap ];
220
+ if (webViewType == MSIDWebviewTypeSafariViewController)
221
+ {
222
+ // We take the first one and force tap it, for some reason tap doesn't work
223
+ XCUIElement *firstButton = [elementQuery elementBoundByIndex: 0 ];
224
+
225
+ __auto_type coordinate = [firstButton coordinateWithNormalizedOffset: CGVectorMake (0 , 0 )];
226
+ [coordinate tap ];
227
+ }
228
+ else
229
+ {
230
+ [self .testApp.buttons[buttonTitle] msidTap ];
231
+ }
220
232
}
221
233
}
222
234
You can’t perform that action at this time.
0 commit comments