From d99b7b095c2c7444c27ab57c3b78e472a6ae5b04 Mon Sep 17 00:00:00 2001 From: Kat Selvocki Date: Thu, 14 Jan 2021 15:27:24 -0800 Subject: [PATCH 1/2] Check attendance for empty status --- .../browser/Attendance/empty_attendance.robot | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 robot/pmm/tests/browser/Attendance/empty_attendance.robot diff --git a/robot/pmm/tests/browser/Attendance/empty_attendance.robot b/robot/pmm/tests/browser/Attendance/empty_attendance.robot new file mode 100644 index 000000000..849ca4cce --- /dev/null +++ b/robot/pmm/tests/browser/Attendance/empty_attendance.robot @@ -0,0 +1,34 @@ +*** Settings *** + +Resource robot/pmm/resources/pmm.robot +Library cumulusci.robotframework.PageObjects +... robot/pmm/resources/ServiceSessionPageObject.py +... robot/pmm/resources/BulkServiceDeliveryPageObject.py +Suite Setup Run Keywords +... Open Test Browser +... Setup Test Data +Suite Teardown Capture Screenshot and Delete Records and Close Browser + + +*** Keywords *** +Setup Test Data + [Documentation] Creates service session using API + ${ns} = Get PMM Namespace Prefix + Set suite variable ${ns} + ${program} = API Create Program + Set suite variable ${program} + ${service} = API Create Service ${Program}[Id] + Set suite variable ${service} + ${service_schedule} = API Create Service Schedule ${service}[Id] + Set suite variable ${service_schedule} + ${service_session1} = API Create Service Session ${service_schedule}[Id] Pending + Set suite variable ${service_session1} + + +*** Test Cases *** +Validate Empty Attendance State + [Documentation] This test confirms that the service session empty state message shows in track attendance + [tags] W-8607484 feature:Attendance + Go To PMM App + Go To Page Details ${ns}ServiceSession__c object_id=${service_session1}[Id] + Page Should Contain No participants yet \ No newline at end of file From 43d5e0068555ff0f3dd2ea1920a34f558bc0bfff Mon Sep 17 00:00:00 2001 From: Kat Selvocki Date: Thu, 14 Jan 2021 15:29:35 -0800 Subject: [PATCH 2/2] Update to empty attendance robot test --- robot/pmm/tests/browser/Attendance/empty_attendance.robot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/robot/pmm/tests/browser/Attendance/empty_attendance.robot b/robot/pmm/tests/browser/Attendance/empty_attendance.robot index 849ca4cce..827a57e06 100644 --- a/robot/pmm/tests/browser/Attendance/empty_attendance.robot +++ b/robot/pmm/tests/browser/Attendance/empty_attendance.robot @@ -31,4 +31,5 @@ Validate Empty Attendance State [tags] W-8607484 feature:Attendance Go To PMM App Go To Page Details ${ns}ServiceSession__c object_id=${service_session1}[Id] - Page Should Contain No participants yet \ No newline at end of file + Page Should Contain No participants yet + \ No newline at end of file