mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-14 09:49:46 +00:00
fmt
This commit is contained in:
@@ -92,7 +92,6 @@ pnpm run-samlidp
|
|||||||
pnpm run-oidcop
|
pnpm run-oidcop
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|
||||||
You can execute the following commands `pnpm test` for a single test run or `pnpm test:watch` in the following directories:
|
You can execute the following commands `pnpm test` for a single test run or `pnpm test:watch` in the following directories:
|
||||||
|
@@ -1,14 +1,14 @@
|
|||||||
import {faker} from "@faker-js/faker";
|
import { faker } from "@faker-js/faker";
|
||||||
import {test as base} from "@playwright/test";
|
import { test as base } from "@playwright/test";
|
||||||
import dotenv from "dotenv";
|
import dotenv from "dotenv";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import {PasswordUser} from "./user";
|
import { PasswordUser } from "./user";
|
||||||
|
|
||||||
// Read from ".env" file.
|
// Read from ".env" file.
|
||||||
dotenv.config({path: path.resolve(__dirname, ".env.local")});
|
dotenv.config({ path: path.resolve(__dirname, ".env.local") });
|
||||||
|
|
||||||
const test = base.extend<{ user: PasswordUser }>({
|
const test = base.extend<{ user: PasswordUser }>({
|
||||||
user: async ({page}, use) => {
|
user: async ({ page }, use) => {
|
||||||
const user = new PasswordUser({
|
const user = new PasswordUser({
|
||||||
email: faker.internet.email(),
|
email: faker.internet.email(),
|
||||||
isEmailVerified: true,
|
isEmailVerified: true,
|
||||||
@@ -26,8 +26,8 @@ const test = base.extend<{ user: PasswordUser }>({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
test("oidc username and password login", async ({user, page}) => {
|
test("oidc username and password login", async ({ user, page }) => {
|
||||||
//TODO commented out because of relocating into E2E tests
|
//TODO commented out because of relocating into E2E tests
|
||||||
/*
|
/*
|
||||||
await startOIDC(page);
|
await startOIDC(page);
|
||||||
await loginname(page, user.getUsername());
|
await loginname(page, user.getUsername());
|
||||||
|
Reference in New Issue
Block a user