fix: update local greetings and stabilize account navigation
This commit is contained in:
@@ -39,6 +39,7 @@ test("recovers from empty search and shares navigation with Research", async ({
|
||||
await expect(readerPage.editInterestsButton).toHaveCount(0);
|
||||
await workspacePage.navigateTo("Research");
|
||||
await expect(page).toHaveURL(/\/deck$/);
|
||||
await expect(workspacePage.researchReady).toBeEnabled();
|
||||
await workspacePage.navigateTo("Reader");
|
||||
await expect(page).toHaveURL(/\/inbox$/);
|
||||
await expect(readerPage.rows).toHaveCount(9);
|
||||
|
||||
@@ -32,7 +32,7 @@ export class HomePage {
|
||||
return this.page.getByRole("button", { name: `Record weight Recorded · ${weight} kg` });
|
||||
}
|
||||
greeting(name: string) {
|
||||
return this.page.getByRole("heading", { name: `Good morning, ${name}` });
|
||||
return this.page.getByRole("heading", { level: 1 }).filter({ hasText: `, ${name}` });
|
||||
}
|
||||
async goTo(search = "") {
|
||||
await this.page.goto(`/${search}`);
|
||||
|
||||
Reference in New Issue
Block a user