Skip to content

Commit

Permalink
test(unit): restore coverage for expectTwo.
Browse files Browse the repository at this point in the history
Restore lines coverage after removed an obsolete test in a previous commit.
  • Loading branch information
asafkorem committed Mar 16, 2024
1 parent 6046691 commit 491860f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions detox/src/ios/expectTwo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,23 @@ describe('expectTwo', () => {
expect(testCall).toDeepEqual(jsonOutput);
});

it(`should parse web.element(by.web.name('someValue')).selectAllText()`, async () => {
const testCall = await e.web.element(e.by.web.name('someValue')).selectAllText();

const jsonOutput = {
invocation: {
type: 'webAction',
webAction: 'selectAllText',
webPredicate: {
type: 'name',
value: 'someValue'
}
}
};

expect(testCall).toDeepEqual(jsonOutput);
});

it(`should parse web.element(by.web.id('webViewId')).scrollToView()`, async () => {
const testCall = await e.web.element(e.by.web.id('webViewId')).scrollToView();

Expand Down

0 comments on commit 491860f

Please sign in to comment.