Skip to content

Commit

Permalink
Fix type error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Polleps committed Jan 29, 2025
1 parent 6b9a2bd commit 5540f82
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 20 deletions.
11 changes: 10 additions & 1 deletion browser/e2e/tests/tables.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ import {
waitForCommit,
before,
} from './test-utils';

type Row = {
name: string;
date: string;
number: string;
checkbox: boolean;
select: string;
};

test.describe('tables', async () => {
test.beforeEach(before);

Expand Down Expand Up @@ -39,7 +48,7 @@ test.describe('tables', async () => {
await expect(page.getByPlaceholder('filter tags')).not.toBeVisible();
};

const fillRow = async (currentRowNumber: number, row) => {
const fillRow = async (currentRowNumber: number, row: Row) => {
const { name, date, number, checkbox, select } = row;
const rowIndex = currentRowNumber + 1;
await page.keyboard.press('Enter');
Expand Down
22 changes: 3 additions & 19 deletions browser/e2e/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,9 @@
"composite": true,
// We overwrite this so we don't have to use `.js` extensions in imports
"moduleResolution": "node",
"lib": [
"ES6",
"ES7",
"ESNext",
"DOM"
],
"lib": ["ES6", "ES7", "ESNext", "DOM"],
"outDir": "./dist",
"strictNullChecks": true,
"strictNullChecks": true
},
"include": [
"./tests",
"playwright.config.ts"
],
"references": [
{
"path": "../lib"
},
{
"path": "../react"
}
]
"include": ["./tests", "playwright.config.ts"]
}

0 comments on commit 5540f82

Please sign in to comment.