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

Merging dev to main #180

Merged
merged 242 commits into from
Jan 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
242 commits
Select commit Hold shift + click to select a range
31246bb
modal links on button click
DaceyTom2 Nov 1, 2022
5fecfcb
fixed test error
DaceyTom2 Nov 1, 2022
9232bb9
trigger modals depending on internal or external
numbap Nov 2, 2022
f08d20c
Merge branch 'dev' into 84451-modal-link-on-button-click
numbap Nov 2, 2022
c3a9fd3
removed Link
numbap Nov 2, 2022
1ad3e2b
Update dashboard.cy.js
manishasharma5757 Nov 2, 2022
b54bdff
updated spacing as per figma
shewood Nov 3, 2022
998d1f1
Merge branch 'dev' into sch-spacing
shewood Nov 3, 2022
eec0e55
merge with dev
shewood Nov 3, 2022
4eb2668
Merge pull request #120 from DTS-STN/sch-spacing
shewood Nov 4, 2022
0072375
New test cases added for Exit Beta version
manishasharma5757 Nov 4, 2022
e118af5
Merge branch 'dev' into 84421_TCs
manishasharma5757 Nov 4, 2022
48e3970
changes for Exit Beta version
manishasharma5757 Nov 4, 2022
ce2d0bf
Conditional beta popup
numbap Nov 7, 2022
f85b64d
Merge branch 'dev' into 84451-modal-link-on-button-click
numbap Nov 7, 2022
6d67030
added proptype
numbap Nov 7, 2022
31d2865
Update BenefitTasks.js
numbap Nov 7, 2022
f317649
Update ProfileTasks.js
numbap Nov 7, 2022
9319b8a
Update my-dashboard.js
numbap Nov 7, 2022
d98a68f
Update my-dashboard.js
numbap Nov 7, 2022
b885a03
Update my-dashboard.js
numbap Nov 7, 2022
4f405ee
Update profile.js
numbap Nov 7, 2022
3acd669
Update ProfileTasks.js
numbap Nov 7, 2022
b66b9b8
Update BenefitTasks.js
numbap Nov 7, 2022
c6cde5d
Update BenefitTasks.js
numbap Nov 7, 2022
c12b848
quick fix for accessibility error
CurtisUnderwood Nov 8, 2022
25c3a90
Merge pull request #122 from DTS-STN/84280-title-fix
CurtisUnderwood Nov 8, 2022
802a7fe
removed additional tag
numbap Nov 8, 2022
f0f724c
Merge pull request #123 from DTS-STN/dev
numbap Nov 8, 2022
4e98e26
skipping new Exit beta tcs
manishasharma5757 Nov 8, 2022
74c872f
beta popup
numbap Nov 8, 2022
6ce87e8
added popup to most requested tasks
numbap Nov 8, 2022
8da7f13
added popup to most requested tasks
numbap Nov 8, 2022
8823515
Merge pull request #109 from DTS-STN/84451-modal-link-on-button-click
numbap Nov 8, 2022
6f1d7a7
fixed betapopup french page load
CurtisUnderwood Nov 9, 2022
cf99f6a
Merge branch 'dev' into 84421_TCs
manishasharma5757 Nov 9, 2022
cefc458
Merge pull request #124 from DTS-STN/french-popup-fix
CurtisUnderwood Nov 9, 2022
e73eb72
Merge branch 'dev' into 84421_TCs
manishasharma5757 Nov 9, 2022
588297c
Merge pull request #121 from DTS-STN/84421_TCs
manishasharma5757 Nov 9, 2022
bc97a95
fix: upgrade @opentelemetry/api from 1.1.0 to 1.2.0
snyk-bot Nov 10, 2022
e690d98
Bug 87058 Dashboard new tab exceptions (#125)
DaceyTom2 Nov 10, 2022
0052d6b
updated some styles as per the figma
shewood Nov 10, 2022
9d047f1
Merge branch 'dev' into fix-styles
shewood Nov 10, 2022
8159b2b
Test cases for Beta Exit Modal
manishasharma5757 Nov 10, 2022
a5bd93a
Merge branch 'dev' into Exit_Beta_Tests
manishasharma5757 Nov 10, 2022
e744752
banner popup link
numbap Nov 11, 2022
9c4a33b
Merge branch 'dev' into 87175-beta-banner-popup
numbap Nov 11, 2022
5108c50
test cases
manishasharma5757 Nov 11, 2022
8399cc6
default size set to prevent icon flash
CurtisUnderwood Nov 14, 2022
5a57d2e
fixed security-settings mapping
CurtisUnderwood Nov 14, 2022
1560b1a
skipped the test cases as development is in progress
manishasharma5757 Nov 15, 2022
508f22a
Merge pull request #130 from DTS-STN/87783-settings-map
nibivi77 Nov 15, 2022
3b08609
Merge branch 'dev' into 86051-banner-flash
nibivi77 Nov 15, 2022
faecc97
Merge branch 'dev' into fix-styles
shewood Nov 15, 2022
e1cc9bb
Merge branch 'dev' into Exit_Beta_Tests
manishasharma5757 Nov 15, 2022
91355a4
Merge pull request #127 from DTS-STN/fix-styles
shewood Nov 15, 2022
ccd3011
Merge branch 'dev' into 86051-banner-flash
nibivi77 Nov 15, 2022
e31f176
Merge pull request #129 from DTS-STN/86051-banner-flash
nibivi77 Nov 15, 2022
fe4c741
Merge pull request #126 from DTS-STN/snyk-upgrade-5ea53f989da9ea001cd…
nibivi77 Nov 16, 2022
20f80d8
merging with dev
nibivi77 Nov 16, 2022
48d9bc1
Small changes.
nibivi77 Nov 16, 2022
e8f165a
Fixing test.
nibivi77 Nov 16, 2022
0852e69
Adding some PR review suggestions
manishasharma5757 Nov 16, 2022
329c4f0
Merge branch 'dev' into Exit_Beta_Tests
manishasharma5757 Nov 16, 2022
6a12200
Merge pull request #128 from DTS-STN/87175-beta-banner-popup
numbap Nov 17, 2022
6de9402
Update cypress/e2e/PageObjects/dashboardPO.cy.js
manishasharma5757 Nov 17, 2022
082a886
Code improvement
manishasharma5757 Nov 17, 2022
5062f33
Code improvements
manishasharma5757 Nov 17, 2022
75d5999
Merge branch 'dev' into Exit_Beta_Tests
manishasharma5757 Nov 17, 2022
3e04f84
Code changes
manishasharma5757 Nov 17, 2022
ee08f01
Merge branch 'Exit_Beta_Tests' of https://github.com/DTS-STN/secure-c…
manishasharma5757 Nov 17, 2022
e86681b
Code improvements
manishasharma5757 Nov 17, 2022
c17e9c8
Code changes
manishasharma5757 Nov 17, 2022
d8f72bb
Update cypress/e2e/dashboard.cy.js
manishasharma5757 Nov 17, 2022
936ef1c
New improvements
manishasharma5757 Nov 17, 2022
4ea4f61
Merge pull request #131 from DTS-STN/Exit_Beta_Tests
manishasharma5757 Nov 17, 2022
bf231b2
Adding all AEM popup content.
nibivi77 Nov 18, 2022
c51f78a
fix: upgrade next from 12.3.1 to 12.3.2
snyk-bot Nov 20, 2022
9ecda93
added beta page for status and documents
shewood Nov 21, 2022
291b5f9
fixes FA icon flash for all icons in prod
CurtisUnderwood Nov 21, 2022
9b0e13b
Merge pull request #134 from DTS-STN/sch-87188
shewood Nov 22, 2022
6fe79f6
Merge pull request #132 from DTS-STN/get-popup-content-from-aem
nibivi77 Nov 22, 2022
3404002
Merge pull request #135 from DTS-STN/86051-fa-flash
shewood Nov 22, 2022
dc5b404
Forgot other components.
nibivi77 Nov 22, 2022
6f5a0cb
Fixing tests?
nibivi77 Nov 22, 2022
9c144db
:)
nibivi77 Nov 22, 2022
4494442
Should be good now!
nibivi77 Nov 22, 2022
704d7c6
unblocking github?
nibivi77 Nov 22, 2022
76a7055
Merge pull request #137 from DTS-STN/popup-bug-fix
nibivi77 Nov 22, 2022
3b35a91
added ei link to exception
shewood Nov 22, 2022
f76c6ad
Merge branch 'dev' into tasklist-link
shewood Nov 22, 2022
c4bb1d2
updated links for ei exception
shewood Nov 23, 2022
0544094
Merge pull request #138 from DTS-STN/tasklist-link
shewood Nov 23, 2022
528c815
added contact-us landing page
CurtisUnderwood Nov 23, 2022
f7eecdd
moved key
CurtisUnderwood Nov 23, 2022
4d82762
replace next link with anchor (#141)
DaceyTom2 Nov 23, 2022
5019a9d
Added testing for Profile
numbap Nov 24, 2022
0c274d9
added fake msca page
shewood Nov 24, 2022
d030d13
TC fixes
manishasharma5757 Nov 24, 2022
07fc273
New tc's for Contact us landing page
manishasharma5757 Nov 25, 2022
3118074
Merge branch '90010-Testing-For-Profile-Page' into Contact_us_Page
manishasharma5757 Nov 25, 2022
d17b8ea
added locals for msca page
shewood Nov 25, 2022
279c622
added content variable
numbap Nov 25, 2022
e7a20cc
fixed tests
shewood Nov 25, 2022
449d138
added header
numbap Nov 25, 2022
ee19bbe
Merge branch 'dev' into 89815-contact-landing
CurtisUnderwood Nov 28, 2022
d766825
Merge pull request #140 from DTS-STN/89815-contact-landing
CurtisUnderwood Nov 28, 2022
92e56dd
Merge pull request #143 from DTS-STN/sch-89951
shewood Nov 29, 2022
b68d1b2
Merge pull request #142 from DTS-STN/90010-Testing-For-Profile-Page
numbap Nov 29, 2022
caec0fc
added contact sections
numbap Nov 29, 2022
2e30ab4
Merge pull request #133 from DTS-STN/snyk-upgrade-c032378d6180c8e5cf9…
nibivi77 Nov 29, 2022
fe75ad5
Updating Design System package. (#144)
nibivi77 Nov 30, 2022
c8b2133
Update to 34.0
nibivi77 Nov 30, 2022
e903dc1
Fixing cypress tests.
nibivi77 Nov 30, 2022
5c9dd77
fixed failing tests (#148)
DaceyTom2 Nov 30, 2022
a17d920
Merge branch 'dev' into opentelemetry/auto-instrumentations-node-update
nibivi77 Nov 30, 2022
4a4fa10
Removing duplicate
nibivi77 Nov 30, 2022
0b31e62
Merge pull request #147 from DTS-STN/opentelemetry/auto-instrumentati…
nibivi77 Nov 30, 2022
5b2f251
pulling in dropdown text from aem
CurtisUnderwood Nov 30, 2022
2bd7b37
Merge pull request #149 from DTS-STN/88232-aem-dropdown
CurtisUnderwood Nov 30, 2022
4c41e7b
added AEM JSON
numbap Dec 1, 2022
1b4903a
first rough draft
numbap Dec 1, 2022
0932b6a
clean-up
numbap Dec 1, 2022
4b42a83
removed excess imports
numbap Dec 1, 2022
a31df84
removed excess libraries
numbap Dec 1, 2022
3afd7bc
updated recent changes
numbap Dec 2, 2022
3eb2f81
removed console log
numbap Dec 2, 2022
6d11be9
removed console log
numbap Dec 2, 2022
9f8048c
fixed key issue
numbap Dec 2, 2022
cb01db0
changes based on pull request recommendations
numbap Dec 2, 2022
cf03b2a
removed styling from gobal CSS
numbap Dec 2, 2022
7301655
Tc's for Contact us landing page
manishasharma5757 Dec 5, 2022
188baff
Merge branch 'dev' into Contact_us_Page
manishasharma5757 Dec 5, 2022
588ca07
TC fixes and Contact Us landing page Tcs)
manishasharma5757 Dec 5, 2022
191e10d
More TC fixes
manishasharma5757 Dec 5, 2022
27bb21d
Merge pull request #152 from DTS-STN/Contact_us_Page
manishasharma5757 Dec 5, 2022
46d35ef
added webkit
shewood Dec 5, 2022
106365d
Merge branch 'dev' into 90265-Create-EI-Contact-Page
numbap Dec 5, 2022
3504fd2
Merge branch 'dev' into cy-webkit
shewood Dec 5, 2022
c2e4058
Changed URL for contact page
numbap Dec 5, 2022
3a7de4c
added unit tests
numbap Dec 5, 2022
5e7c49d
updated cypress axe
shewood Dec 5, 2022
dbd5818
fix: upgrade next from 12.3.2 to 12.3.3 (#150)
snyk-bot Dec 6, 2022
2f367e0
removed CSS
numbap Dec 6, 2022
31c3d2c
Merge branch 'dev' into cy-webkit
DaceyTom2 Dec 6, 2022
bc652e6
Merge branch 'dev' into cy-webkit
shewood Dec 6, 2022
f868b5d
Merge branch 'cy-webkit' of github.com:DTS-STN/secure-client-hub into…
shewood Dec 6, 2022
c5e1dc1
Merge pull request #153 from DTS-STN/cy-webkit
shewood Dec 6, 2022
6275bbc
Merge branch 'dev' into 90265-Create-EI-Contact-Page
numbap Dec 6, 2022
4a1ec90
Commiting
numbap Dec 6, 2022
f59877f
Merge pull request #151 from DTS-STN/90265-Create-EI-Contact-Page
numbap Dec 6, 2022
437a728
TCs for EI contact Us Page
manishasharma5757 Dec 6, 2022
8bba4b4
Merge branch 'dev' into ContactUs_EI_TCs
manishasharma5757 Dec 6, 2022
504a490
Added data-cy tags
manishasharma5757 Dec 6, 2022
0714519
Code improvements
manishasharma5757 Dec 7, 2022
d297ede
Merge pull request #156 from DTS-STN/ContactUs_EI_TCs
manishasharma5757 Dec 7, 2022
8daebeb
Bug Fix: Removed tracing temporarily (#158)
DaceyTom2 Dec 7, 2022
40b45a3
first commit
numbap Dec 9, 2022
e3e46c1
added data to page
numbap Dec 9, 2022
b5f0a0d
updated page
numbap Dec 9, 2022
a6b0b4d
fixed unit test
numbap Dec 9, 2022
01b494a
removed unused imports
numbap Dec 9, 2022
e941b1e
added breadcrumbs
numbap Dec 12, 2022
abae79f
added props to page
numbap Dec 12, 2022
9bf9cf8
created CPP contact page components
numbap Dec 12, 2022
cba8158
Merge pull request #159 from DTS-STN/90266-EI-contact-graphql
numbap Dec 12, 2022
f1e24cb
Added mapper
numbap Dec 12, 2022
cb0c799
integrated query into page
numbap Dec 12, 2022
189105c
created test
numbap Dec 12, 2022
191bbda
New test cases added for EI ContactUs page
manishasharma5757 Dec 13, 2022
8a8e282
added oas contact
CurtisUnderwood Dec 14, 2022
a06fd34
created EI contact-us unit test
numbap Dec 14, 2022
b98647e
created CPP contact-us unit test
numbap Dec 14, 2022
41ee2d5
clean-up
numbap Dec 14, 2022
051b4d8
Adding test coverages to README.
nibivi77 Dec 14, 2022
a1be3f5
Changing label.
nibivi77 Dec 14, 2022
5dfc78c
changed test file names
numbap Dec 14, 2022
7ada7e1
Merge pull request #160 from DTS-STN/contactusEITcs
manishasharma5757 Dec 14, 2022
a212eb5
fixed mail and formatting
CurtisUnderwood Dec 14, 2022
be1f47e
small fr fix
CurtisUnderwood Dec 14, 2022
8207ebc
Added suggested changes from pull request
numbap Dec 15, 2022
b4d1cc0
Merge pull request #164 from DTS-STN/test-coverages-readme
nibivi77 Dec 15, 2022
188dc2b
fixed french province names
numbap Dec 15, 2022
c86f4a9
Merge branch 'dev' into 93110-cpp-contact-query
numbap Dec 15, 2022
4b5ddbe
added spacing between buttons on the modal
shewood Dec 15, 2022
3775de9
skip test
numbap Dec 15, 2022
92e22f8
Merge pull request #165 from DTS-STN/beta-popupmodal
shewood Dec 15, 2022
d5db193
Fixed French provinces on contact form
numbap Dec 19, 2022
44df332
added console log
numbap Dec 19, 2022
05e349d
removed extra file
numbap Dec 19, 2022
1f46409
odal
numbap Dec 19, 2022
0e514a0
Merge pull request #163 from DTS-STN/93110-cpp-contact-query
numbap Dec 19, 2022
b49352c
ca uppercase
CurtisUnderwood Dec 19, 2022
5969e12
Merge branch 'dev' into 93731-contact-oas
CurtisUnderwood Dec 19, 2022
bdfd13e
[Snyk] Upgrade @opentelemetry/auto-instrumentations-node from 0.34.0 …
DaceyTom2 Dec 19, 2022
b489252
Merge branch 'dev' into 93731-contact-oas
CurtisUnderwood Dec 19, 2022
6ea3c41
removed modals
CurtisUnderwood Dec 19, 2022
73f650b
added bg highlight
numbap Dec 19, 2022
01626fa
fixed fr content
CurtisUnderwood Dec 19, 2022
1219087
new changes
numbap Dec 19, 2022
752cf05
[Snyk] Security upgrade node from 18.9-alpine3.15 to hydrogen-alpine3…
var-kyle Dec 20, 2022
07e48ba
multiple choice icon selection
numbap Dec 20, 2022
ff5c4ce
altered icons to use LoadIcons
numbap Dec 20, 2022
2333737
Merge branch 'dev' into 93731-contact-oas
CurtisUnderwood Dec 21, 2022
479a32b
Merge pull request #169 from DTS-STN/93112-contact-pagep-icon
numbap Dec 21, 2022
c58de02
Merge pull request #161 from DTS-STN/93731-contact-oas
CurtisUnderwood Dec 21, 2022
caec6ec
updated contact link structure
CurtisUnderwood Dec 21, 2022
4c65eb3
update tests
CurtisUnderwood Dec 21, 2022
9f95c60
updated lang toggle link
CurtisUnderwood Dec 21, 2022
6930dec
fixed jest tests
CurtisUnderwood Dec 21, 2022
363e938
e2e tests
CurtisUnderwood Dec 21, 2022
ef25e5a
Created content for both modals
numbap Jan 5, 2023
2fbeaa9
Modal pupup demo page
numbap Jan 5, 2023
ee323a0
added testing
numbap Jan 6, 2023
c6fbe73
clean-up
numbap Jan 6, 2023
cb6d35a
Bump json5 from 1.0.1 to 1.0.2
dependabot[bot] Jan 9, 2023
b4966e2
Merge pull request #170 from DTS-STN/contact-link-structure
CurtisUnderwood Jan 9, 2023
fa002ab
updated design system
CurtisUnderwood Jan 9, 2023
c91ca10
Merge branch 'dev' into dependabot/npm_and_yarn/json5-1.0.2
shewood Jan 9, 2023
b5ce09a
Merge pull request #172 from DTS-STN/dependabot/npm_and_yarn/json5-1.0.2
shewood Jan 9, 2023
ff08c79
Merge pull request #173 from DTS-STN/96038-update-ds
CurtisUnderwood Jan 9, 2023
bbf2235
dahsboard, contact and settings skeletons
numbap Jan 9, 2023
85e8294
mobile adjustments
numbap Jan 9, 2023
7ab1a08
added oas test cases
CurtisUnderwood Jan 9, 2023
7768b13
moved modal test buttons to dashboard page
numbap Jan 10, 2023
b359b53
fixed tests
CurtisUnderwood Jan 11, 2023
f5b63cd
unit tests
numbap Jan 11, 2023
86c7615
testing
numbap Jan 11, 2023
039d7ff
removed redundant pages
numbap Jan 11, 2023
7f96dee
added new tab exception
CurtisUnderwood Jan 11, 2023
e6c49f7
Merge pull request #174 from DTS-STN/93800-oas-tcs
CurtisUnderwood Jan 11, 2023
7cb2fa0
updated based on suggestions
numbap Jan 11, 2023
4cf369d
applied CU changes
numbap Jan 11, 2023
529e760
fixed typo
numbap Jan 12, 2023
7c98c6a
p
numbap Jan 12, 2023
4f550a8
removed skeleton demo
numbap Jan 12, 2023
cd1af9c
Merge pull request #171 from DTS-STN/96051-create-modal
numbap Jan 12, 2023
cbabf13
Merge branch 'dev' into 96033-Waiting-States
numbap Jan 12, 2023
2f964eb
b
numbap Jan 12, 2023
606aa50
Merge pull request #175 from DTS-STN/96033-Waiting-States
numbap Jan 12, 2023
f29004e
updated DS to 1.53.8 and added contact link
shewood Jan 13, 2023
9098d7e
Merge pull request #177 from DTS-STN/sch-96043
shewood Jan 13, 2023
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
3 changes: 2 additions & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ This project uses

## Test reports for Main 👩‍🔬 🧪

![Default Tests Workflow Status](https://github.com/DTS-STN/secure-client-hub/actions/workflows/default-tests.yml/badge.svg?branch=main)
[![end-to-end Workflow Status](https://img.shields.io/github/workflow/status/DTS-STN/next-template/E2E%20Test?label=E2E)](https://dts-stn.github.io/secure-client-hub/refs/heads/main/e2e-test-report/)
[![Jest Workflow Status](https://img.shields.io/github/workflow/status/DTS-STN/next-template/Lint%20and%20Test?label=Jest)](https://dts-stn.github.io/secure-client-hub/refs/heads/main/unit-test-results/lcov-report/)

![Line Coverage Badge](https://img.shields.io/badge/dynamic/json?label=Line%20Coverage&query=%24.total.lines.pct&suffix=%25&url=https%3A%2F%2Fdts-stn.github.io%2Fsecure-client-hub%2Frefs%2Fheads%2Fmain%2Funit-test-results%2Fcoverage-summary.json)
![Statements Coverage Badge](https://img.shields.io/badge/dynamic/json?label=Statement%20Coverage&query=%24.total.statements.pct&suffix=%25&url=https%3A%2F%2Fdts-stn.github.io%2Fsecure-client-hub%2Frefs%2Fheads%2Fmain%2Funit-test-results%2Fcoverage-summary.json)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
edit-mode: replace
issue-number: ${{ github.event.pull_request.number }}
body: |
[Integration Deployment :rocket: ](https://sch-d-${{ github.head_ref }}.bdm-dev-rhp.dts-stn.com) - [Build Status)](https://teamcity.dev.admin.dts-stn.com/buildConfiguration/DtsDevelopment_SecureClientHubProject_BuildDynamic?branch=${{ github.head_ref }}&buildTypeTab=overview&mode=builds)
[Integration Deployment :rocket: ](https://sch-d-${{ github.head_ref }}.bdm-dev-rhp.dts-stn.com) - [Build Status](https://teamcity.dev.admin.dts-stn.com/buildConfiguration/DtsDevelopment_SecureClientHubProject_BuildDynamic?branch=${{ github.head_ref }}&buildTypeTab=overview&mode=builds)
![Default Tests Workflow Status](https://github.com/DTS-STN/${{ github.event.pull_request.base.repo.name }}/actions/workflows/default-tests.yml/badge.svg?branch=${{ github.head_ref }})
[Jest Coverage Report](https://dts-stn.github.io/${{ github.event.pull_request.base.repo.name }}/${{ github.ref }}/unit-test-results/lcov-report/)
[Cypress Coverage Report](https://dts-stn.github.io/${{ github.event.pull_request.base.repo.name }}/${{ github.ref }}/e2e-test-report/)
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.9-alpine3.15 AS base
FROM node:18.12-alpine3.16 AS base
WORKDIR /base
COPY package*.json ./
RUN npm ci
Expand All @@ -17,7 +17,7 @@ WORKDIR /build
COPY --from=base /base ./
RUN npm run build

FROM node:18.9-alpine3.15 AS production
FROM node:18.12-alpine3.16 AS production
ENV NODE_ENV=production
WORKDIR /app
COPY --from=build /build/next.config.js ./
Expand Down
30 changes: 24 additions & 6 deletions __tests__/components/ExitBetaModal.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,43 @@ describe('Exit Beta Modal', () => {
closeModal={() => {}}
closeModalAria={'close'}
continueLink="/"
popupId={'Test Id'}
popupTitle={'Test Title'}
popupDescription={'Test Description'}
popupPrimaryBtn={{ id: 'Test Primary Id', text: 'Test Primary Text' }}
popupSecondaryBtn={{
id: 'Test Secondary Id',
text: 'Test Secondary Text',
}}
/>
)
const title = screen.getByText('Exiting beta version')
const caption = screen.getByText(
'Thank you for trying the beta version. You are now returning to My Service Canada Account home page.'
)
const title = screen.getByText('Test Title')
const description = screen.getByText('Test Description')
const primaryBtnText = screen.getByText('Test Primary Text')
const secondaryBtnText = screen.getByText('Test Secondary Text')
expect(title).toBeInTheDocument()
expect(caption).toBeInTheDocument()
expect(description).toBeInTheDocument()
expect(primaryBtnText).toBeInTheDocument()
expect(secondaryBtnText).toBeInTheDocument()
})

it('has no a11y viollations', async () => {
const { container } = render(
<ExitBetaModal
closeModal={() => {}}
closeModalAria={'close'}
continueLink="/"
popupId={'Test Id'}
popupTitle={'Test Title'}
popupDescription={'Test Description'}
popupPrimaryBtn={{ id: 'Test Primary Id', text: 'Test Primary Text' }}
popupSecondaryBtn={{
id: 'Test Secondary Id',
text: 'Test Secondary Text',
}}
/>
)
const results = await axe(container)
expect(results).toHaveNoViolations()
})
it('placeholder', () => {})
})
13 changes: 13 additions & 0 deletions __tests__/components/contact/ContactProvince.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { render } from '@testing-library/react'
import '@testing-library/jest-dom/extend-expect'
import { axe, toHaveNoViolations } from 'jest-axe'
import ContactProvince from '../../../components/contact/ContactProvince'

expect.extend(toHaveNoViolations)

describe('ContactProvince', () => {
it('renders contactProvince', () => {
const primary = render(<ContactProvince title="" intro="" details={[]} />)
expect(primary).toBeTruthy()
})
})
15 changes: 15 additions & 0 deletions __tests__/components/contact/ContactSection.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { render } from '@testing-library/react'
import '@testing-library/jest-dom/extend-expect'
import { axe, toHaveNoViolations } from 'jest-axe'
import ContactSection from '../../../components/contact/ContactSection'

expect.extend(toHaveNoViolations)

describe('ContactSection', () => {
it('renders contactSection', () => {
const primary = render(
<ContactSection {...ContactSection.args} details={[]} intro="" />
)
expect(primary).toBeTruthy()
})
})
13 changes: 13 additions & 0 deletions __tests__/components/contact/ContactSectionRow.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { render } from '@testing-library/react'
import '@testing-library/jest-dom/extend-expect'
import { axe, toHaveNoViolations } from 'jest-axe'
import ContactSectionRow from '../../../components/contact/ContactSectionRow'

expect.extend(toHaveNoViolations)

describe('ContactSectionRow', () => {
it('renders contactSectionRow', () => {
const primary = render(<ContactSectionRow {...ContactSectionRow.args} />)
expect(primary).toBeTruthy()
})
})
21 changes: 21 additions & 0 deletions __tests__/components/sessionModals/CountDown.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { render } from '@testing-library/react'
import '@testing-library/jest-dom/extend-expect'
import { axe, toHaveNoViolations } from 'jest-axe'
import CountDown from '../../../components/sessionModals/CountDown'

expect.extend(toHaveNoViolations)

describe('CountDownModal', () => {
it('renders countDown', () => {
const primary = render(
<CountDown
closeModal={() => console.log('Close Modal')}
onSignOut={() => console.log('Sign Out Clicked')}
onStay={() => console.log('Stay Signed In Clicked')}
id="CountDown"
deadline="January, 31, 2023"
/>
)
expect(primary).toBeTruthy()
})
})
19 changes: 19 additions & 0 deletions __tests__/components/sessionModals/SignedOut.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { render } from '@testing-library/react'
import '@testing-library/jest-dom/extend-expect'
import { axe, toHaveNoViolations } from 'jest-axe'
import SignedOut from '../../../components/sessionModals/SignedOut'

expect.extend(toHaveNoViolations)

describe('SignedOutModal', () => {
it('renders signedOut', () => {
const primary = render(
<SignedOut
closeModal={() => console.log('Close Modal')}
onContinue={() => console.log('Continue Clicked')}
id="SignedOut"
/>
)
expect(primary).toBeTruthy()
})
})
16 changes: 16 additions & 0 deletions __tests__/components/skeletons/Dashboard.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { render, screen } from '@testing-library/react'
import '@testing-library/jest-dom/extend-expect'
import { axe, toHaveNoViolations } from 'jest-axe'
import Dashboard from '../../../components/skeletons/Dashboard'

expect.extend(toHaveNoViolations)

describe('Dashboard', () => {
it('renders dashboard skeleton', () => {
render(<Dashboard sections={1} />)

const box = screen.getByTestId('dashboard-skeleton')
console.log(box)
expect(box).toBeTruthy()
})
})
161 changes: 161 additions & 0 deletions __tests__/pages/contact-canada-pension-plan.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
import { render, screen } from '@testing-library/react'
import '@testing-library/jest-dom/extend-expect'
import { axe, toHaveNoViolations } from 'jest-axe'
import { useRouter } from 'next/router'
import ContactCanadaPensionPlan, {
getStaticProps,
} from '../../pages/contact-us/contact-canada-pension-plan'

expect.extend(toHaveNoViolations)

// mocks useRouter to be able to use component' router.asPath
jest.mock('next/router', () => ({
useRouter: jest.fn(),
}))

jest.mock('../../graphql/mappers/beta-banner-opt-out', () => ({
getBetaBannerContent: () => {
return new Promise(function (resolve, reject) {
resolve({
en: {},
fr: {},
})
})
},
}))

jest.mock('../../graphql/mappers/beta-popup-exit', () => ({
getBetaPopupExitContent: () => {
return new Promise(function (resolve, reject) {
resolve({ en: {}, fr: {} })
})
},
}))

jest.mock('../../graphql/mappers/beta-popup-page-not-available', () => ({
getBetaPopupNotAvailableContent: () => {
return new Promise(function (resolve, reject) {
resolve({
en: {},
fr: {},
})
})
},
}))

jest.mock('../../graphql/mappers/contact-canada-pension-plan', () => ({
getContactCanadaPensionPlan: () => {
return new Promise(function (resolve, reject) {
resolve({
en: {},
fr: {},
})
})
},
}))

jest.mock('../../components/contact/ContactProvince', () => () => {
return <mock-province data-testid="mock-province" />
})

describe('CPP Contact Us Page', () => {
const content = {
title: 'test',
items: [
{ title: 'test', link: 'test', id: 'test', intro: 'test', details: [] },
],
heading: 'heading',
paragraph: 'paragraph',
}
const popupContent = { popupId: 'test' }

const meta = {
data_en: {
title: 'My Service Canada Account - Contact Canada Pension Plan',
desc: 'English',
author: 'Service Canada',
keywords: '',
},
data_fr: {
title: 'Mon dossier Service Canada - Régime de Pensions du Canada',
desc: 'Français',
author: 'Service Canada',
keywords: '',
},
}

beforeEach(() => {
useRouter.mockImplementation(() => ({
pathname: '/',
asPath: '/',
}))
})

it('should render the page', () => {
render(
<ContactCanadaPensionPlan
locale="en"
pageContent={content}
popupContent={popupContent}
meta={meta}
/>
)
const contactCPPDiv = screen.getByTestId('contactCPP-test')
expect(contactCPPDiv).toBeInTheDocument
})

it('should contain a table of contents', () => {
render(
<ContactCanadaPensionPlan
locale="en"
pageContent={content}
popupContent={popupContent}
meta={meta}
/>
)
const tocTable = screen.getByTestId('tableOfContents-test')
expect(tocTable).toBeInTheDocument()
})

it('should contain a contact section listing', () => {
render(
<ContactCanadaPensionPlan
locale="en"
pageContent={content}
popupContent={popupContent}
meta={meta}
/>
)
const contactSection = screen.getByTestId('contactSection-test')
expect(contactSection).toBeInTheDocument()
})

it('Test getStaticProps', async () => {
const props = await getStaticProps({ locale: 'en' })

expect(props).toEqual({
props: {
pageContent: {},
bannerContent: {},
langToggleLink: '/fr/contact-us/contact-canada-pension-plan',
locale: 'en',
meta: {
data_en: {
desc: 'English',
author: 'Service Canada',
keywords: '',
title: 'My Service Canada Account - Contact Canada Pension Plan',
},
data_fr: {
author: 'Service Canada',
desc: 'Français',
keywords: '',
title: 'Mon dossier Service Canada - Régime de Pensions du Canada',
},
},
breadCrumbItems: undefined,
popupContent: {},
},
})
})
})
Loading