diff --git a/test/docs-tests/gauge/tests/htmlElementAPI.ts b/test/docs-tests/gauge/tests/htmlElementAPI.ts index d23cffc02..f58d86bf6 100644 --- a/test/docs-tests/gauge/tests/htmlElementAPI.ts +++ b/test/docs-tests/gauge/tests/htmlElementAPI.ts @@ -40,8 +40,8 @@ export default class HtmlElementAPI { @Step("Navigate to with basic auth and ") public async navigateWithBasicAuth( url: string, - username: any, - password: any, + username: string, + password: string, ) { const encodedCredentials = Buffer.from(`${username}:${password}`).toString( "base64", @@ -63,7 +63,7 @@ export default class HtmlElementAPI { public async selectDropDownValue( value: string | number, dropDownName: string, - fieldValue: any, + fieldValue: string, ) { const box = dropDown(dropDownName); await box.select(value); @@ -99,7 +99,7 @@ export default class HtmlElementAPI { } @Step("Get value of Text Box ") - public async getTextboxValue(text: any, textBoxName: string) { + public async getTextboxValue(text: string, textBoxName: string) { const field = textBox(textBoxName); assert.equal(await field.value(), text); } @@ -111,17 +111,17 @@ export default class HtmlElementAPI { } @Step("Write into Text Box ") - public async writeInto(text: string, textBoxName: any) { + public async writeInto(text: string, textBoxName: string) { await write(text, into(textBoxName)); } @Step("Write into TextBox with name ") - public async writeWithName(text: string, textBoxName: any) { + public async writeWithName(text: string, textBoxName: string) { await write(text, into(textBox({ name: textBoxName }))); } @Step("Write to Text Box ") - public async writeTo(text: string, textBoxName: any) { + public async writeTo(text: string, textBoxName: string) { await write(text, to(textBoxName)); } @@ -169,7 +169,7 @@ export default class HtmlElementAPI { } @Step("Respond to with ") - public async interceptResponse(url: string, responseBody: any) { + public async interceptResponse(url: string, responseBody: string) { await intercept(url, { body: responseBody }); } @@ -179,7 +179,7 @@ export default class HtmlElementAPI { } @Step("Intercept and continue with postData ") - public async interceptRequest(url: string, mockData: any) { + public async interceptRequest(url: string, mockData: string) { await intercept(url, (request) => { request.continue({ postData: mockData }); }); diff --git a/test/docs-tests/gauge/tests/selectors.ts b/test/docs-tests/gauge/tests/selectors.ts index bcb165016..587d9ea60 100644 --- a/test/docs-tests/gauge/tests/selectors.ts +++ b/test/docs-tests/gauge/tests/selectors.ts @@ -3,6 +3,7 @@ import { $, button, link, text, textBox } from "taiko"; function getElementWithSelector(element: string, selector: string) { let selectedElement = null; + // biome-ignore lint: Required for testing let selectedItem; try { selectedItem = JSON.parse(selector);