diff --git a/assert/package.json b/assert/package.json index e824d75..36a2b88 100644 --- a/assert/package.json +++ b/assert/package.json @@ -1,6 +1,6 @@ { "name": "@cgauge/assert", - "version": "0.10.6", + "version": "0.10.7", "description": "Extra assert library", "type": "module", "repository": { diff --git a/dtc-aws-plugin/package.json b/dtc-aws-plugin/package.json index 8916f9e..664a958 100644 --- a/dtc-aws-plugin/package.json +++ b/dtc-aws-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@cgauge/dtc-aws-plugin", - "version": "0.10.6", + "version": "0.10.7", "description": "AWS plugin for Declarative TestCases", "repository": { "type": "git", diff --git a/dtc-graphql-plugin/package.json b/dtc-graphql-plugin/package.json index 7822dc0..5045118 100644 --- a/dtc-graphql-plugin/package.json +++ b/dtc-graphql-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@cgauge/dtc-graphql-plugin", - "version": "0.10.6", + "version": "0.10.7", "description": "GraphQl plugin for Declarative TestCases", "repository": { "type": "git", diff --git a/dtc-mysql-plugin/package.json b/dtc-mysql-plugin/package.json index fb19327..9952621 100644 --- a/dtc-mysql-plugin/package.json +++ b/dtc-mysql-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@cgauge/dtc-mysql-plugin", - "version": "0.10.6", + "version": "0.10.7", "description": "MySQL plugin for Declarative TestCases", "repository": { "type": "git", diff --git a/dtc-playwright-plugin/package.json b/dtc-playwright-plugin/package.json index 2ff04fc..da4ab1e 100644 --- a/dtc-playwright-plugin/package.json +++ b/dtc-playwright-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@cgauge/dtc-playwright-plugin", - "version": "0.10.6", + "version": "0.10.7", "description": "Playwright plugin for Declarative TestCases", "repository": { "type": "git", diff --git a/dtc-playwright-plugin/src/playwright-plugin.ts b/dtc-playwright-plugin/src/playwright-plugin.ts index 4fc81c7..15088c5 100644 --- a/dtc-playwright-plugin/src/playwright-plugin.ts +++ b/dtc-playwright-plugin/src/playwright-plugin.ts @@ -2,7 +2,7 @@ import {Page, expect, Locator} from '@playwright/test' import {is, unknown, record, union, optional, TypeFromSchema} from '@cgauge/type-guard' const PlaywrightActionTarget = { - name: union('getByTestId', 'getByPlaceholder', 'getByText', 'getByTitle', 'getByLabel'), + name: String, args: [unknown], } @@ -46,8 +46,8 @@ const executeActions = async (actions: PlaywrightAction[], page: Page) => { element = page.getByTestId(act.target) } } else { - if (typeof page[act.target.name] === 'function') { - element = page[act.target.name].apply(page, act.target.args as [string]) + if (typeof (page as any)[act.target.name] === 'function') { + element = (page as any)[act.target.name].apply(page, act.target.args as [string]) } } diff --git a/dtc/package.json b/dtc/package.json index 3e738f4..a9fcd1d 100644 --- a/dtc/package.json +++ b/dtc/package.json @@ -1,6 +1,6 @@ { "name": "@cgauge/dtc", - "version": "0.10.6", + "version": "0.10.7", "description": "Declarative TestCases", "repository": { "type": "git", diff --git a/nock-aws/package.json b/nock-aws/package.json index 3f1ab66..e622134 100644 --- a/nock-aws/package.json +++ b/nock-aws/package.json @@ -1,6 +1,6 @@ { "name": "@cgauge/nock-aws", - "version": "0.10.6", + "version": "0.10.7", "description": "AWS Request mocker based on Nock", "repository": { "type": "git", diff --git a/type-guard/package.json b/type-guard/package.json index c4062c2..14617c1 100644 --- a/type-guard/package.json +++ b/type-guard/package.json @@ -1,6 +1,6 @@ { "name": "@cgauge/type-guard", - "version": "0.10.6", + "version": "0.10.7", "description": "Typescript type guards", "repository": { "type": "git", diff --git a/yaml/package.json b/yaml/package.json index 3a90770..f5cf139 100644 --- a/yaml/package.json +++ b/yaml/package.json @@ -1,6 +1,6 @@ { "name": "@cgauge/yaml", - "version": "0.10.6", + "version": "0.10.7", "description": "YAML parser with extra tags", "repository": { "type": "git",