Skip to content

Commit a5000a8

Browse files
committed
Fixes issues
1 parent dfa9b1e commit a5000a8

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

.eslintignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
.eslintrc.json
1+
.eslintrc.json
2+
scripts/release.js
3+
/playwright-report

.eslintrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"no-nested-ternary": "off",
5858
"no-shadow": "off",
5959
"@typescript-eslint/no-empty-function": "off",
60+
"@typescript-eslint/no-explicit-any": "off",
6061
"@typescript-eslint/no-use-before-define": [
6162
"error"
6263
],

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/release.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable */
1+
// eslint-disable
22
const fs = require('fs');
33
const { execSync } = require('child_process');
44
const readline = require('readline').createInterface({

src/web/abilities/BrowseTheWeb.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export class BrowseTheWeb extends Ability {
220220
* @param text the text to check.
221221
* @param options (optional) advanced selector lookup options.
222222
*/
223-
public async checkSelectorText(selector: string, text: string | RegExp | (string | RegExp)[], mode: 'has' | 'hasNot', options?: SelectorOptions): Promise<boolean> {
223+
public async checkSelectorText(selector: Selector, text: string | RegExp | (string | RegExp)[], mode: 'has' | 'hasNot', options?: SelectorOptions): Promise<boolean> {
224224
if (mode === 'has') {
225225
await expect(await recursiveLocatorLookup({ page: this.page, selector, options: { ...options, state: 'visible' } })).toHaveText(text, { timeout: options?.timeout });
226226
} else {
@@ -236,7 +236,7 @@ export class BrowseTheWeb extends Ability {
236236
* @param value the single value to check.
237237
* @param options (optional) advanced selector lookup options.
238238
*/
239-
public async checkSelectorValue(selector: string, value: string | RegExp, mode: 'has' | 'hasNot', options?: SelectorOptions): Promise<boolean> {
239+
public async checkSelectorValue(selector: Selector, value: string | RegExp, mode: 'has' | 'hasNot', options?: SelectorOptions): Promise<boolean> {
240240
if (mode === 'has') {
241241
await expect(await recursiveLocatorLookup({ page: this.page, selector, options: { ...options, state: 'visible' } })).toHaveValue(value, { timeout: options?.timeout });
242242
} else {

0 commit comments

Comments
 (0)