Skip to content

Conversation

@didoo
Copy link
Collaborator

@didoo didoo commented Jun 2, 2025

Description

What does this PR do?

While smoke testing the adoption of HDS 4.20 (see hashicorp/design-system#2922) we noticed that two tests were failing. The reason for the failure is that now the content outside the modal is made inert which means interaction with it are not possible until the modal is manually closed.

This PR adds forced closure for the modals.

Jira ticket: https://hashicorp.atlassian.net/browse/HDS-4908

TODO only if you're a HashiCorp employee

  • Backport Labels: If this fix needs to be backported, use the appropriate backport/ label that matches the desired release branch. Note that in the CE repo, the latest release branch will look like backport/x.x.x, but older release branches will be backport/ent/x.x.x+ent.
    • LTS: If this fixes a critical security vulnerability or severity 1 bug, it will also need to be backported to the current LTS versions of Vault. To ensure this, use all available enterprise labels.
  • ENT Breakage: If this PR either 1) removes a public function OR 2) changes the signature
    of a public function, even if that change is in a CE file, double check that
    applying the patch for this PR to the ENT repo and running tests doesn't
    break any tests. Sometimes ENT only tests rely on public functions in CE
    files.
  • Jira: If this change has an associated Jira, it's referenced either
    in the PR description, commit message, or branch name.
  • RFC: If this change has an associated RFC, please link it in the description.
  • ENT PR: If this change has an associated ENT PR, please link it in the
    description. Also, make sure the changelog is in this PR, not in your ENT PR.

@didoo didoo requested a review from a team as a code owner June 2, 2025 17:12
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Jun 2, 2025
@didoo didoo added this to the 1.20.0-rc milestone Jun 2, 2025
@didoo didoo changed the title added explicit actions to close modals in acceptance/integration tests Fix acceptance/integration tests with modal non being closed Jun 2, 2025
@didoo didoo force-pushed the hds/fix-modal-tests branch from 251522c to 09fb3cb Compare June 2, 2025 17:14
@github-actions
Copy link

github-actions bot commented Jun 2, 2025

CI Results:
All Go tests succeeded! ✅

@github-actions
Copy link

github-actions bot commented Jun 2, 2025

Build Results:
All builds succeeded! ✅

@didoo didoo modified the milestones: 1.20.0-rc, 1.21.0-rc Jun 11, 2025
@didoo didoo force-pushed the hds/fix-modal-tests branch from 09fb3cb to 3d6a27e Compare June 11, 2025 11:18
@didoo didoo requested a review from Monkeychip June 11, 2025 11:19
@didoo didoo added hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed and removed hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed labels Jun 11, 2025
@didoo
Copy link
Collaborator Author

didoo commented Jun 11, 2025

@Monkeychip can you have a look at this PR now? (and think about this comment, what is best to do: #30806 (comment))

Also, not sure why the check on hashicorp-contributed-pr label is failing, I've removed and re-added the label, but it still fails

@didoo didoo added hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed and removed hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed labels Jun 11, 2025
@didoo didoo force-pushed the hds/fix-modal-tests branch 2 times, most recently from 0bb627a to cf2beac Compare June 12, 2025 10:19
@didoo didoo force-pushed the hds/fix-modal-tests branch from cf2beac to 2049a07 Compare June 17, 2025 08:41
Copy link
Contributor

@lane-wetmore lane-wetmore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on this discussion, this was the agreed upon solution which I also support.

@didoo didoo merged commit b990548 into main Jun 17, 2025
33 checks passed
@didoo didoo deleted the hds/fix-modal-tests branch June 17, 2025 15:44
Erfankam pushed a commit to Erfankam/vault that referenced this pull request Sep 1, 2025
…rp#30806)

* added explicit actions to close modals in acceptance/integration tests

* updated selector per recent buttons selectors refactoring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-changelog ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants