Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksiAhtiainen committed Oct 22, 2024
1 parent 5cd89ca commit 783bca3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions omadata-oauth2-sample/client/test/e2e/front-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ test("Front page opens", async ({ page }) => {
// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/OmaDataOAuth2 Sample/)
})

test("Front page contains content from KOSKI", async ({ page }) => {
await page.goto("/")
await expect(page.getByRole("banner")).toContainText("SUCCESS")
await expect(page.getByRole("banner")).toContainText("dummy-access-token")
await expect(page.getByRole("banner")).toContainText("henkilö")
await expect(page.getByRole("banner")).toContainText("opiskeluoikeudet")
})
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class OmaDataOAuth2E2ESpec extends AnyFreeSpec with KoskiCommandLineSpec {
))
}

// TODO: TOR-2210: Löytyisiköhän tähän joku siistimpi keino esim. Github actionsin sisällä hakea julkinen IP?
private def myIP(): String = {
val whatismyip = new URL("http://checkip.amazonaws.com")
val in:BufferedReader = new BufferedReader(new InputStreamReader(
Expand Down

0 comments on commit 783bca3

Please sign in to comment.