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

Fix UploadDatasetFiles Component test #581

Merged
merged 4 commits into from
Jan 15, 2025
Merged

Conversation

ekraffmiller
Copy link
Contributor

What this PR does / why we need it:

Updates UploadDatasetFiles.spec.tsx to avoid race condition errors.

Which issue(s) this PR closes:

Special notes for your reviewer:

I wasn't able to consistently produce this error, so it's hard to tell if this will definitively fix the bug. But there were multiple places where the test referred to a checkbox by the order on the page, not by an id, which could produce problems since the RestrictedModal and the UploadedFiles component both contain multiple checkboxes.
I added a test that the RestrictedModel is closed, and I added testids to multiple elements to make sure the correct checkboxes are being tested.

Suggestions on how to test this:

Review the code, run locally and check the Github actions.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

No

Is there a release notes update needed for this change?:

No

Additional documentation:

@ekraffmiller ekraffmiller changed the title Fix/481 file upload test Fix UploadDatasetFiles Component test Jan 12, 2025
@coveralls
Copy link

Coverage Status

coverage: 97.321% (+0.006%) from 97.315%
when pulling 6d60da4 on fix/481-file-upload-test
into 66fd102 on develop.

@ekraffmiller ekraffmiller marked this pull request as ready for review January 13, 2025 19:14
@ekraffmiller ekraffmiller added FY25 Sprint 14 FY25 Sprint 14 (2025-01-02 - 2025-01-15) Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. GREI Re-arch GREI re-architecture-related labels Jan 13, 2025
@g-saracca g-saracca self-assigned this Jan 14, 2025
Copy link
Contributor

@g-saracca g-saracca left a comment

Choose a reason for hiding this comment

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

Looks good, just one question.

@g-saracca g-saracca removed their assignment Jan 14, 2025
@GPortas GPortas added the SPA.Q1 Not related to any specific Q1 feature label Jan 15, 2025
@ofahimIQSS ofahimIQSS self-assigned this Jan 15, 2025
@ofahimIQSS
Copy link
Contributor

Tests are passing, merging PR

@ofahimIQSS ofahimIQSS merged commit f758ee6 into develop Jan 15, 2025
13 of 18 checks passed
@ofahimIQSS ofahimIQSS deleted the fix/481-file-upload-test branch January 15, 2025 18:57
@ofahimIQSS ofahimIQSS removed their assignment Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FY25 Sprint 14 FY25 Sprint 14 (2025-01-02 - 2025-01-15) GREI Re-arch GREI re-architecture-related Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA.Q1 Not related to any specific Q1 feature
Projects
Status: Done 🧹
Development

Successfully merging this pull request may close these issues.

Race Condition in UploadDatasetFiles unit test
5 participants