Skip to content

Commit

Permalink
Replace webdriver usage
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed May 27, 2023
1 parent 164466e commit 76249ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/development/next-font/build-errors.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createNextDescribe } from 'e2e-utils'
import { join } from 'path'
import webdriver from 'next-webdriver'
import { getRedboxSource, hasRedbox } from 'next-test-utils'

createNextDescribe(
Expand All @@ -10,7 +9,7 @@ createNextDescribe(
},
({ next }) => {
it('should show a next/font error when input is wrong', async () => {
const browser = await webdriver(next.url, '/')
const browser = await next.browser('/')
const content = await next.readFile('app/page.js')

await next.patchFile(
Expand Down Expand Up @@ -38,7 +37,7 @@ export default function Page() {
})

it("should show a module not found error if local font file can' be resolved", async () => {
const browser = await webdriver(next.url, '/')
const browser = await next.browser('/')
const content = await next.readFile('app/page.js')

await next.patchFile(
Expand Down

0 comments on commit 76249ee

Please sign in to comment.