Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
r100-stack committed Oct 14, 2024
1 parent 27fbb21 commit 863f69e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions packages/itwinui-react/src/core/Table/TablePaginator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ const TablePaginatorPageButtons = (props: TablePaginatorPageButtonsProps) => {
size,
} = props;

console.log('focusedIndex', focusedIndex);

const { visibleCount } = OverflowContainer.useContext();

const buttonSize = size != 'default' ? 'small' : undefined;
Expand Down Expand Up @@ -402,8 +400,6 @@ const TablePaginatorPageButtons = (props: TablePaginatorPageButtonsProps) => {
endPage = totalPagesCount;
}

console.log(startPage, endPage, focusedIndex);

const ellipsis = (
<Box
as='span'
Expand Down
6 changes: 3 additions & 3 deletions testing/e2e/app/routes/Table/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,19 +467,19 @@ test.describe('Table Paginator', () => {

await setContainerSize(page, '800px');

// Go to the 6th page
await page.locator('button').last().click({ clickCount: 5 });
// Go to the 5th page
await page.locator('#paginator button').nth(5).click();

const paginatorButtons = page.locator('#paginator button', {
hasText: /[0-9]+/,
});
await expect(paginatorButtons).toHaveText([
'1',
'3',
'4',
'5',
'6',
'7',
'8',
'11',
]);
await expect(paginatorButtons.nth(3)).toHaveAttribute(
Expand Down

0 comments on commit 863f69e

Please sign in to comment.