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

Next.js Authentication with Playwright in webkit doesn't work #4500

Open
4 tasks done
lasseklovstad opened this issue Nov 6, 2024 · 4 comments
Open
4 tasks done

Next.js Authentication with Playwright in webkit doesn't work #4500

lasseklovstad opened this issue Nov 6, 2024 · 4 comments
Assignees
Labels
needs-triage A ticket that needs to be triaged by a team member

Comments

@lasseklovstad
Copy link

Preliminary Checks

Reproduction

https://github.com/lasseklovstad/clerk-playwright-webkit-bug

Publishable key

pk_test_bG9naWNhbC1nYXRvci0xMi5jbGVyay5hY2NvdW50cy5kZXYk

Description

When trying to authenticate in playwright with the webkit browser Clerk never seems to be able to authenticate.
In the reporducation i am using the signIn util provided, but I have tried doing the flow manually by entering email password manually.

I think it has something to do with cookies in webkit.

Steps to reproduce:

Here is a github action testing the login and verfying the user button is visible.
Logs: https://github.com/lasseklovstad/clerk-playwright-webkit-bug/actions/runs/11704126518/job/32595904683

Expected behavior:

Sign in button is visible after sign up in webkit browser.

Actual behavior:

The user button is never visible after signUp is called.

Environment

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz
    Memory: 9.31 GB / 31.78 GB
  Binaries:
    Node: 22.11.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (128.0.2739.113)
    Internet Explorer: 11.0.19041.4355
@lasseklovstad lasseklovstad added the needs-triage A ticket that needs to be triaged by a team member label Nov 6, 2024
@lasseklovstad lasseklovstad changed the title Authentication with Playwright in webkit doesn't work Next.js Authentication with Playwright in webkit doesn't work Nov 6, 2024
@anagstef anagstef self-assigned this Nov 8, 2024
@anagstef
Copy link
Member

Hello! We need a little bit more information to be able to debug this. Does it run on your machine on Webkit and only fails on CI?

@lasseklovstad
Copy link
Author

Hi :) No, it doesn't work on my machine.

@anagstef
Copy link
Member

Can you try using a mac-os runner on your workflow? (ref)
For example, macos-latest. (ref)

@lasseklovstad
Copy link
Author

It works with macos-latest. Why wouldn't it work on ubuntu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage A ticket that needs to be triaged by a team member
Projects
None yet
Development

No branches or pull requests

2 participants