All checks were successful
Playwright Tests / test (pull_request) Successful in 2m42s
23 lines
764 B
TypeScript
23 lines
764 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
|
|
test.describe('qualifikationbearbeiten', () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.goto('http://localhost:4200');
|
|
|
|
await page.getByRole('button').click();
|
|
await page.waitForFunction(() => window.location.href.includes('keycloak'));
|
|
await page.getByLabel('Username or email').fill('user');
|
|
await page.getByLabel('Password').fill('test');
|
|
await page.click('#kc-login');
|
|
|
|
await page.goto('http://localhost:4200/qualifikationbearbeiten/1');
|
|
});
|
|
|
|
test('ShouldLoad', async ({ page }) => {
|
|
expect(page.getByText("Save")).toBeTruthy();
|
|
});
|
|
|
|
test('FieldsShouldHaveValues', async ({page}) => {
|
|
await expect(page.getByLabel('Name')).toHaveValue('Java');
|
|
});
|
|
});
|