From 603dffb3889fd011fbd46201a601d7e5dc043c47 Mon Sep 17 00:00:00 2001 From: Deep Panchal Date: Thu, 17 Aug 2023 15:10:00 -0500 Subject: [PATCH] fix(e2e): wait for incidents to load, use testTag to open New Case popup --- .maestro/work-tests/new-case-view.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.maestro/work-tests/new-case-view.yaml b/.maestro/work-tests/new-case-view.yaml index b95e8cd02..6402fc6f9 100644 --- a/.maestro/work-tests/new-case-view.yaml +++ b/.maestro/work-tests/new-case-view.yaml @@ -8,7 +8,14 @@ tags: onFlowStart: - runFlow: ../auth-tests/login.yaml --- -- tapOn: ".*new case.*" +# wait for incidents to load +- waitForAnimationToEnd: + timeout: 5000 +# start searching after loading spinner is invisible +- assertNotVisible: + id: workIncidentsLoadingIndicator +- tapOn: + id: "workNewCaseFab" - assertVisible: ".*new case.*" - assertVisible: text: "back"