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

387 Fix Race Condition in e2e tests #391

Merged
merged 17 commits into from
May 16, 2024
Merged

387 Fix Race Condition in e2e tests #391

merged 17 commits into from
May 16, 2024

Conversation

ekraffmiller
Copy link
Contributor

What this PR does / why we need it: Then e2e tests were sometimes failing because the destroyAll() method does not always clear the solr index correctly. Rather than always calling destroyAll(), the tests were updated to create datasets in separate collections, where necessary, so that dataset counts are not affected by the order of tests.

Which issue(s) this PR closes:

Closes #387

Special notes for your reviewer:

Suggestions on how to test this:
Run the e2e test locally npm run test:e2e
Check that then e2e test in Github action succeeds

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

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

Additional documentation:

@ekraffmiller ekraffmiller marked this pull request as ready for review May 1, 2024 13:00
@ekraffmiller ekraffmiller added pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows labels May 1, 2024
@coveralls
Copy link

coveralls commented May 1, 2024

Coverage Status

coverage: 97.335%. remained the same
when pulling 1adfb67 on 387-clear-solr-index
into 774661b on develop.

@ekraffmiller ekraffmiller added the Size: 3 A percentage of a sprint. 2.1 hours. label May 1, 2024
@g-saracca g-saracca assigned g-saracca and ekraffmiller and unassigned g-saracca May 2, 2024
g-saracca
g-saracca previously approved these changes May 13, 2024
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.

Tests are passing on my end! Great work! Approved!

@g-saracca g-saracca removed their assignment May 13, 2024
@GPortas GPortas self-assigned this May 15, 2024
@g-saracca g-saracca dismissed their stale review May 15, 2024 12:34

PR still needs one extra change

@g-saracca g-saracca assigned g-saracca and ekraffmiller and unassigned GPortas and g-saracca May 15, 2024
@g-saracca g-saracca assigned g-saracca and unassigned ekraffmiller May 15, 2024
@g-saracca g-saracca assigned GPortas and unassigned g-saracca May 15, 2024
@GPortas GPortas merged commit df24105 into develop May 16, 2024
14 checks passed
@GPortas GPortas deleted the 387-clear-solr-index branch May 16, 2024 14:04
jayanthkomarraju pushed a commit to jayanthkomarraju/dataverse-frontend that referenced this pull request May 31, 2024
387 Fix Race Condition in e2e tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows Size: 3 A percentage of a sprint. 2.1 hours.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race Condition in e2e Test
4 participants