File tree Expand file tree Collapse file tree 3 files changed +17
-28
lines changed
Expand file tree Collapse file tree 3 files changed +17
-28
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,16 @@ import { test, expect } from "@playwright/test"
22import { CODE_SERVER_ADDRESS , PASSWORD } from "../utils/constants"
33
44test . describe ( "login" , ( ) => {
5- test . beforeEach ( async ( { page } ) => {
6- // TODO@jsjoeio reset the browser
7- await page . goto ( CODE_SERVER_ADDRESS , { waitUntil : "networkidle" } )
8- } )
5+ // Reset the browser so no cookies are persisted
6+ // by emptying the storageState
7+ const options = {
8+ contextOptions : {
9+ storageState : { } ,
10+ } ,
11+ }
912
10- test ( "should be able to login" , async ( { page } ) => {
13+ test ( "should be able to login" , options , async ( { page } ) => {
14+ await page . goto ( CODE_SERVER_ADDRESS , { waitUntil : "networkidle" } )
1115 // Type in password
1216 await page . fill ( ".password" , PASSWORD )
1317 // Click the submit button and login
Original file line number Diff line number Diff line change 1010 "jest" : " ^26.6.3" ,
1111 "jsdom" : " ^16.4.0" ,
1212 "node-fetch" : " ^2.6.1" ,
13- "playwright" : " ^1.8.0 " ,
13+ "playwright" : " ^1.11.0-next-alpha-apr-13-2021 " ,
1414 "supertest" : " ^6.1.1" ,
1515 "ts-jest" : " ^26.4.4"
16+ },
17+ "resolutions" : {
18+ "@playwright/test/playwright" : " ^1.11.0-next-alpha-apr-13-2021"
1619 }
1720}
Original file line number Diff line number Diff line change @@ -3889,10 +3889,10 @@ pkg-dir@^4.2.0:
38893889 dependencies :
38903890 find-up "^4.0.0"
38913891
3892- playwright@=1.10.0 :
3893- version "1.10.0 "
3894- resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.10.0 .tgz#a14d295f1ad886caf4cc5e674afe03ac832066bc "
3895- integrity sha512-b7SGBcCPq4W3pb4ImEDmNXtO0ZkJbZMuWiShsaNJd+rGfY/6fqwgllsAojmxGSgFmijYw7WxCoPiAIEDIH16Kw ==
3892+ playwright@=1.10.0, playwright@^1.11.0-next-alpha-apr-13-2021 :
3893+ version "1.11.0-next-alpha-apr-13-2021 "
3894+ resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.11.0-next-alpha-apr-13-2021 .tgz#f8398f3521cfe044389e3fc9bf48f14784789225 "
3895+ integrity sha512-0aMrEvCUQ+W6f1zUyRts2dXl+rm1ICD57y9duwvibhV3gqiSxH3owQB0EGODOpTMPCP3c2W6FcQiJ9hElBbuig ==
38963896 dependencies :
38973897 commander "^6.1.0"
38983898 debug "^4.1.1"
@@ -3908,24 +3908,6 @@ playwright@=1.10.0:
39083908 stack-utils "^2.0.3"
39093909 ws "^7.3.1"
39103910
3911- playwright@^1.8.0 :
3912- version "1.8.0"
3913- resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.8.0.tgz#8eca2250967ee892b9fdfec44e2358455ab0f8e3"
3914- integrity sha512-urMJDLX92KawbkWKrt3chVVBPQsuuNwlS5St7I5YQENXAEItoyUqX7FjiYaoPgXifKqe1+BKC+7pBAq1QUkgSw==
3915- dependencies :
3916- commander "^6.1.0"
3917- debug "^4.1.1"
3918- extract-zip "^2.0.1"
3919- https-proxy-agent "^5.0.0"
3920- jpeg-js "^0.4.2"
3921- mime "^2.4.6"
3922- pngjs "^5.0.0"
3923- progress "^2.0.3"
3924- proper-lockfile "^4.1.1"
3925- proxy-from-env "^1.1.0"
3926- rimraf "^3.0.2"
3927- ws "^7.3.1"
3928-
39293911pngjs@^4.0.1 :
39303912 version "4.0.1"
39313913 resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-4.0.1.tgz#f803869bb2fc1bfe1bf99aa4ec21c108117cfdbe"
You can’t perform that action at this time.
0 commit comments