File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -26,4 +26,23 @@ test.describe("login", () => {
2626 // Make sure the editor actually loaded
2727 expect ( await page . isVisible ( "div.monaco-workbench" ) )
2828 } )
29+
30+ test ( "should see an error message for missing password" , options , async ( { page } ) => {
31+ await page . goto ( CODE_SERVER_ADDRESS , { waitUntil : "networkidle" } )
32+ // Skip entering password
33+ // Click the submit button and login
34+ await page . click ( ".submit" )
35+ await page . waitForLoadState ( "networkidle" )
36+ expect ( await page . isVisible ( "text=Missing password" ) )
37+ } )
38+
39+ test ( "should see an error message for incorrect password" , options , async ( { page } ) => {
40+ await page . goto ( CODE_SERVER_ADDRESS , { waitUntil : "networkidle" } )
41+ // Type in password
42+ await page . fill ( ".password" , "password123" )
43+ // Click the submit button and login
44+ await page . click ( ".submit" )
45+ await page . waitForLoadState ( "networkidle" )
46+ expect ( await page . isVisible ( "text=Incorrect password" ) )
47+ } )
2948} )
You can’t perform that action at this time.
0 commit comments