mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
[ci] format
This commit is contained in:
parent
af42e05520
commit
fcd19fb8e2
1 changed files with 8 additions and 6 deletions
|
@ -100,7 +100,7 @@ test.describe('Dev Toolbar', () => {
|
||||||
await expect(xrayHighlightTooltip).not.toBeVisible();
|
await expect(xrayHighlightTooltip).not.toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('xray tooltips don\'t overflow', async ({ page, astro }) => {
|
test("xray tooltips don't overflow", async ({ page, astro }) => {
|
||||||
await page.goto(astro.resolveUrl('/xray-overlay-positioning'));
|
await page.goto(astro.resolveUrl('/xray-overlay-positioning'));
|
||||||
|
|
||||||
const toolbar = page.locator('astro-dev-toolbar');
|
const toolbar = page.locator('astro-dev-toolbar');
|
||||||
|
@ -115,15 +115,17 @@ test.describe('Dev Toolbar', () => {
|
||||||
for (let i = 0; i < xrayHighlightsCount; i++) {
|
for (let i = 0; i < xrayHighlightsCount; i++) {
|
||||||
const currentHighlight = xrayHighlights.nth(i);
|
const currentHighlight = xrayHighlights.nth(i);
|
||||||
await currentHighlight.hover();
|
await currentHighlight.hover();
|
||||||
await expect(currentHighlight.locator('astro-dev-toolbar-tooltip')).toBeInViewport({ ratio: 0.9 });
|
await expect(currentHighlight.locator('astro-dev-toolbar-tooltip')).toBeInViewport({
|
||||||
|
ratio: 0.9,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
// LTR
|
// LTR
|
||||||
await executeTest();
|
await executeTest();
|
||||||
|
|
||||||
// RTL
|
// RTL
|
||||||
await page.locator('body').evaluate(element => element.dir = 'rtl');
|
await page.locator('body').evaluate((element) => (element.dir = 'rtl'));
|
||||||
await executeTest();
|
await executeTest();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue