-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add support for playwright e2e tests #1954
base: main
Are you sure you want to change the base?
Conversation
@c0d33ngr, could you please resolve conflicts to allow GitHub Actions to trigger. Further, I suggest enabling the tests in one of the GitHub actions so that we can verify the tests execution result. |
Alright @vishal423 I'll address both issues. Thank you for your patience. |
async function loginByApi(request, username, password) {
} Hi @vishal423 this snippet of code is a rough draft of the loginByApi function with csrfcookie. The You mind giving any suggestions on how to go about it? |
403 points to CSRF validation failure. I suspect the cookie that you pass along authenticate request is not valid. If you take a look at cypress equivalent commands, we read the csrf value from cookie name
As a side note, In the initial request (GET), you don't need to pass form/parameters as that's used to retrieve the authenticated user info/csrf cookie. |
@c0d33ngr, do you plan to continue on this PR? |
Yes I intend on doing so. |
@c0d33ngr, Thanks. Lets scope test scenarios excluding Meantime, I will start on moving |
Okay. |
ok. I will take a close look over the upcoming weekend. Couple of initial observations:
|
Okay.
Thank you for the observations.
|
PR to close issue #1650