Skip to content

Commit 20437d1

Browse files
committed
fix: lab 06
1 parent f633282 commit 20437d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

steps/06-scaffolding-solution/tests/guestbook.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test.describe("new message", () => {
3030
const message = "This is a message from the future! " +
3131
Math.floor(Math.random() * 1_000_000);
3232
await newGuestbookMessageFormPage.fillForm({ author, message });
33-
await newGuestbookMessageFormPage.submitButton();
33+
await newGuestbookMessageFormPage.submitButton().click();
3434

3535
await expect(newGuestbookMessageFormPage.submitSuccessMessage())
3636
.toBeVisible();

steps/06-scaffolding-solution/tests/page-object/admin-guestbook.page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export class AdminGuestbookPage {
44
constructor(private page: Page) {}
55

66
manageGuestbookButton() {
7-
return this.page.locator("button", { hasText: "Manage guestbook" });
7+
return this.page.getByRole("button", { name: "Manage guestbook" });
88
}
99

1010
title() {

0 commit comments

Comments
 (0)