@web/test-runner-commands
Advanced tools
Comparing version 0.4.3 to 0.4.4
# @web/test-runner-commands | ||
## 0.4.4 | ||
### Patch Changes | ||
- a6a018da: fix type references | ||
## 0.4.3 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@web/test-runner-commands", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"publishConfig": { | ||
@@ -51,6 +51,6 @@ "access": "public" | ||
"devDependencies": { | ||
"@web/test-runner-chrome": "^0.9.0", | ||
"@web/test-runner-playwright": "^0.8.0", | ||
"@web/test-runner-chrome": "^0.10.0", | ||
"@web/test-runner-playwright": "^0.8.5", | ||
"mocha": "^8.2.1" | ||
} | ||
} |
import { TestRunnerPlugin } from '@web/test-runner-core'; | ||
import type { ChromeLauncher } from '@web/test-runner-chrome'; | ||
import type { PlaywrightLauncher } from '@web/test-runner-playwright'; | ||
import type { ElementHandle as PlaywrightElementHandle } from 'playwright'; | ||
import type { ElementHandle as PuppeteerElementHandle } from 'puppeteer'; | ||
import type { ChromeLauncher, puppeteerCore } from '@web/test-runner-chrome'; | ||
import type { PlaywrightLauncher, playwright } from '@web/test-runner-playwright'; | ||
@@ -18,3 +16,3 @@ export type A11ySnapshotPayload = { selector?: string }; | ||
const options: { | ||
root?: PlaywrightElementHandle; | ||
root?: playwright.ElementHandle; | ||
} = {}; | ||
@@ -35,3 +33,3 @@ if (payload && payload.selector) { | ||
const options: { | ||
root?: PuppeteerElementHandle; | ||
root?: puppeteerCore.ElementHandle; | ||
} = {}; | ||
@@ -38,0 +36,0 @@ if (payload && payload.selector) { |
import { TestRunnerPlugin } from '@web/test-runner-core'; | ||
import type { ChromeLauncher } from '@web/test-runner-chrome'; | ||
import type { ChromeLauncher, puppeteerCore } from '@web/test-runner-chrome'; | ||
import type { PlaywrightLauncher } from '@web/test-runner-playwright'; | ||
@@ -57,3 +57,3 @@ | ||
} else if (payload.press) { | ||
await page.keyboard.press(payload.press); | ||
await page.keyboard.press(payload.press as puppeteerCore.KeyInput); | ||
return true; | ||
@@ -60,0 +60,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
45432
704