Logo: Relish

  1. Sign in

Project: Mobile

Take button in activity catalog

As a user
I want to launch activities from the catalog
So that I can access the content easily

Background
Given
I am logged in as a mobile user
Scenarios
Clicking the 'take' button on an activity - no approval required
Given
there is an activity in the catalog that requires No approval
And
I go to the "activity catalog" page
When
I click on the "Take" button
And
I click on the "Launch" button
Then
I should see the course content in a new tab
Clicking the 'take' button on an activity - approval required
Given
there is an activity in the catalog that requires role approval
And
I go to the "activity catalog" page
When
I click on the "Take" button
Then
I should see a pop up that reads: "This activity requires role approval, do you want to continue" Yes or No options
When
I click on the "button" button
Then
result and the pop up window closes
Examples: Required Approvals
role button result
Manager Yes Request for approval should be sent to the manager
Manager No Nothing should happen
Admin Yes Request for approval should be sent to the admin
Admin No Nothing should happen
Manager and Admin Yes Request for approval should be sent to the manager
Manager and Admin No Nothing should happen
Clicking the 'take' button on an activity with an existing active training record - approval required
Given
there is an activity in the catalog that requires role approval
And
I have registered for that activity with a status of "status"
And
I go to the "activity catalog" page
When
I click on the "Take" button
And
I click on the "Launch" button
Then
I should see the course content in a new tab
Examples: Required Approvals
role status
Manager InProgress
Admin InProgress
Manager and Admin InProgress
Manager CompletePendingPostTest
Admin CompletePendingPostTest
Manager and Admin CompletePendingPostTest
Clicking the 'take' button on an activity on details - no approval required
Given
there is an activity in the catalog that requires No approval
And
I go to the "activity catalog" page
And
I click on that activity
And
that activity should launch a dialog with more details
When
I click on the "Take" button
And
I click on the "Launch" button
Then
I should see the course content in a new tab
Clicking the 'take' button on an activity on details - approval required
Given
there is an activity in the catalog that requires role approval
And
I go to the "activity catalog" page
And
I click on that activity
And
that activity should launch a dialog with more details
When
I click on the "Take" button
Then
I should see a pop up that reads: "This activity requires role approval, do you want to continue" Yes or No options
When
I click on the "button" button
Then
result and the pop up window closes
Examples: Required Approvals
role button result
Manager Yes Request for approval should be sent to the manager
Manager No Nothing should happen
Admin Yes Request for approval should be sent to the admin
Admin No Nothing should happen
Manager and Admin Yes Request for approval should be sent to the manager
Manager and Admin No Nothing should happen
Clicking the 'take' button on an activity on details with an existing active training record - approval required
Given
there is an activity in the catalog that requires role approval
And
I have registered for that activity with a status of "status"
And
I go to the "activity catalog" page
And
I click on that activity
And
that activity should launch a dialog with more details
When
I click on the "Take" button
And
I click on the "Launch" button
Then
I should see the course content in a new tab
Examples: Required Approvals
role status
Manager InProgress
Admin InProgress
Manager and Admin InProgress
Manager CompletePendingPostTest
Admin CompletePendingPostTest
Manager and Admin CompletePendingPostTest
Clicking the 'take' button on an activity - no approval required with email notification
Given
there is an activity in the catalog that requires No approval
And
the system defined email template "DefaultRegistrationNonScheduled" is active
And
I go to the "activity catalog" page
When
I click on the "Take" button
And
I click on the "Launch" button
Then
I should see the course content in a new tab
Clicking the 'take' button on an activity in my training - approval required
Given
there is an assigned activity in my training that requires role approval
And
I go to the "activities" page
When
I click on the "Take" button
Then
I should see a pop up that reads: "This activity requires role approval, do you want to continue" Yes or No options
When
I click on the "button" button
Then
result and the pop up window closes
And
Activity is updated with "status" status
Examples: Required Approvals
role button result status
Manager Yes Request for approval should be sent to the manager PendingManagerApproval
Manager No Nothing should happen Assigned
Admin Yes Request for approval should be sent to the admin Pending
Admin No Nothing should happen Assigned
Manager and Admin Yes Request for approval should be sent to the manager PendingManagerApproval
Manager and Admin No Nothing should happen Assigned
Clicking the 'take' button on activity details page - approval required
Given
there is an assigned activity in my training that requires role approval
And
I go to the "activities" page
And
I click on that activity
And
that activity should launch a dialog with more details
When
I click on the "Take" button
Then
I should see a pop up that reads: "This activity requires role approval, do you want to continue" Yes or No options
When
I click on the "button" button
Then
result and the pop up window closes
And
the activity details dialog is updated with "details_status" status
And
Activity is updated with "status" status
Examples: Required Approvals
role button result details_status status
Manager Yes Request for approval should be sent to the manager PendingManagerApproval PendingManagerApproval
Manager No Nothing should happen Assigned Assigned
Admin Yes Request for approval should be sent to the admin Pending Pending
Admin No Nothing should happen Assigned Assigned
Manager and Admin Yes Request for approval should be sent to the manager PendingManagerApproval PendingManagerApproval
Manager and Admin No Nothing should happen Assigned Assigned

Last published about 5 years ago by Trevor Little.