mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-19 11:02:11 +08:00
2b71b3f345
#### PR Dependency Tree * **PR #14434** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Introduced rspack bundler as an alternative to webpack for optimized builds. * **Tests & Quality** * Added comprehensive editor semantic tests covering markdown, hotkeys, and slash-menu operations. * Expanded CI cross-browser testing to Chromium, Firefox, and WebKit; improved shape-rendering tests to account for zoom. * **Bug Fixes** * Corrected CSS overlay styling for development servers. * Fixed TypeScript typings for build tooling. * **Other** * Document duplication now produces consistent "(n)" suffixes. * French i18n completeness increased to 100%. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
30 lines
794 B
TypeScript
30 lines
794 B
TypeScript
import type { Page } from '@playwright/test';
|
|
|
|
export let coreUrl = 'http://localhost:8080';
|
|
|
|
export function setCoreUrl(url: string) {
|
|
coreUrl = url;
|
|
}
|
|
|
|
export async function openHomePage(page: Page) {
|
|
await page.goto(coreUrl);
|
|
}
|
|
|
|
export async function open404Page(page: Page) {
|
|
await page.goto(`${coreUrl}/404`);
|
|
}
|
|
|
|
export async function confirmCreateJournal(page: Page) {
|
|
const confirmButton = page.getByTestId('confirm-create-journal-button');
|
|
await confirmButton.click();
|
|
}
|
|
|
|
export async function openJournalsPage(page: Page) {
|
|
const { expect } = await import('@playwright/test');
|
|
await page.getByTestId('slider-bar-journals-button').click();
|
|
await confirmCreateJournal(page);
|
|
await expect(
|
|
page.locator('.doc-title-container:has-text("Today")')
|
|
).toBeVisible();
|
|
}
|