chore(22552): refactor modal selector in e2e tests#22668
Merged
HowardBraham merged 1 commit intodevelopfrom Jan 30, 2024
Merged
chore(22552): refactor modal selector in e2e tests#22668HowardBraham merged 1 commit intodevelopfrom
HowardBraham merged 1 commit intodevelopfrom
Conversation
Contributor
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
ec9557c to
cecee6e
Compare
13 tasks
Contributor
|
You have a few instances of |
e767672 to
27ef82b
Compare
Contributor
Author
|
@HowardBraham Thanks a lot, that's a good catch. 👍🏻 |
0f896ae to
0ba64b0
Compare
Collaborator
Builds ready [ed5ae09]
Page Load Metrics (835 ± 26 ms)
Bundle size diffs
|
DDDDDanica
commented
Jan 29, 2024
| if (e.message.includes('<div class="modal__backdrop">')) { | ||
| // Wait for the modal to disappear and try again | ||
| await driver.wait( | ||
| until.elementIsNotPresent(By.css('.modal__backdrop')), |
Contributor
Author
There was a problem hiding this comment.
Similar methodology as #22672, we would wait for modal to be completed removed and then perform clicking actions.
PS: Once we completely migrated modal component, we can remove this await.
HowardBraham
approved these changes
Jan 30, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Following the suggestion divided from this thread to refactor all selectors for modal in e2e tests. They are now referred by
data-testidin selector.More specifically speaking, when the modal has been adapted to new component, a
data-testidwill be appended directly to<Modal >component and selected; when the component is using deprecated modal component, thisdata-testidwill be appended to as a property passing toFadeModalcomponentRelated issues
Fixes: #22552
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist