diff --git a/test-types/mocha/types-mocha.test.ts b/test-types/mocha/types-mocha.test.ts index 877ecdddf..1b63e886c 100644 --- a/test-types/mocha/types-mocha.test.ts +++ b/test-types/mocha/types-mocha.test.ts @@ -83,6 +83,12 @@ describe('type assertions', () => { }) }) + describe('toHaveHTML', () => { + it('should allow using HTMLOptions', async () => { + expectPromiseVoid = expect(element).toHaveHTML('html', { includeSelectorTag: true }) + }) + }) + describe('element', () => { describe('toBeDisabled', () => { diff --git a/types/expect-webdriverio.d.ts b/types/expect-webdriverio.d.ts index e0f9dd4bf..b9dc171f0 100644 --- a/types/expect-webdriverio.d.ts +++ b/types/expect-webdriverio.d.ts @@ -320,7 +320,7 @@ interface WdioElementOrArrayMatchers<_R, ActualT = unknown> { */ toHaveHTML: FnWhenElementOrArrayLike | Array, - options?: ExpectWebdriverIO.StringOptions + options?: ExpectWebdriverIO.HTMLOptions ) => Promise> /**