mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 16:19:43 +08:00
fix(mobile): popover styles (#15351)
This commit is contained in:
@@ -239,10 +239,22 @@ test('should format quick bar be able to change background color', async ({
|
||||
// select `456` paragraph by dragging
|
||||
await dragBetweenIndices(page, [1, 0], [1, 3]);
|
||||
|
||||
const { highlight } = getFormatBar(page);
|
||||
const { formatBar, highlight } = getFormatBar(page);
|
||||
|
||||
await formatBar.evaluate(toolbar => {
|
||||
toolbar.style.overflowX = 'auto';
|
||||
});
|
||||
|
||||
await highlight.highlightBtn.click();
|
||||
await expect(highlight.redForegroundBtn).toBeVisible();
|
||||
await expect(
|
||||
formatBar.locator('editor-menu-content[data-show]')
|
||||
).toHaveAttribute('popover', 'manual');
|
||||
expect(
|
||||
await formatBar
|
||||
.locator('editor-menu-content[data-show]')
|
||||
.evaluate(menu => menu.matches(':popover-open'))
|
||||
).toBe(true);
|
||||
|
||||
// TODO(@fundon): these recent settings should be added to the dropdown menu.
|
||||
// await expect(highlight.highlightBtn).toHaveAttribute(
|
||||
|
||||
Reference in New Issue
Block a user