Skip to content

Commit

Permalink
feat: add playwright state (#373)
Browse files Browse the repository at this point in the history
Because

- we want to use playwright state to persist onboarding status

This commit

- add playwright state
  • Loading branch information
EiffelFly committed Mar 17, 2023
1 parent 4a828e9 commit b1ff209
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ yarn-error.log*
/test-results/
/playwright-report/
/playwright/.cache/
playwright-state.json

# Generated env file

Expand Down
17 changes: 0 additions & 17 deletions integration-test/helper/global-setup.ts

This file was deleted.

15 changes: 15 additions & 0 deletions playwright-state.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"cookies": [
{
"name": "instill-ai-user",
"value": "%7B%22cookie_token%22%3A%2275ce3807-de81-4203-b203-ed4bb8ec4f7f%22%7D",
"domain": "localhost",
"path": "/",
"expires": 1681659379.566646,
"httpOnly": false,
"secure": false,
"sameSite": "Lax"
}
],
"origins": []
}
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (!process.env.NEXT_PUBLIC_CONSOLE_BASE_URL) {
*/
const config: PlaywrightTestConfig = {
testDir: "./integration-test",
globalSetup: require.resolve("./integration-test/helper/global-setup"),
// globalSetup: require.resolve("./integration-test/helper/global-setup"),
/* Maximum time one test can run for. */
timeout: 30000,
expect: {
Expand Down

0 comments on commit b1ff209

Please sign in to comment.