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

chore(test): remove jasmine addMatcher test #5072

Merged
merged 1 commit into from
Dec 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions spec/basic/locators_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,6 @@ describe('locators', () => {
expect(await greeting.getText()).toEqual('Hiya');
});

// TODO(selenium4): fix/remove xit after removing jasminewd
xit('should allow custom expectations to expect an element', async() => {
jasmine.addMatchers({
toHaveText: () => {
return {
compare: async(actual, expected) => {
return {
pass: (await actual.getText()) === expected
};
}
};
}
});

expect(await element(by.binding('greeting'))).toHaveText('Hiya');
});

it('should find a binding by partial match', async() => {
const greeting = element(by.binding('greet'));

Expand Down