Skip to content

Commit

Permalink
chore: remove scrollIntoViewIfNeeded (#6529)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Jan 24, 2024
1 parent b4a8dc6 commit 227ee91
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ test.describe('DropdownContext', () => {
const example = api.getExample('#context-menu');
const tr = example.locator('tr');

await tr.last().scrollIntoViewIfNeeded();
await tr.last().click({button: 'right', position: {x: 0, y: 0}});
await api.networkidle();
await expect(example).toHaveScreenshot('01-dropdown-context.png');
Expand All @@ -22,11 +21,9 @@ test.describe('DropdownContext', () => {
const example = api.getExample('#context-menu');
const tr = example.locator('tr');

await tr.nth(1).scrollIntoViewIfNeeded();
await tr.nth(1).click({button: 'right', position: {x: 0, y: 0}});
await api.networkidle();
await expect(example).toHaveScreenshot('02-dropdown-context.png');
await tr.nth(2).scrollIntoViewIfNeeded();
await tr.nth(2).click({button: 'right', position: {x: 0, y: 0}});
await api.networkidle();
await expect(example).toHaveScreenshot('03-dropdown-context.png');
Expand All @@ -37,7 +34,6 @@ test.describe('DropdownContext', () => {
const example = api.getExample('#context-menu');
const tr = example.locator('tr');

await tr.nth(1).scrollIntoViewIfNeeded();
await tr.nth(1).click({button: 'right', position: {x: 0, y: 0}});
await page.locator('[tuiOption]').last().click();
await api.networkidle();
Expand Down

0 comments on commit 227ee91

Please sign in to comment.