Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAPA-432] fix: e2e tests #44

Merged
merged 32 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0381c39
fix(util): returns single word when is provided
vivianedias Sep 5, 2024
52e2ce8
feat: updates .env.example
vivianedias Sep 5, 2024
477fc31
feat(register): when submit is successful doesnt return to idle, only…
vivianedias Sep 5, 2024
530f64a
fix(submit): expects lambda res with message obj
vivianedias Sep 5, 2024
6caad26
feat: use .webp illustrations for better quality
vivianedias Sep 5, 2024
23b84ec
feat: adds tel on phone input
vivianedias Sep 5, 2024
0c4dfa9
fix: upserts msr using single query on prisma
vivianedias Sep 9, 2024
7c3da4d
feat: updates /handle-request maxDuration to 30s
vivianedias Sep 9, 2024
d54cfda
fix: uses enum from prisma to set form options
vivianedias Sep 9, 2024
97918b8
feat: update mockMsrPayload types
vivianedias Sep 9, 2024
40c6773
feat: adds prefetch to internal links
vivianedias Sep 9, 2024
38054e7
wip: adds logs for debugging
vivianedias Sep 9, 2024
8ca05aa
feat(zendesk): improves zendesk error logging
vivianedias Sep 9, 2024
496643d
feat: create formatDate func
vivianedias Sep 9, 2024
2ac15fc
feat: updates zendesk ticket types
vivianedias Sep 9, 2024
2511364
fix: date of birth parsing issue
vivianedias Sep 9, 2024
7f33d5b
feat(error): removes logs and improves zendesk error handling
vivianedias Sep 9, 2024
41770a7
fix: tests errors after dateOfBirth changes
vivianedias Sep 10, 2024
b61b739
fix(zendeskTicket): create support ticket with pending status
vivianedias Sep 10, 2024
882a958
fix(zendesk): parse color to match zendesk options
vivianedias Sep 10, 2024
368aede
feat(zendesk): improve zendesk ticket private comment when support re…
vivianedias Sep 10, 2024
080d887
fix(match): returns complete match payload when fetching from lambda
vivianedias Sep 10, 2024
3e0c76d
fix: returns only status when updating duplicated supportRequest
vivianedias Sep 10, 2024
610ee6b
fix: date formatter not transform in number before formatting to dash
vivianedias Sep 10, 2024
1ef94a5
fix: saves hasDisability as boolean if res came from form
vivianedias Sep 10, 2024
61490a1
feat: adds max length to fields and formats email
vivianedias Sep 10, 2024
1fc9907
fix: removes console.log from handle-request
vivianedias Sep 10, 2024
387f23f
fix(handle-request): fix tests
dieh Sep 10, 2024
bef8cb0
fix(handle-request): fix integrations tests
dieh Sep 10, 2024
0762041
fix(e2e): fix tests
dieh Sep 10, 2024
39453e0
fix: remove imports
dieh Sep 10, 2024
b7a3bdd
fix: removes .only from e2e tests
vivianedias Sep 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ ZENDESK_API_TOKEN=
ZENDESK_SUBDOMAIN=
ZENDESK_API_USER=
VOLUNTEER_API_URL=
MATCH_LAMBDA_URL=https://localhost:5000
MATCH_LAMBDA_URL=http://localhost:5000
16 changes: 8 additions & 8 deletions cypress/e2e/App.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ describe("Submit the form", () => {
cy.intercept("POST", "/handle-request", {
statusCode: 200,
body: {
psychological: "waiting_contact",
legal: "waiting_contact",
psychological: { status: "waiting_contact" },
legal: { status: "waiting_contact" },
},
});

Expand All @@ -249,7 +249,7 @@ describe("Submit the form", () => {
cy.intercept("POST", "/handle-request", {
statusCode: 200,
body: {
psychological: "duplicated",
psychological: { status: "duplicated" },
},
});

Expand All @@ -265,7 +265,7 @@ describe("Submit the form", () => {
cy.intercept("POST", "/handle-request", {
statusCode: 200,
body: {
legal: "waiting_contact",
legal: { status: "waiting_contact" },
},
});

Expand All @@ -281,8 +281,8 @@ describe("Submit the form", () => {
cy.intercept("POST", "/handle-request", {
statusCode: 200,
body: {
psychological: "duplicated",
legal: "waiting_contact",
psychological: { status: "duplicated" },
legal: [{ status: "waiting_contact" }],
},
});

Expand All @@ -298,8 +298,8 @@ describe("Submit the form", () => {
cy.intercept("POST", "/handle-request", {
statusCode: 200,
body: {
psychological: "duplicated",
legal: "duplicated",
psychological: { status: "duplicated" },
legal: { status: "duplicated" },
},
});

Expand Down
11 changes: 11 additions & 0 deletions public/icons/chat-msg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions public/icons/heart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 11 additions & 14 deletions public/icons/planner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 5 additions & 13 deletions public/icons/spinner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 12 additions & 14 deletions public/icons/user-profile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading