Skip to content

Commit

Permalink
chore(deps): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mkosir committed Jan 31, 2024
1 parent 5af85f6 commit c9fe3df
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions e2e/tilt.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ import { OnMoveParams } from 'index';

const IFRAME_LOCATOR = 'iframe[title="storybook-preview-iframe"]';

test('should get max values of move params rendered when mouse is positioned at top left corner of tilt element', async ({
page,
}) => {
test.beforeEach(async ({ page }) => {
await page.goto('/');
await page.getByRole('link', { name: 'Event - Params' }).click();
});

test('should get max values of move params rendered when mouse is positioned at top left corner of tilt element', async ({
page,
}) => {
const content = page.frameLocator(IFRAME_LOCATOR);

await content.getByTestId('topLeft').hover({ position: { x: 10, y: 10 } });
Expand All @@ -20,9 +22,6 @@ test('should get max values of move params rendered when mouse is positioned at
});

test('should get max values of move params when mouse is positioned at corners of tilt element', async ({ page }) => {
await page.goto('/');
await page.getByRole('link', { name: 'Event - Params' }).click();

const content = page.frameLocator(IFRAME_LOCATOR);

await content.getByTestId('topLeft').hover({ position: { x: 10, y: 10 } });
Expand Down Expand Up @@ -75,9 +74,6 @@ test('should get max values of move params when mouse is positioned at corners o
});

test('should get half of max value when mouse is positioned in the middle of tilt element', async ({ page }) => {
await page.goto('http://localhost:9009');
await page.getByRole('link', { name: 'Event - Params' }).click();

const content = page.frameLocator(IFRAME_LOCATOR);

await content.getByTestId('topMidLeft').hover({ position: { x: 10, y: 10 } });
Expand Down

0 comments on commit c9fe3df

Please sign in to comment.