Skip to content

Commit

Permalink
Fix .env chaos
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Hoops <9974641+jfelixh@users.noreply.github.com>
  • Loading branch information
jfelixh committed Jun 12, 2024
1 parent 4940c69 commit d671dd1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: v20.14.0
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
Expand Down
1 change: 0 additions & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ services:
- HYDRA_ADMIN_URL=http://hydra:4445
- REDIS_HOST=redis
- REDIS_PORT=6379
- NODE_TLS_REJECT_UNAUTHORIZED=0
networks:
- ory-hydra-network
ports:
Expand Down
1 change: 1 addition & 0 deletions vclogin/.env.test
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
LOGIN_POLICY=./__tests__/testdata/policies/acceptAnything.json
DID_KEY_JWK={"kty":"OKP","crv":"Ed25519","x":"cwa3dufHNLg8aQb2eEUqTyoM1cKQW3XnOkMkj_AAl5M","d":"me03qhLByT-NKrfXDeji-lpADSpVOKWoaMUzv5EyzKY"}
9 changes: 5 additions & 4 deletions vclogin/__tests__/e2e/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ test.beforeAll(async () => {
redisContainer.getNetworkNames()[0] ?? "",
)}`,
REDIS_PORT: "6379",
NODE_ENV: "test",
};
const vcloginImage = await GenericContainer.fromDockerfile("./")
.withCache(true)
Expand All @@ -41,7 +42,7 @@ test.describe("Index Page", () => {

await expect(
page.getByRole("heading", { name: "SSI-to-OIDC Bridge" }),
).toBeVisible({ timeout: 60000 });
).toBeVisible({ timeout: 15000 });
});
});

Expand All @@ -51,20 +52,20 @@ test.describe("Login Page", () => {

await expect(
page.getByRole("heading", { name: "SSI-to-OIDC Bridge" }),
).toBeVisible({ timeout: 60000 });
).toBeVisible({ timeout: 15000 });
});

test("has CTA", async ({ page }) => {
await page.goto(url + "/login?login_challenge=challenge123");

await expect(page.getByRole("heading", { name: /Scan/i })).toBeVisible({
timeout: 60000,
timeout: 15000,
});
});

test("has QR Code", async ({ page }) => {
await page.goto(url + "/login?login_challenge=challenge123");

await expect(page.locator("canvas")).toBeVisible({ timeout: 60000 });
await expect(page.locator("canvas")).toBeVisible({ timeout: 15000 });
});
});

0 comments on commit d671dd1

Please sign in to comment.