Skip to content

Commit

Permalink
Add: Types Test for new api- WebElement
Browse files Browse the repository at this point in the history
  • Loading branch information
its-kunal committed Feb 29, 2024
1 parent d1a02f0 commit e4579ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/tests/webElement.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ describe('new element() api', function () {

expectType<ScopedElement>(elem.find('selector'));
expectType<ScopedElement>(elem.get('selector'));
expectType<ScopedElement>(elem.findElement('selector'));

expectType<ScopedElement>(elem.findByText('some-text', {exact: true, abortOnFailure: false}));

Expand All @@ -115,6 +116,7 @@ describe('new element() api', function () {

expectType<Elements>(elem.findAll('selector'));
expectType<Elements>(elem.getAll('selector'));
expectType<Elements>(elem.findElements('selector'));

expectType<Elements>(elem.findAllByText('some-text', {exact: true, abortOnFailure: false}));

Expand Down

0 comments on commit e4579ba

Please sign in to comment.