Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit f4843d1

Browse files
authored
cleanup(types): Fix webelement.then() return type. (#3739)
Fixes #3696. Also clean up the restart spec test.
1 parent 6b7b6fb commit f4843d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/element.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ export class ElementArrayFinder extends WebdriverWebElement {
476476
* an array of ElementFinders represented by the ElementArrayFinder.
477477
*/
478478
then(fn?: (value: any) => any | wdpromise.IThenable<any>, errorFn?: (error: any) => any):
479-
wdpromise.Promise<any[]> {
479+
wdpromise.Promise<any> {
480480
if (this.actionResults_) {
481481
return this.actionResults_.then(fn, errorFn);
482482
} else {

spec/basic/restart_spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('browser.restart', function() {
88
browser.get('https://google.com/');
99
});
1010

11-
afterAll(() => {
11+
afterAll(function() {
1212
browser.ignoreSynchronization = false;
1313
});
1414
});

0 commit comments

Comments
 (0)