Skip to content

Conversation

@peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented Jan 20, 2025

Motivation

Given that the InfiniteScroll component will need some adjustments for compatibility with Svelte v5, I thought it would be a good idea to first add an end-to-end test to verify that the scroll works as expected.

Notes

Requires #563 configuration to build the showcase app.

Changes

  • Add a testId to the component
  • Provide some demo and test data within the infinite scroll component page
  • Write e2e tests that assert that data are loaded on scroll

@peterpeterparker peterpeterparker requested review from a team as code owners January 20, 2025 13:10
@peterpeterparker peterpeterparker marked this pull request as draft January 21, 2025 07:29
peterpeterparker added a commit that referenced this pull request Jan 22, 2025
# Motivation

Without disabling SSR we would not be able to build the showcase case
app once the component `InfiniteScroll` is effectively used in the UI.
This is because `IntersectionObserver` is not a known NodeJS property.

# Notes

PR that uses the `InfiniteScroll` in the UI is #562.

# Changes

- Disable SSR which we do not used in first place anyway
- Added wait in the segments E2E as the screenshots seem to be generated
earlier following this change (see test
https://github.com/dfinity/gix-components/actions/runs/12868805408/job/35876230527)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
@peterpeterparker peterpeterparker marked this pull request as ready for review January 22, 2025 07:29
@peterpeterparker peterpeterparker merged commit 67c004b into main Jan 22, 2025
9 checks passed
@peterpeterparker peterpeterparker deleted the test/e2e-infinite-scroll branch January 22, 2025 07:52
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