Граф коммитов

544 Коммитов

Автор SHA1 Сообщение Дата
dschom 687fedd36f
recovery code(s) > backup authentication code(s)
Update text on 2fa enter code to confirm screen
2022-09-07 16:34:38 -07:00
dschom f28e95071b
recovery key > account recovery key 2022-09-07 16:34:38 -07:00
dschom b8dce82138
task(settings): Improve UX when saving account recovery keys and backup verification codes
Because:
- We want to improve the UX for saving recovery keys and backup verification codes (2FA backup codes)

This Commit:
- Adds a parameter to GetDataTrio called contentType to indicate the content displayed.
- Applies the this contentType parameter to file download names.
- Applies the this contentType parameter to the page title of printed documents.
- Updates the DataBlock component with a contentType parameter than can be passed through to GetDataTrio.
- Uses the 'Firefox recovery key' contentType in PageRecoveryKeyAdd's DataBlock component.
- Uses the 'Firefox backup verification codes' contentType in PageTwoStepAuthentication and Page2faReplaceRecoveryCode components.
2022-09-07 16:34:38 -07:00
dschom 4a21d02314
task(settings): Improve UX when saving account recovery keys and backup verification codes
Because:
- We want to improve the UX for saving recovery keys and backup verification codes (2FA backup codes)

This Commit:
- Adds a parameter to GetDataTrio called contentType to indicate the content displayed.
- Applies the this contentType parameter to file download names.
- Applies the this contentType parameter to the page title of printed documents.
- Updates the DataBlock component with a contentType parameter than can be passed through to GetDataTrio.
- Uses the 'Firefox recovery key' contentType in PageRecoveryKeyAdd's DataBlock component.
- Uses the 'Firefox backup verification codes' contentType in PageTwoStepAuthentication and Page2faReplaceRecoveryCode components.
2022-09-07 10:56:19 -07:00
Ankita Shrivastava 2cadde224e
test(functional): rewrite display name and delete account tests in playwright 2022-08-23 15:47:59 -04:00
Mill c6cd5f0f62
feat(fxa-auth-server): add new verification reminder email
fix(fxa-auth-server): remove extra string and fix auto-formatting
2022-08-16 14:30:17 -07:00
Mill b46f32724b
fix(fxa-auth-server) change user-facing 'verify' references to 'confirm' in emails
fix(fxa-settings): swap in 'confirm' for 'verify'

fix(fxa-auth-server): update 'verify' to 'confirm'

fix(fxa-support-panel): update 'verify' to 'confirm' in copy

fix(fxa-content-server): update 'verify' to 'confirm'

fix(fxa-settings) append string version to translation id for fluent

fix(fxa-settings): fix failing test (also failing on main)

fix(fxa-auth-server): update tests

Update packages/fxa-auth-server/lib/senders/emails/templates/verifyPrimary/en.ftl

Co-authored-by: Bryan Olsson <bolsson@mozilla.com>

chore(fxa-auth-server): add tests and errors to string id util, update impacted tests
2022-08-10 15:40:13 -07:00
dependabot[bot] 4e1dba76fb
chore(deps-dev): bump @playwright/test from 1.23.4 to 1.24.0
Bumps [@playwright/test](https://github.com/Microsoft/playwright) from 1.23.4 to 1.24.0.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.23.4...v1.24.0)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-26 07:13:29 +00:00
dependabot[bot] b8c5e869b7
chore(deps-dev): bump @playwright/test from 1.22.2 to 1.23.4
Bumps [@playwright/test](https://github.com/Microsoft/playwright) from 1.22.2 to 1.23.4.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.22.2...v1.23.4)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 06:23:32 +00:00
Lisa Chan ca49ac1188
Merge pull request #13633 from mozilla/FXA-5288_fraud
feat(email): Add email template for Fraudulent Account Deletion
2022-07-19 12:20:09 -04:00
Ankita Shrivastava eb2addd61c
Merge pull request #13632 from mozilla/fix-flaky-tests
test(functional_tests): increase default timeout value for flaky tests
2022-07-15 12:36:18 -04:00
Lisa Chan bac7095f0b
feat(email): Add fraudulentAccountDeletion email template 2022-07-14 09:28:27 -04:00
Peter deHaan 72668068af
Update misc.spec.ts 2022-07-13 12:32:42 -07:00
Ankita Shrivastava 8836142208
test(subscription): increase default timeout value 2022-07-13 15:18:11 -04:00
Meghan Sardesai 4ee1c27202
fix(a11y): remove duplicate ids in Connected Services
Because:

* We want to ensure we are standards-compliant with the web and a11y
* An id is an element's unique identifier; it should not be duplicated

This commit:

* Removes the id attribute and adds an additional class
* Updates tests to target the class

Closes #12916
2022-07-04 01:00:46 -04:00
Ankita Shrivastava 7d61ee3ed7
(test): install playwright for stage and prod env 2022-06-17 11:44:39 -04:00
dschom c9345518cd
fix(content): Allow list valid redirect_to values
Because:
- We want to configure where users can be redirected to.

This Commit:
- Introduces config that controls valid hosts that can be redirected to.
- Adds convict format for allowlists
- Adds functional tests to check redirects
2022-06-15 18:09:03 -07:00
Wil Clouser 431861b6b1
chore(tests): Add install command for new playwright package 2022-06-07 08:13:47 -07:00
dependabot[bot] 83c6cda765
chore(deps-dev): bump @playwright/test from 1.20.2 to 1.22.2
Bumps [@playwright/test](https://github.com/Microsoft/playwright) from 1.20.2 to 1.22.2.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.20.2...v1.22.2)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-07 06:20:53 +00:00
dschom d9515ac494
fix(functional-test): fix broken smoke test for add-ons displaying in the connected services section.
Because:
- A smoke test was failing on production
- Some extra tooltip text was added that interfered with the test.

This commit:
- Relaxes the test a bit and just checks that the term 'Add-ons' is present in the connected services section.
2022-05-19 16:32:22 -07:00
dschom 04b1b44ea4
fix(auth): Invalid unblock code after swapping primary email
Because:
- We found an edge case where the unblock code was consistently considered invalid

This Commit:
- Fixes occasional race condition in consume unblock code stored procedure.
- Fixes a small bug in the test framework where the most recently emailed unblock code wasn't being used.
- Fixes 'unblock code' remote test. Check for error should be directly after call second call to db.consumeUnblockCode.
2022-05-04 15:51:56 -04:00
Ankita Shrivastava 19ada77c0c
test(subplat): upgrade playwright version for docker images in config.yaml files 2022-04-04 14:57:31 -04:00
Ankita Shrivastava 6b3b20c9c1
fix playwright version issue 2022-03-31 16:47:20 -04:00
Ankita Shrivastava afce285c9a
update package.json file with new playwright/test version 2022-03-31 16:11:50 -04:00
Ankita Shrivastava dd57b5a67e
test(subscription): incorporate review comments 2022-03-30 15:32:24 -04:00
Ankita Shrivastava 978b1f3db0
(test): add test for subscription retry after failed subscription 2022-03-29 13:20:36 -04:00
Ankita Shrivastava e287542ce4
fixed the subscribe.submit() 2022-03-23 19:39:16 -04:00
Ankita Shrivastava 80d740fa77
(test): add paypal subscription flow 2022-03-23 17:46:46 -04:00
Ivo Plamenac 1ea1fc449f
feat(auth): add Coupon Info to Subsequent Invoice Emails (#11979)
## Because

- We want to reflect coupon info on all invoice emails

## This commit:

- Adds an email template and logic to send out subsequent invoice emails with coupon info
- Updates first invoice to use use "discount" instead of "one time discount"
- Updates tests for first invoice and subsequent invoice emails

## Issue that this pull request solves

Closes: #11389
2022-02-27 23:52:06 -08:00
Lisa Chan b039acee0e
feat(auth-server): FXA-4319 - add email template to notify user has connected Google auth (#11870)
* feat(auth-server): FXA-4319 - add email template to notify user has linked an account
2022-02-15 13:30:34 -05:00
Lauren Zugai 31061b0712
refactor(auth): Remove MJML feature flags, remove verifySecondary & logic, remove old templates (#11862)
Because:
* Our new MJML emails are being pushed to prod and we no longer need the MJML features flags or old templates. While working through these we also realized `verifySecondary` is never sent, and `verifySecondaryCode` is always sent instead.

This commit:
* Removes MJML feature flags
* Combs through `emails.js` and adds all missing tests to `mjml-emails.ts`, deletes `emails.js`, renames `mjml-emails.ts` to `emails.ts`
* Removes verifySecondary template and most logic around it, preferring verifySecondaryCode
* Bumps all email template versions up by 1
* Removes all email templates, but leaves the templates dir and templates/index.js renderer file since SMS still needs it for now

fixes #10032
2022-02-11 14:42:35 -06:00
Danny Coates 2dac0799f2
fix(tests): update prod smoke tests for pw 1.18 and monitor page change 2022-01-26 16:51:57 -08:00
Danny Coates 10138a29a3
chore(tests): add 'record' npm script to functional-tests 2022-01-26 16:03:31 -08:00
dependabot[bot] f4fc36f8cf
chore(deps-dev): bump @playwright/test from 1.17.2 to 1.18.0 (#11690)
* chore(deps-dev): bump @playwright/test from 1.17.2 to 1.18.0

Bumps [@playwright/test](https://github.com/Microsoft/playwright) from 1.17.2 to 1.18.0.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.17.2...v1.18.0)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): updated yarn.lock

* chore(deps): update playwright

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fxa-bananafox[bot] <70546514+fxa-bananafox[bot]@users.noreply.github.com>
Co-authored-by: Danny Coates <dannycoates@gmail.com>
2022-01-21 10:47:13 -08:00
dependabot[bot] fe6a0a7e72
chore(deps-dev): bump playwright from 1.17.1 to 1.17.2
Bumps [playwright](https://github.com/Microsoft/playwright) from 1.17.1 to 1.17.2.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.17.1...v1.17.2)

---
updated-dependencies:
- dependency-name: playwright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-11 11:22:24 -08:00
dependabot[bot] e124aad7d9
chore(deps-dev): bump @playwright/test from 1.17.1 to 1.17.2 (#11571)
* chore(deps-dev): bump @playwright/test from 1.17.1 to 1.17.2

Bumps [@playwright/test](https://github.com/Microsoft/playwright) from 1.17.1 to 1.17.2.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.17.1...v1.17.2)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): updated yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fxa-bananafox[bot] <70546514+fxa-bananafox[bot]@users.noreply.github.com>
2022-01-10 11:31:48 -06:00
Danny Coates 662e56cfbd
chore(tests): enable subscribe test on dev 2022-01-06 11:28:18 -08:00
Dan Schomburg 76703f48d5
bug(auth): destroying attached client would fail (#11302)
* bug(auth): destroying attached client would fail, becuase sessionId could be a buffer.

Because:

* A test started failing that was destroying devices

This commit:

* Coerces device.sessionTokenId into a hex string if it is a buffer
* Coerces device.refreshTokenId into a hex string if it is a buffer

* Change passwords would fail becuase account info (like email and uid) would be retrieved from firefox which was still signed into the account set by  the test 'signin to sync and disconnect'. This would persist into the following test(s) and could result in failure.

* fix(test): hack around a weird playwright quirk

* Fix potential race condition

Co-authored-by: Danny Coates <dannycoates@gmail.com>
2021-12-16 14:36:50 -08:00
dschom 03ff9f4761
fix(settings): add confirm recovery code modal
Because:

* When generating new recovery codes, there was no confirmation step, which might make it easy for a user to overlook the fact they should download / record their recovery codes.

This commit:

* Introduces the same dialog, which existed in the initial 2FA flow, that prompted a user for at least one recovery code as a way to validate users had recorded them.
* Introduces back end support for creating and updating recovery codes as a two step process.
* Shifts recovery code generation to cient, relocating lib/random.ts.
* Adds validation for recovery codes being updated
* Exposes recovery code length / count settings to client
* Add section about running playwrite tests to readme

Closes #9530
2021-12-14 10:25:48 -08:00
Jody Heavener 0c7eb471f0
fix(admin-server): move ts-morph to dependencies (#11240)
* fix(admin-server): move ts-morph to dependencies

* chore(ci): add pm2 logs to playwright test artifacts

* chore(ci): add startup waits to auth, profile, gql

* chore(ci): extend check-url.sh timeout

* chore(ci): use large instance for playwright tests... debugging

Co-authored-by: Danny Coates <dannycoates@gmail.com>
2021-12-03 17:10:25 -08:00
dependabot[bot] 2af953650c
chore(deps-dev): bump playwright from 1.16.3 to 1.17.1 (#11217)
* chore(deps-dev): bump playwright from 1.16.3 to 1.17.1

Bumps [playwright](https://github.com/Microsoft/playwright) from 1.16.3 to 1.17.1.
- [Release notes](https://github.com/Microsoft/playwright/releases)
- [Commits](https://github.com/Microsoft/playwright/compare/v1.16.3...v1.17.1)

---
updated-dependencies:
- dependency-name: playwright
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): updated yarn.lock

* chore(deps): set specific playwright version in CI

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fxa-bananafox[bot] <70546514+fxa-bananafox[bot]@users.noreply.github.com>
Co-authored-by: Danny Coates <dannycoates@gmail.com>
2021-12-02 11:18:47 -08:00
Danny Coates a62532cc50
chore(ci): slow down pm2 startup (#11084)
* feat(cli): add 'yarn delete services' command

sometimes you may want to leave all your DBs running but completely start over with fresh services. The pm2 restart command doesn't fully reset the environment and sometimes that's what you want. Delete lets us remove the service from pm2 so we can start it fresh.

* chore(ci): slow down pm2 startup

I've noticed ci failures where the services don't even get started up completely happening more frequently. During the brief time that circleci showed resource graphs the pm2 startup pegged both cpu and memory. If we wait for the services that have a lot of building at startup to finish before starting the next service maybe we'll have better stability.

* chore(tests): remove support-panel from functional test startup
2021-11-19 11:52:33 -08:00
Danny Coates 60ca05cb81
chore(deps): update typescript to 4.5.2
* refactor(ts): use builtin Awaited type

* maybe make tests more stable
2021-11-18 23:25:28 -08:00
Danny Coates 833326ad59
feat(tests): implement prod smoke tests in playwright
There's an ADR for why Playwright
2021-11-17 10:19:19 -08:00