Commit 4d47f1b

mo khan <mo@mokhan.ca>
2025-03-17 22:54:20
test: update credentials used in test to match seed data
1 parent 338ff46
Changed files (1)
test/e2e_test.go
@@ -50,8 +50,8 @@ func TestAuthx(t *testing.T) {
 			assert.Equal(t, "http://idp.example.com:8080/saml/new", action)
 			assert.NoError(t, page.Locator("#submit-button").Click())
 
-			page.Locator("#username").Fill("username1")
-			page.Locator("#password").Fill("password1")
+			page.Locator("#username").Fill("root")
+			page.Locator("#password").Fill("root")
 			assert.NoError(t, page.Locator("#login-button").Click())
 
 			action = x.Must(page.Locator("#postback-form").GetAttribute("action"))
@@ -67,8 +67,8 @@ func TestAuthx(t *testing.T) {
 			x.Must(page.Goto("http://ui.example.com:8080/oidc/new"))
 
 			assert.Contains(t, page.URL(), "http://idp.example.com:8080/sessions/new")
-			page.Locator("#username").Fill("username1")
-			page.Locator("#password").Fill("password1")
+			page.Locator("#username").Fill("root")
+			page.Locator("#password").Fill("root")
 			assert.NoError(t, page.Locator("#login-button").Click())
 
 			assert.Contains(t, page.URL(), "http://idp.example.com:8080/oauth/authorize/continue")
@@ -225,8 +225,8 @@ func TestAuthx(t *testing.T) {
 			assert.NoError(t, page.Context().ClearCookies())
 			x.Must(page.Goto(authURL))
 
-			page.Locator("#username").Fill("username1")
-			page.Locator("#password").Fill("password1")
+			page.Locator("#username").Fill("root")
+			page.Locator("#password").Fill("root")
 			assert.NoError(t, page.Locator("#login-button").Click())
 
 			assert.NoError(t, page.Locator("#submit-button").Click())