Добавлен файл register.negative.spec проверяющий негативные сценарии раздела Регистрация
This commit is contained in:
@@ -109,4 +109,25 @@ export class RegisterPage {
|
||||
await this.confirmPasswordInput.fill(data.confirmPassword);
|
||||
await this.submitButton.click();
|
||||
}
|
||||
|
||||
async fillName(name: string) {
|
||||
await this.nameInput.fill(name);
|
||||
}
|
||||
|
||||
async fillSurname(surname: string) {
|
||||
await this.surnameInput.fill(surname);
|
||||
}
|
||||
|
||||
async fillEmail(email: string) {
|
||||
await this.emailInput.fill(email);
|
||||
}
|
||||
|
||||
async fillPosition(position: string) {
|
||||
await this.positionInput.fill(position);
|
||||
}
|
||||
|
||||
async submit() {
|
||||
await this.submitButton.click();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user