Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robot: Empty state on Track Attendance component #394

Merged
merged 3 commits into from
Jan 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions robot/pmm/tests/browser/Attendance/empty_attendance.robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
*** 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