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: Incorporate split panel height when rendering stickyVerticalBottomOffset value #3225

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

just-boris
Copy link
Member

@just-boris just-boris commented Jan 27, 2025

Description

Fixing a bug

Related links, issue #, if available: AWSUI-60293

How has this been tested?

  1. Added a test
  2. Will be also visible on screenshot tests, since they render the scrollbars now
Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


import mobileStyles from '../../../lib/components/app-layout/mobile-toolbar/styles.selectors.js';
import tableScrollbarStyles from '../../../lib/components/table/sticky-scrollbar/styles.selectors.js';

const scrollbarSelector = `.${tableScrollbarStyles['sticky-scrollbar-visible']}`;
Copy link
Member Author

Choose a reason for hiding this comment

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

That's how we access this element in other integration tests:

const scrollbarSelector = `.${scrollbarStyles['sticky-scrollbar-visible']}`;

Comment on lines -22 to +25
const params = new URLSearchParams({
visualRefresh: `${theme.startsWith('refresh')}`,
appLayoutToolbar: `${theme === 'refresh-toolbar'}`,
});
await browser.url(`${url}?${params.toString()}`);
await browser.url(`${url}?${getUrlParams(theme)}`);
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed custom code while we are here

Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.45%. Comparing base (baad5f7) to head (383e072).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3225   +/-   ##
=======================================
  Coverage   96.45%   96.45%           
=======================================
  Files         791      791           
  Lines       22314    22315    +1     
  Branches     7661     7659    -2     
=======================================
+ Hits        21523    21524    +1     
+ Misses        784      739   -45     
- Partials        7       52   +45     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@just-boris just-boris force-pushed the sticky-scrollbar-offset branch from d82e217 to 383e072 Compare January 27, 2025 20:36
@just-boris just-boris marked this pull request as ready for review January 28, 2025 00:12
@just-boris just-boris requested a review from a team as a code owner January 28, 2025 00:12
@just-boris just-boris requested review from pan-kot and removed request for a team January 28, 2025 00:12
@just-boris just-boris added this pull request to the merge queue Jan 28, 2025
Merged via the queue into main with commit 708ecb7 Jan 28, 2025
39 checks passed
@just-boris just-boris deleted the sticky-scrollbar-offset branch January 28, 2025 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants