Skip to content

Commit

Permalink
Another attempt to fix failing e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
petyosi committed Feb 8, 2025
1 parent 3b7bd0a commit c38e7ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm run release
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report-react-virtuoso
path: packages/react-virtuoso/playwright-report/
retention-days: 7
1 change: 1 addition & 0 deletions packages/react-virtuoso/e2e/collapsible-long-item.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ test.describe('list with collapsible long items', () => {
})

test('compensates correctly when collapsing an item', async ({ page }) => {
await page.waitForSelector('[data-testid=virtuoso-scroller]')
await page.evaluate(() => {
const scroller = document.querySelector('[data-testid=virtuoso-scroller]')!
scroller.scrollBy({ top: -400 })
Expand Down

0 comments on commit c38e7ee

Please sign in to comment.