test: Remove old employee test and add new tests
All checks were successful
Playwright Tests / test (pull_request) Successful in 2m42s
All checks were successful
Playwright Tests / test (pull_request) Successful in 2m42s
This commit is contained in:
parent
a6047e2720
commit
bac1f3cfac
3 changed files with 47 additions and 3 deletions
23
tests/qualifikationbearbeiten.spec.ts
Normal file
23
tests/qualifikationbearbeiten.spec.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
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');
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue