Skip to content

Commit

Permalink
Reformatted webElement.test-d.ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajit20 committed Feb 22, 2024
1 parent 700a6d1 commit 35ce340
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/tests/webElement.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('new element() api', function () {
const elementFindByRole = browser.element.findByRole('heading', {level: 2, expanded: true, retryInterval: 100});
expectType<ScopedElement>(elementFindByRole);
browser.element.findByRole('button', {current: false, expanded: true, index: 2});
expectError(browser.element.findByRole('button', { level: 2, expanded: true, retryInterval: 100 }));
expectError(browser.element.findByRole('button', {level: 2, expanded: true, retryInterval: 100}));

const elementFindByPlaceholderText = browser.element.findByPlaceholderText('some-text', {exact: true, abortOnFailure: false});
expectType<ScopedElement>(elementFindByPlaceholderText);
Expand Down Expand Up @@ -157,12 +157,12 @@ describe('new element() api', function () {
expectType<Promise<WebElement>>(elem.submit());
expectType<Promise<WebElement>>(elem.setProperty('type', 'text'));
expectType<Promise<WebElement>>(elem.setAttribute('role', 'button'));
expectType<Promise<WebElement>>(elem.dragAndDrop({ xOffset: 150, yOffset: 500 }));
expectType<Promise<WebElement>>(elem.dragAndDrop({xOffset: 150, yOffset: 500}));
expectType<Promise<WebElement>>(elem.moveTo(100, 100));
expectType<Promise<WebElement>>(elem.clickAndHold());
expectType<Promise<WebElement>>(elem.doubleClick());
expectType<Promise<WebElement>>(elem.rightClick());
expectType<Promise<WebElement>>(elem.waitUntil('visible', { timeout: 5000 }));
expectType<Promise<WebElement>>(elem.waitUntil('visible', {timeout: 5000}));
expectType<Promise<boolean>>(elem.isVisible());
});

Expand Down

0 comments on commit 35ce340

Please sign in to comment.