So that I can inform Candidates about the site and grant them access to answer questions
As an Administrator
I want to send invitations to Candidates
Scenario: Invite a single uninvited candidate
Given I have found 1 or more candidates
When I click the invite button associated with the candidate’s details
Then the candidate is sent an email inviting them to answer questions
And the email contains instructions on how to access the site, identify themselves to it, and authenticate themselves.
And the date and time on which the invitation was sent is recorded against the candidate.
Scenario: Invite all uninvited candidates
Given there are 1 or more uninvited candidates
When I click the invite all button
Then each candidate with a valid email address, and who has not been invited already, is sent an email inviting them to answer questions
And the email contains instructions on how to access the site, identify themselves to it, and authenticate themselves.
And I am told which candidates were invited
And I am told which candidates were not invited, and why (e.g. invalid email address)
And the date and time on which the invitation was sent is recorded against each candidate.
Scenario: There are no questions to answer
Given 0 questions exist
When I have found 1 or more candidates
Then I am told candidates cannot be invited yet because there are insufficient questions to answer
And no invite buttons appear on the page
Scenario: Candidates who have been invited already
Given I have found 1 or more candidates.
When 1 or more of these have been invited already.
Then I am told these candidates have been invited already.
And no invite buttons are associated with these candidates’ details.
Scenario: Invite candidates without valid email addresses
Given I have found 1 or more candidates
When 1 or more found candidates are without a valid email address
Then I am told these candidates cannot be invited yet because they don’t have valid email addresses.
And no invite buttons are associated with these candidates’ details.
And I am invited to visit yournextmp.com to update the candidates’ email addresses.
So that I can inform Candidates about the site and grant them access to answer questions As an Administrator I want to send invitations to Candidates
Scenario: Invite a single uninvited candidate Given I have found 1 or more candidates When I click the invite button associated with the candidate’s details Then the candidate is sent an email inviting them to answer questions And the email contains instructions on how to access the site, identify themselves to it, and authenticate themselves. And the date and time on which the invitation was sent is recorded against the candidate.
Scenario: Invite all uninvited candidates Given there are 1 or more uninvited candidates When I click the invite all button Then each candidate with a valid email address, and who has not been invited already, is sent an email inviting them to answer questions And the email contains instructions on how to access the site, identify themselves to it, and authenticate themselves. And I am told which candidates were invited And I am told which candidates were not invited, and why (e.g. invalid email address) And the date and time on which the invitation was sent is recorded against each candidate.
Scenario: There are no questions to answer Given 0 questions exist When I have found 1 or more candidates Then I am told candidates cannot be invited yet because there are insufficient questions to answer And no invite buttons appear on the page
Scenario: Candidates who have been invited already Given I have found 1 or more candidates. When 1 or more of these have been invited already. Then I am told these candidates have been invited already. And no invite buttons are associated with these candidates’ details.
Scenario: Invite candidates without valid email addresses Given I have found 1 or more candidates When 1 or more found candidates are without a valid email address Then I am told these candidates cannot be invited yet because they don’t have valid email addresses. And no invite buttons are associated with these candidates’ details. And I am invited to visit yournextmp.com to update the candidates’ email addresses.