Skip to content

Commit

Permalink
Refactor email Playwright tests to use maildev API and e2e-mailbox
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Nov 11, 2024
1 parent c6a1646 commit a81d625
Show file tree
Hide file tree
Showing 20 changed files with 458 additions and 223 deletions.
2 changes: 1 addition & 1 deletion backend/LexBoxApi/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"CloudFlare": {
// always passes key, more info here: https://developers.cloudflare.com/turnstile/frequently-asked-questions/#are-there-sitekeys-and-secret-keys-that-can-be-used-for-testing
"TurnstileKey": "1x0000000000000000000000000000000AA",
"AllowDomain": "mailinator.com"
"AllowDomain": "maildev.com"
},
"HgConfig": {
"RepoPath": "../../hgweb/repos",
Expand Down
2 changes: 1 addition & 1 deletion deployment/develop/lexbox-deployment.patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- name: lexbox-api
env:
- name: CloudFlare__AllowDomain
value: "mailinator.com"
value: "developermail.com"
- name: ASPNETCORE_ENVIRONMENT
value: "Staging" #we don't want to act like dev as that's for local development
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deployment/local-dev/lexbox-deployment.patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
value: "1x0000000000000000000000000000000AA"
valueFrom:
- name: CloudFlare__AllowDomain
value: "mailinator.com"
value: "maildev.com"
- name: HealthChecksConfig__RequireFwHeadlessContainerVersionMatch
value: "false"
- name: HealthChecksConfig__RequireHealthyFwHeadlessContainer
Expand Down
2 changes: 1 addition & 1 deletion deployment/staging/lexbox-deployment.patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:

env:
- name: CloudFlare__AllowDomain
value: "mailinator.com"
value: "developermail.com"
- name: Email__SmtpHost
value: email-smtp.us-east-1.amazonaws.com
- name: Email__SmtpPort
Expand Down
1 change: 1 addition & 0 deletions frontend/.npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
engine-strict=true
include-workspace-root=true
ignore-workspace-root-check=true # we commonly add packages to the root package.json (aka frontend/package.json)
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"@types/set-cookie-parser": "^2.4.7",
"@vitejs/plugin-basic-ssl": "^1.1.0",
"css-tree": "^2.3.1",
"e2e-mailbox": "1.1.5",
"js-cookie": "^3.0.5",
"just-order-by": "^1.0.0",
"mjml": "^4.15.3",
Expand Down
Loading

0 comments on commit a81d625

Please sign in to comment.