Skip to content

Commit

Permalink
Test Personen und Test Klassen angepasst (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobmadp authored Jul 17, 2024
1 parent 5a2b7c0 commit d1338e2
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 204 deletions.
2 changes: 1 addition & 1 deletion pages/admin/KlasseManagementView.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export class KlasseManagementViewPage{
this.combobox_Filter_Schule = page.getByPlaceholder('Schule');
this.combobox_Filter_Klasse = page.getByPlaceholder('Klasse');
this.table_header_Dienststellennummer = page.getByText('Dienststellennummer');
this.table_header_Klassenname = page.getByTestId('klasse-table').getByText('Klasse');
this.table_header_Klassenname = page.getByTestId('klasse-table').getByText('Klasse', { exact: true });
}
}
4 changes: 4 additions & 0 deletions pages/admin/PersonCreationView.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import { type Locator, Page } from '@playwright/test';

export class PersonCreationViewPage{
readonly page: Page;
readonly body: Locator;
readonly text_h2_PersonAnlegen: Locator;
readonly combobox_Rolle: Locator;
readonly combobox_Rolle_Clear: Locator;
readonly Input_Vorname: Locator;
readonly Input_Nachname: Locator;
readonly combobox_Schulstrukturknoten: Locator;
readonly combobox_Schulstrukturknoten_Clear: Locator;
readonly combobox_Klasse: Locator;
readonly button_PersonAnlegen: Locator;
readonly text_success: Locator;
Expand All @@ -19,9 +21,11 @@ export class PersonCreationViewPage{

constructor(page){
this.page = page;
this.body = page.locator('body');
this.text_h2_PersonAnlegen = page.getByTestId('layout-card-headline');
this.combobox_Rolle = page.getByTestId('rolle-select').locator('.v-field__input');
this.combobox_Rolle_Clear = page.getByTestId('rolle-select').getByLabel('leeren');
this.combobox_Schulstrukturknoten_Clear = page.getByTestId('organisation-select').getByLabel('leeren');
this.Input_Vorname = page.getByTestId('vorname-input').locator('.v-field__input');
this.Input_Nachname = page.getByTestId('familienname-input').locator('.v-field__input');
this.combobox_Schulstrukturknoten = page.getByTestId('organisation-select').locator('.v-field__input');
Expand Down
Loading

0 comments on commit d1338e2

Please sign in to comment.