fix(mobile): popover styles (#15351)
This commit is contained in:
1 parent
b975e6b562
commit
749f1c5f0b
15 files changed
+799
-557
No files matched your search
@@ -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