-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
bug: fixed positioning cannot be used in vitest browser headless mode #7742
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
Comments
Can you explain what's not expected with |
Hello @rxliuli. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
@hi-ogawa Sorry, I didn't have time a few days ago. I just updated the issue, added expect tests and provided commands for success and failure, and also added a demo video. Can you reopen this issue? |
Thanks for the repro. I moved a repro to https://stackblitz.com/edit/vitest-dev-vitest-qxo675q2?file=src%2Frepro.test.ts so it's easier to download and tests |
I confirmed this is fixed by #6512 |
I will follow up on this issue again when a new version is released. |
Describe the bug
Kapture.2025-04-02.at.21.36.47.mp4
Command
toast.browser.test.ts
vitest.workspace.ts
Reproduction
Yes, I found this issue when using svelte-sonner, which caused the toast popup to be unclickable because the toast was not within the visible window.
wobsoriano/svelte-sonner#140
https://github.com/rxliuli/svelte-sonner-error-demo
System Info
System: OS: macOS 15.3.2 CPU: (12) arm64 Apple M2 Max Memory: 1.60 GB / 64.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.14.0 - /usr/local/bin/node npm: 10.9.2 - /usr/local/bin/npm pnpm: 10.5.2 - /usr/local/bin/pnpm bun: 1.1.6 - ~/.bun/bin/bun Watchman: 2024.12.02.00 - /opt/homebrew/bin/watchman Browsers: Brave Browser: 131.1.73.105 Chrome: 134.0.6998.166 Edge: 128.0.2739.54 Safari: 18.3.1
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: