-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wrong redirect / error display on OIDC login
This also replace local mock for OIDC since old container did not work anymore. Fix #849
- Loading branch information
Showing
5 changed files
with
131 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import test, { expect } from "@playwright/test"; | ||
|
||
test.describe("Home screen should", () => { | ||
test("allow tenant creation", async ({ page }) => { | ||
await page.goto("/login"); | ||
await page.getByRole("button", { name: "OpenId connect" }).click(); | ||
await expect(page).toHaveURL( | ||
new RegExp("^http://localhost:9001/Account/Login") | ||
); | ||
await page.getByLabel("Username").fill("User1"); | ||
await page.getByLabel("Password").fill("pwd"); | ||
await page.getByRole("button", { name: "Login" }).click(); | ||
await expect(page).toHaveURL("http://localhost:3000/home"); | ||
await expect( | ||
page.getByRole("button", { name: "Sam Tailor" }) | ||
).toBeVisible(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters