mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-01 01:52:42 +03:00
21 lines
656 B
TypeScript
21 lines
656 B
TypeScript
import { expect } from '@playwright/test';
|
|
|
|
import { loadPage } from './libs/load-page';
|
|
import { test } from './libs/playwright';
|
|
|
|
loadPage();
|
|
|
|
test.describe('Shortcuts Modal', () => {
|
|
test('Open shortcuts modal', async ({ page }) => {
|
|
await page.locator('[data-testid=help-island]').click();
|
|
|
|
const shortcutsIcon = page.locator('[data-testid=shortcuts-icon]');
|
|
expect(await shortcutsIcon.isVisible()).toEqual(true);
|
|
|
|
await shortcutsIcon.click();
|
|
await page.waitForTimeout(800);
|
|
const shortcutsModal = page.locator('[data-testid=shortcuts-modal]');
|
|
await expect(shortcutsModal).toContainText('Keyboard Shortcuts');
|
|
});
|
|
});
|