From 170af2ccf05abe33bbadfcb00fda7e0dfd6b1da6 Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Sat, 14 Aug 2021 10:29:57 -0500 Subject: [PATCH] Update PermissionsTests.swift --- Clocker/ClockerUITests/PermissionsTests.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Clocker/ClockerUITests/PermissionsTests.swift b/Clocker/ClockerUITests/PermissionsTests.swift index 55e1cce..f58d8c9 100644 --- a/Clocker/ClockerUITests/PermissionsTests.swift +++ b/Clocker/ClockerUITests/PermissionsTests.swift @@ -14,6 +14,10 @@ class PermissionsTests: XCTestCase { } func testAcceptingCalendarPermissions() { + if app.tables["FloatingTableView"].exists { + app.buttons["FloatingPin"].click() + } + app.tapMenubarIcon() app/*@START_MENU_TOKEN@*/.buttons["Preferences"]/*[[".dialogs[\"Clocker Panel\"].buttons[\"Preferences\"]",".buttons[\"Preferences\"]"],[[[-1,1],[-1,0]]],[0]]@END_MENU_TOKEN@*/.click() @@ -52,6 +56,10 @@ class PermissionsTests: XCTestCase { } func testAcceptingRemindersPermissions() { + if app.tables["FloatingTableView"].exists { + app.tapMenubarIcon() + app.buttons["FloatingPin"].click() + } app.tapMenubarIcon() app/*@START_MENU_TOKEN@*/.buttons["Preferences"]/*[[".dialogs[\"Clocker Panel\"].buttons[\"Preferences\"]",".buttons[\"Preferences\"]"],[[[-1,1],[-1,0]]],[0]]@END_MENU_TOKEN@*/.click()