mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 01:22:26 +00:00
submit username and password
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('get started link', async ({ page }) => {
|
||||
await page.goto('http://localhost:8080/');
|
||||
|
||||
await page.getByRole('heading', { name: 'Welcome back!' }).isVisible();
|
||||
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 password.pressSequentially("Password1!");
|
||||
await password.press( 'Enter');
|
||||
await page.getByText('Skip').click();
|
||||
});
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('get started link', async ({ page }) => {
|
||||
await page.goto('http://localhost:8080/');
|
||||
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();
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@ export default defineConfig({
|
||||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||
use: {
|
||||
/* Base URL to use in actions like `await page.goto('/')`. */
|
||||
// baseURL: 'http://127.0.0.1:3000',
|
||||
baseURL: 'http://127.0.0.1:3000',
|
||||
|
||||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
||||
trace: 'on-first-retry',
|
||||
|
||||
Reference in New Issue
Block a user