fix: page info ui issue on journal page (#5887)

This commit is contained in:
Peng Xiao
2024-02-23 07:55:43 +00:00
parent 3f7f78c8f4
commit 745110c799
4 changed files with 34 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
import type { Page } from '@playwright/test';
import { expect, type Page } from '@playwright/test';
export const coreUrl = 'http://localhost:8080';
@@ -9,3 +9,10 @@ export async function openHomePage(page: Page) {
export async function open404Page(page: Page) {
await page.goto(`${coreUrl}/404`);
}
export async function openJournalsPage(page: Page) {
await page.getByTestId('slider-bar-journals-button').click();
await expect(
page.locator('.doc-title-container:has-text("Today")')
).toBeVisible();
}