chore: heygermany customer project
This commit is contained in:
136
e2e/tests/features/multi-actor-workflows.feature
Normal file
136
e2e/tests/features/multi-actor-workflows.feature
Normal file
@@ -0,0 +1,136 @@
|
||||
@multi-actor
|
||||
Feature: Multi-actor candidate workflows
|
||||
Candidate journeys can span multiple roles and still stay coherent entirely through the UI.
|
||||
|
||||
Scenario: candidate can restart an application after backoffice invalidates it
|
||||
Given the "candidate" actor visits "/en/jobs/apply"
|
||||
When the "candidate" actor starts a new application
|
||||
Then the "candidate" actor URL contains "/jobs/application"
|
||||
|
||||
When the "admin" actor logs into backoffice
|
||||
And the "admin" actor opens the current candidate in backoffice
|
||||
And the "admin" actor marks the candidate as "Invalid"
|
||||
|
||||
When the "candidate" actor revisits the current candidate application
|
||||
Then the "candidate" actor sees "Please upload a clear and complete version of the missing or invalid document(s) so we can continue your evaluation."
|
||||
|
||||
When the "candidate" actor clicks "Upload documents again"
|
||||
Then the "candidate" actor sees "Personal Info"
|
||||
And the "candidate" actor URL contains "/jobs/application"
|
||||
|
||||
Scenario: candidate sees the submitted state after backoffice marks the application pending
|
||||
Given the "candidate" actor visits "/en/jobs/apply"
|
||||
When the "candidate" actor starts a new application
|
||||
Then the "candidate" actor URL contains "/jobs/application"
|
||||
|
||||
When the "admin" actor logs into backoffice
|
||||
And the "admin" actor opens the current candidate in backoffice
|
||||
And the "admin" actor marks the candidate as "Pending"
|
||||
|
||||
When the "candidate" actor revisits the current candidate application
|
||||
Then the "candidate" actor sees "Thanks! Your documents were uploaded successfully."
|
||||
And the "candidate" actor sees "We’ve got everything we need to start your personal evaluation"
|
||||
|
||||
Scenario: candidate result becomes visible to both the candidate and company after backoffice completes the review
|
||||
Given the "candidate" actor visits "/en/jobs/apply"
|
||||
When the "candidate" actor starts a new application
|
||||
And the "candidate" actor completes and submits the candidate application
|
||||
|
||||
When the "admin" actor logs into backoffice
|
||||
And the "admin" actor opens the current candidate in backoffice
|
||||
And the "admin" actor sees "Manual Assessment"
|
||||
And the "admin" actor sets the backoffice field "Status In Home Country" to "Nurse"
|
||||
And the "admin" actor sets the backoffice field "Status In Germany" to "Assistant Nurse"
|
||||
And the "admin" actor sets the backoffice field "License Mandatory" to "No"
|
||||
And the "admin" actor sets the backoffice field "Duration Requirements Met" to "Yes"
|
||||
And the "admin" actor sets the verification field "Nursing Related Degree" to "Yes"
|
||||
And the "admin" actor sets the verification field "Accredited University" to "Yes"
|
||||
And the "admin" actor sets the verification field "Accredited Study Program" to "Yes"
|
||||
And the "admin" actor sets the verification field "Is Nursing Focus" to "Yes"
|
||||
And the "admin" actor sets the verification field "Has Theory" to "Yes"
|
||||
And the "admin" actor sets the verification field "Has Practice" to "Yes"
|
||||
And the "admin" actor sets the verification field "Duration Hours" to "4800"
|
||||
Then the "admin" actor sees "Valid"
|
||||
|
||||
When the "admin" actor marks the candidate as "Complete"
|
||||
And the "candidate" actor revisits the current candidate application
|
||||
Then the "candidate" actor sees "A First Step Towards Your Nursing Career"
|
||||
And the "candidate" actor sees "You Qualify as a Nursing Assistant in Berlin"
|
||||
|
||||
When the "company" actor logs into company
|
||||
And the "company" actor opens the current candidate in company
|
||||
Then the "company" actor URL contains "/en/company/candidate/"
|
||||
And the "company" actor sees the current candidate name
|
||||
And the "company" actor sees "Philippines"
|
||||
|
||||
Scenario: candidate sees both the submitted and invalidated states across repeated admin reviews
|
||||
Given the "candidate" actor visits "/en/jobs/apply"
|
||||
When the "candidate" actor starts a new application
|
||||
And the "candidate" actor completes and submits the candidate application
|
||||
|
||||
When the "admin" actor logs into backoffice
|
||||
And the "admin" actor opens the current candidate in backoffice
|
||||
And the "admin" actor marks the candidate as "Pending"
|
||||
|
||||
When the "candidate" actor revisits the current candidate application
|
||||
Then the "candidate" actor sees "Thanks! Your documents were uploaded successfully."
|
||||
And the "candidate" actor sees "We’ve got everything we need to start your personal evaluation"
|
||||
|
||||
When the "admin" actor visits "/en/backoffice/candidates"
|
||||
And the "admin" actor opens the current candidate in backoffice
|
||||
And the "admin" actor marks the candidate as "Invalid"
|
||||
|
||||
When the "candidate" actor revisits the current candidate application
|
||||
Then the "candidate" actor sees "Please upload a clear and complete version of the missing or invalid document(s) so we can continue your evaluation."
|
||||
When the "candidate" actor clicks "Upload documents again"
|
||||
Then the "candidate" actor sees "Personal Info"
|
||||
And the "candidate" actor URL contains "/jobs/application"
|
||||
|
||||
Scenario: candidate can move from submission to invalidation to resubmission and final company visibility
|
||||
Given the "candidate" actor visits "/en/jobs/apply"
|
||||
When the "candidate" actor starts a new application
|
||||
And the "candidate" actor completes and submits the candidate application
|
||||
|
||||
When the "admin" actor logs into backoffice
|
||||
And the "admin" actor opens the current candidate in backoffice
|
||||
And the "admin" actor marks the candidate as "Pending"
|
||||
|
||||
When the "candidate" actor revisits the current candidate application
|
||||
Then the "candidate" actor sees "Thanks! Your documents were uploaded successfully."
|
||||
And the "candidate" actor sees "We’ve got everything we need to start your personal evaluation"
|
||||
|
||||
When the "admin" actor visits "/en/backoffice/candidates"
|
||||
And the "admin" actor opens the current candidate in backoffice
|
||||
And the "admin" actor marks the candidate as "Invalid"
|
||||
|
||||
When the "candidate" actor revisits the current candidate application
|
||||
Then the "candidate" actor sees "Please upload a clear and complete version of the missing or invalid document(s) so we can continue your evaluation."
|
||||
When the "candidate" actor clicks "Upload documents again"
|
||||
And the "candidate" actor completes and submits the candidate application
|
||||
|
||||
When the "admin" actor visits "/en/backoffice/candidates"
|
||||
And the "admin" actor opens the current candidate in backoffice
|
||||
And the "admin" actor sees "Manual Assessment"
|
||||
And the "admin" actor sets the backoffice field "Status In Home Country" to "Nurse"
|
||||
And the "admin" actor sets the backoffice field "Status In Germany" to "Assistant Nurse"
|
||||
And the "admin" actor sets the backoffice field "License Mandatory" to "No"
|
||||
And the "admin" actor sets the backoffice field "Duration Requirements Met" to "Yes"
|
||||
And the "admin" actor sets the verification field "Nursing Related Degree" to "Yes"
|
||||
And the "admin" actor sets the verification field "Accredited University" to "Yes"
|
||||
And the "admin" actor sets the verification field "Accredited Study Program" to "Yes"
|
||||
And the "admin" actor sets the verification field "Is Nursing Focus" to "Yes"
|
||||
And the "admin" actor sets the verification field "Has Theory" to "Yes"
|
||||
And the "admin" actor sets the verification field "Has Practice" to "Yes"
|
||||
And the "admin" actor sets the verification field "Duration Hours" to "4800"
|
||||
Then the "admin" actor sees "Valid"
|
||||
|
||||
When the "admin" actor marks the candidate as "Complete"
|
||||
And the "candidate" actor revisits the current candidate application
|
||||
Then the "candidate" actor sees "A First Step Towards Your Nursing Career"
|
||||
And the "candidate" actor sees "You Qualify as a Nursing Assistant in Berlin"
|
||||
|
||||
When the "company" actor logs into company
|
||||
And the "company" actor opens the current candidate in company
|
||||
Then the "company" actor URL contains "/en/company/candidate/"
|
||||
And the "company" actor sees the current candidate name
|
||||
And the "company" actor sees "Philippines"
|
||||
Reference in New Issue
Block a user