Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored and astrobot-houston committed May 21, 2024
1 parent af42e05 commit fcd19fb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/astro/e2e/dev-toolbar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ test.describe('Dev Toolbar', () => {
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'));

const toolbar = page.locator('astro-dev-toolbar');
Expand All @@ -115,15 +115,17 @@ test.describe('Dev Toolbar', () => {
for (let i = 0; i < xrayHighlightsCount; i++) {
const currentHighlight = xrayHighlights.nth(i);
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
await executeTest();

// RTL
await page.locator('body').evaluate(element => element.dir = 'rtl');
await page.locator('body').evaluate((element) => (element.dir = 'rtl'));
await executeTest();
});

Expand Down

0 comments on commit fcd19fb

Please sign in to comment.