You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I m handling spec files with my core.ts file . My spec file is channels.e2e.spec. When these spec file called from npm script, it navigates to my channels.e2e.ts
I am doing the login process in the global-setup.ts file. When the npm script runs, the login process is works good in global-setup.ts file. Then the browser closes.
My question is exactly this: I want to navigate to the first test in my channels.e2e.ts file, but a blank browser page opens after global-setup.ts file worked good. So it doesn't click the button which is my first action in NavigateChannelsPage test. As far as I understand; the login process in the first global-setup.ts file works, the browser closes, then the new browser opens, but it cannot find which url to redirect to. Normally, when I log in with global-setup, shouldn't it be auto-login? By the way,After all operations in global-setup.ts are running, data is written to storageState.json as follows. But when I look the storageStage.json, cookie is empty as below.Should it be filled?
{
"cookies": [],
"origins": []
}
my npm script
"pw:staging": "NAME=test@domain.com PASS=test npx playwright test channels.spec.ts"
I m handling spec files with my core.ts file . My spec file is channels.e2e.spec. When these spec file called from npm script, it navigates to my channels.e2e.ts
I am doing the login process in the global-setup.ts file. When the npm script runs, the login process is works good in global-setup.ts file. Then the browser closes.
My question is exactly this: I want to navigate to the first test in my channels.e2e.ts file, but a blank browser page opens after global-setup.ts file worked good. So it doesn't click the button which is my first action in NavigateChannelsPage test. As far as I understand; the login process in the first global-setup.ts file works, the browser closes, then the new browser opens, but it cannot find which url to redirect to. Normally, when I log in with global-setup, shouldn't it be auto-login? By the way,After all operations in global-setup.ts are running, data is written to storageState.json as follows. But when I look the storageStage.json, cookie is empty as below.Should it be filled?
my npm script
"pw:staging": "NAME=test@domain.com PASS=test npx playwright test channels.spec.ts"
this is my global-setup.ts
this is my playwright.config.ts
this is my channels.spec.ts file;
This is my channels.e2e.ts file ;
this my core.ts file (I am managing all spec files here using Core.create method)
The text was updated successfully, but these errors were encountered: