This commit is contained in:
Elio Bischof
2024-10-19 00:27:39 +02:00
parent 3fc6118609
commit 7cde73f879
5 changed files with 30 additions and 28 deletions

View File

@@ -1,12 +1,12 @@
import { test, expect } from '@playwright/test';
import { test } from "@playwright/test";
test('username and password', async ({ page }) => {
await page.goto('/');
const loginname = page.getByLabel('Loginname')
test("username and password", async ({ page }) => {
await page.goto("/");
const loginname = page.getByLabel("Loginname");
await loginname.pressSequentially("zitadel-admin@zitadel.localhost");
await loginname.press( 'Enter');
const password = page.getByLabel('Password')
await loginname.press("Enter");
const password = page.getByLabel("Password");
await password.pressSequentially("Password1!");
await password.press( 'Enter');
await page.getByText('Skip').click();
await password.press("Enter");
await page.getByText("Skip").click();
});

View File

@@ -1,6 +1,6 @@
import { test } from '@playwright/test';
import { test } from "@playwright/test";
test('login is accessible', async ({ page }) => {
await page.goto('http://localhost:3000/');
await page.getByRole('heading', { name: 'Welcome back!' }).isVisible();
test("login is accessible", async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.getByRole("heading", { name: "Welcome back!" }).isVisible();
});