-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added schule creation test and page * fixed menu item locator * fixed schule tests
- Loading branch information
1 parent
b3d3764
commit 393edef
Showing
9 changed files
with
97 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { type Locator, Page } from '@playwright/test'; | ||
|
||
export class SchuleCreationViewPage{ | ||
readonly page: Page; | ||
readonly text_h2_SchuleAnlegen: Locator; | ||
readonly radio_button_Public_Schule: Locator; | ||
readonly radio_button_Ersatzschule: Locator; | ||
readonly input_Dienststellennummer: Locator; | ||
readonly input_Schulname: Locator; | ||
readonly button_SchuleAnlegen: Locator; | ||
readonly button_WeitereSchuleAnlegen: Locator; | ||
readonly text_success: Locator; | ||
|
||
constructor(page){ | ||
this.page = page; | ||
this.text_h2_SchuleAnlegen = page.getByTestId('layout-card-headline'); | ||
this.radio_button_Public_Schule = page.getByTestId('public-schule-radio-button'); | ||
this.radio_button_Ersatzschule = page.getByTestId('ersatzschule-radio-button'); | ||
this.input_Dienststellennummer = page.getByTestId('dienststellennummer-input').locator('input'); | ||
this.input_Schulname = page.getByTestId('schulname-input').locator('input'); | ||
this.button_SchuleAnlegen = page.getByTestId('schule-creation-form-create-button'); | ||
this.button_WeitereSchuleAnlegen = page.getByTestId('create-another-schule-button'); | ||
this.text_success = page.getByTestId('schule-success-text'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters