Files
heygermany-e2e-mrg3zujp/e2e/tests/features/multi-actor-workflows.feature
e2e 3bb535efe8
Some checks failed
Main / Setup and Test (push) Has been cancelled
Main / Build Website (push) Has been cancelled
chore: heygermany customer project
2026-07-11 10:35:04 +02:00

137 lines
7.9 KiB
Gherkin
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@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 "Weve 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 "Weve 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 "Weve 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"