Skip to content

Commit

Permalink
Fixed the import style of testFunction in the Redux example
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Mar 15, 2024
1 parent 7bccba5 commit 6b96f2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ function getFiltersPanel(page: Page) {
return page.locator('div.filters')
}

export async function testFunction(page: Page, expect: typeof expectType) {
export default async function testFunction(
page: Page,
expect: typeof expectType
) {
const listItems = getTodoListItems(page)

async function waitForListItemsCount(count: number) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Locator, Page, expect, test } from '@playwright/test'

import { testFunction } from './example-script'
import testFunction from './example-script'

test('Basic todo app mouse and keyboard interactions', async ({ page }) => {
await page.goto('http://localhost:5173')
Expand Down

0 comments on commit 6b96f2b

Please sign in to comment.