Skip to content

Commit 1dd4055

Browse files
committed
add statements to debug CI failing filling registration form
1 parent 730ad2d commit 1dd4055

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pages/RegistrationPage.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,18 @@ export class RegistrationPage {
4444
await this.firstNameInput.fill(faker.person.firstName());
4545
await this.lastNameInput.fill(faker.person.lastName());
4646
await this.dobInput.fill("1990-01-01");
47+
console.log("Filling registration form with random data");
4748
await this.streetInput.fill(faker.location.streetAddress());
4849
await this.postalCodeInput.fill(faker.location.zipCode());
4950
await this.cityInput.fill(faker.location.city());
5051
await this.stateInput.fill(faker.location.state());
5152
await this.countryDropdown.selectOption({ label: "Canada" });
53+
console.log("Selected country: Canada");
5254
const phoneNumber = faker.string.numeric(10);
5355
await this.phoneInput.fill(phoneNumber);
5456
await this.emailInput.fill(faker.internet.email());
5557
await this.passwordInput.fill(process.env.PASSWORD!);
58+
console.log("Filled all registration form fields and ready to submit");
5659
}
5760

5861
async clickRegisterButton() {

0 commit comments

Comments
 (0)