Skip to content

[Due for payment 2025-11-14] [SAML Configuration][Release 2] Add verify domain flow on the Workspaces page #72599

Description

@NikkiWines

Part of the Bring SAML Configuration to NewDot project

Main issue: #69195
Doc section: Release 2
Project: [#whatsnext] #migrate

🚨 Note: This is dependent on the following backend changes: https://github.com/Expensify/Expensify/issues/557157

Feature Description

We want to add the ability for users to validate a domain from the Workspaces page. When a user is an admin of an unvalidated domain, let's display a "Not Verified" badge and give them the the option to verify their domain from a 3-dot menu on each domain row

Image

This will open up a LHN that allows the user to proceed through a domain validation flow where the user can copy a validation code for their domain to verify access.

Image

And then we'd handle success and error flows like so:

Image Image

Manual Test Steps

User who is a member of a domain
Pre-testing steps: Log in to an Expensify account that is a member (but not an admin) of an unverfied domain

  • Navigate to the “Workspaces” tab
    • Verify: You should see a "Domains" section below the list of workspaces.
    • Verify: This section does not contains any verified / unverified badge

Offline Test: Go offline. Perform the same steps as online tests, with the same outcome

User who is an admin of an unvalidated domain
Pre-testing steps: Log in to an Expensify account that has claimed but not validated a domain

  • Navigate to the “Workspaces” tab
    • Verify: You see an “unverified” badge next to your domain
  • Click on the three-dot menu for the domain
    • Verify: You see a menu option saying “Verify Domain”
  • Click on “Verify Domain”
    • Verify: It opens up the “Verify your domain” RHP, and a verification code is displayed
    • Validate your domain following the To Verify a Domain help site instructions and click “Verify domain”
    • Verify: You’re routed to the confirmation RHP page
    • Verify: The badge next to the domain updates to “verified”

Offline Test:

  • Go offline
  • Navigate to the “Workspaces” tab
  • Click on the three-dot menu for an unverified domain
  • Select the “Verify Domain” option
    • Verify: The “Verify Domain” RHP opens up
    • Verify: There is a spinner in place of the validateCode
    • Verify: The “Verify Domain” button is inactionable, and an indicator is displayed saying you’re offline

Automated Tests

Issue OwnerCurrent Issue Owner: @stephanieelliott

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionEngineeringNewFeatureSomething to build that is a new item.WeeklyKSv2

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions