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(#7791): tc form shouldn't submit bounds changes on dismiss #7792

Merged
merged 8 commits into from
Jul 25, 2024
Merged

Conversation

ozyx
Copy link
Contributor

@ozyx ozyx commented Jul 25, 2024

Closes #7791

Describe your changes:

Reverts some changes that caused the dismiss action on the fixed mode time conductor popup to submit changes. Does some "safe" refactoring of the component to make it slightly more maintainable.

  • Updates setTimeConductorBounds to be more robust
  • Update usage of setTimeConductorBounds in existing tests
  • Adds a regression test

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this a notable change that will require a special callout in the release notes? For example, will this break compatibility with existing APIs or projects that consume these plugins?

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Has this been smoke tested?
  • Have you associated this PR with a type: label? Note: this is not necessarily the same as the original issue.
  • Have you associated a milestone with this PR? Note: leave blank if unsure.
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?

@ozyx ozyx added the type:bug label Jul 25, 2024
@ozyx ozyx added this to the Target:4.0.0 milestone Jul 25, 2024
Copy link

codecov bot commented Jul 25, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 56.83%. Comparing base (689f7cc) to head (08073d5).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7792      +/-   ##
==========================================
- Coverage   57.11%   56.83%   -0.29%     
==========================================
  Files         674      674              
  Lines       27278    27276       -2     
  Branches     2668     2668              
==========================================
- Hits        15579    15501      -78     
- Misses      11359    11435      +76     
  Partials      340      340              
Flag Coverage Δ
e2e-full 23.51% <ø> (-18.44%) ⬇️
e2e-stable 60.85% <ø> (+0.03%) ⬆️
unit 49.39% <40.00%> (-0.02%) ⬇️
Files Coverage Δ
src/plugins/timeConductor/ConductorInputsFixed.vue 80.00% <ø> (ø)
src/plugins/timeConductor/TimePopupFixed.vue 32.05% <40.00%> (-0.45%) ⬇️

... and 9 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 689f7cc...08073d5. Read the comment docs.

@unlikelyzero
Copy link
Collaborator

Let's make sure to add a test for this scenario with the native time conductor, but also an embedded independent time conductor in a display layout

@ozyx
Copy link
Contributor Author

ozyx commented Jul 25, 2024

Let's make sure to add a test for this scenario with the native time conductor, but also an embedded independent time conductor in a display layout

Working on it rn 👍

ozyx added 4 commits July 25, 2024 14:31
- update appAction for setting time conductor in fixed mode
- add a11y to time conductor in fixed mode
- update tests using `setTimeConductorBounds`
Copy link
Collaborator

@unlikelyzero unlikelyzero left a comment

Choose a reason for hiding this comment

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

One small reminder to update the test framework test app action for the set time conductor bounds

@@ -53,6 +53,9 @@ test.describe('Example Imagery Object', () => {
// Verify that the created object is focused
await expect(page.locator('.l-browse-bar__object-name')).toContainText(exampleImagery.name);
await page.getByLabel('Focused Image Element').hover({ trial: true });

// Wait for image thumbnail auto-scroll to complete
await expect(page.getByLabel('Image Thumbnail from').last()).toBeInViewport();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

GOT YOU!!

gremlins5

Copy link
Contributor Author

@ozyx ozyx Jul 25, 2024

Choose a reason for hiding this comment

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

here lies Can use the reset button to reset the image test flake (2022-2024) 🪦

@ozyx ozyx added the pr:e2e:couchdb npm run test:e2e:couchdb label Jul 25, 2024
@ozyx ozyx enabled auto-merge (squash) July 25, 2024 23:38
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Jul 25, 2024
@ozyx ozyx added the pr:e2e:couchdb npm run test:e2e:couchdb label Jul 25, 2024
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Jul 25, 2024
@ozyx ozyx merged commit e3fcbe1 into master Jul 25, 2024
19 checks passed
@ozyx ozyx deleted the mct7791 branch July 25, 2024 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Time Conductor] In fixed time mode, dismissing bounds changes actually submits them
2 participants