fix(mobile): popover styles (#15351)

This commit is contained in:
DarkSky
2026-07-26 20:09:02 +08:00
committed by GitHub
parent b975e6b562
commit 749f1c5f0b
15 changed files with 799 additions and 557 deletions
+13 -1
View File
@@ -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(