Logo: Relish

  1. Sign in

Project: Test1

Testing provisioning

  • @javascript
Scenarios
Test employer have ability to add new employee
Given
Go to Provisioning page
Given
Go to Provisioning page ".employees" tab
When
I click to ".add-new-item"
Then
Wait for employer form "Employee attributes:"
Given
Fill form new employee data
Given
Go to Provisioning page ".employees" tab
When
I submit new employee form
Then
I should see "User was successfully created"
Then
I should see new employee
Test closing Add New Employee form
Given
Go to Provisioning page
Given
Go to Provisioning page ".employees" tab
When
I click to ".add-new-item"
Then
Wait for employer form "Employee attributes:"
When
I closed employer form
Then
I should not see element "#form-employees"
Employer can set up Schedule to any employee and to any day
Given
Go to Provisioning page
Given
Go to Provisioning page ".employees" tab
Then
I should see existing employee
When
I click link "Setup Schedule"
Then
Wait for modal "Shift"
Given
I fill schedule fields for each day
When
Buttons "Save changes" pressed
Then
I should not see element "#modal-employee-schedule"
When
I click link "Setup Schedule"
Employer can't create new employee without filling all required fields
Given
Go to Provisioning page
Given
Go to Provisioning page ".employees" tab
When
I click to ".add-new-item"
Then
Wait for employer form "Employee attributes:"
When
Buttons "Save" pressed
Then
I should see "can't be blank"
Employer have ability to add & delete new zone
Given
Go to Provisioning page
Given
I click link "Zones"
When
I click link "Add"
Then
I should see "NAME"
Given
Fill incorrect new zone form
When
Buttons "Save changes" pressed
Then
I should see "Name is not a number"
When
I click link "Add"
Then
I should see "NAME"
When
Fill new zone form
When
Buttons "Save changes" pressed
Then
I should see "Zone was successfully updated"
Then
I should see new zone
When
I try delete new zone
Then
I should see "Delete zone"
When
Buttons "Delete" pressed
Then
I should not see new zone
Test operator have ability to add new Transport Desk Managers
Given
Go to Operator Provisioning page
Given
Go to Operator Provisioning page ".drivers" tab
Given
Go to Operator Provisioning page ".employers" tab
When
I click to ".add-new-item"
Then
Wait for modal "Add New Customer"
Given
Fill form new employer data
When
I submit new employer form
Then
I should see "User was successfully created"
Then
I should see new employer
When
I click link "Delete" created employer
When
Buttons "Delete" pressed
Then
I should not see deleted employer
Operator can't create new Transport Desk Managers without filling all required fields
Given
Go to Operator Provisioning page
Given
Go to Operator Provisioning page ".drivers" tab
Given
Go to Operator Provisioning page ".employers" tab
When
I click to ".add-new-item"
Then
Wait for modal "Add New Customer"
When
Buttons "Submit" pressed
Then
I should see "*This field is required."

Last published 9 months ago by ashish lhoiya.