Skip to content

Commit

Permalink
fix: allowed email domains Merge pull request #562 from UKForeignOffi…
Browse files Browse the repository at this point in the history
…ce/revert-561-revert-559-fix/allowed-domains
  • Loading branch information
jenbutongit committed Feb 2, 2023
2 parents cf5d193 + a732638 commit 8e5e45e
Show file tree
Hide file tree
Showing 12 changed files with 2,450 additions and 1,136 deletions.
8 changes: 4 additions & 4 deletions .jest/setEnvVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ process.env.FORM_RUNNER_SAFELIST = "localhost";
process.env.FORM_RUNNER_URL = "apply:3001";

process.env.GOVUK_NOTIFY_API_KEY = "123_Notify_API_Key";
process.env.GOVUK_NOTIFY_PROFESSIONAL_APPLICATION_EMAIL_CONFIRMATION_TEMPLATE_ID =
"123ABC";
process.env.GOVUK_NOTIFY_POST_NEW_PROFESSIONAL_APPLICATION_RECEIVED_TEMPLATE_ID =
"123ABC";
process.env.GOVUK_NOTIFY_PROFESSIONAL_APPLICATION_EMAIL_CONFIRMATION_TEMPLATE_ID = "123ABC";
process.env.GOVUK_NOTIFY_POST_NEW_PROFESSIONAL_APPLICATION_RECEIVED_TEMPLATE_ID = "123ABC";
process.env.GOVUK_NOTIFY_AUTHENTICATION_EMAIL_TEMPLATE_ID = "123ABC";
process.env.GOVUK_NOTIFY_DATA_PUBLISHED_TEMPLATE_ID = "123ABC";

process.env.ALLOWED_EMAIL_DOMAINS = "";
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
Feature: List management change annual review date

Background:
And I am logged in as a "Administrator"
Given I am logged in as a "Administrator"
And A "lawyers" list exists for Eurasia
And I click the link "Lists"
And I click the link "Settings" for "Eurasia"
And I click the link "Change"
And I see page with heading "Change annual review start date"

Scenario: Can change annual review date
Given I enter "1" in the "day" input
And I enter "2" in the "month" input
When I enter a valid new annual review date
And I click the "Continue" button
And I see page with heading "Confirm new annual review start date"
And I click the "Continue" button
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
When("I enter a valid new annual review date", () => {
const today = new Date();
cy.findByLabelText("Day").type(1);
cy.findByLabelText("Month").type(today.getMonth() + 3);
});
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ services:
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_SECRET_ACCESS_KEY: "${AWS_ACCESS_KEY_ID}"
sandbox: "false"
ALLOWED_EMAIL_DOMAINS: "${ALLOWED_EMAIL_DOMAINS}"
# uncomment this if you have a .env file you want to use locally. Docker compose will throw an error if this does not exist.
# env_file: .env
depends_on:
Expand Down
Loading

0 comments on commit 8e5e45e

Please sign in to comment.