Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

Update testExpect.d.ts (#8923)

Mark Skelton5f704edc6c71
diff --git a/types/testExpect.d.ts b/types/testExpect.d.ts
index bba7457b48..334a4e41f0 100644
--- a/types/testExpect.d.ts
+++ b/types/testExpect.d.ts
@@ -131,7 +131,7 @@ declare global {
/**
* Asserts element's computed CSS property `name` matches expected value.
*/
- toHaveCSS(expected: string | RegExp, name: string, options?: { timeout?: number }): Promise<R>;
+ toHaveCSS(name: string, expected: string | RegExp, options?: { timeout?: number }): Promise<R>;
/**
* Asserts element's `id` attribute matches expected value.