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

Commit 3b7a3f7

Browse files
authored
chore(test): remove jasmine addMatcher test (#5072)
- Removing the addMatchers test since we no longer support async calls resolve with jasminewd since we removed jasminewd. Also Jasmine does not appear to support async calls in custom expectations or the compare method.
1 parent fb828ad commit 3b7a3f7

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

spec/basic/locators_spec.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,6 @@ describe('locators', () => {
1010
expect(await greeting.getText()).toEqual('Hiya');
1111
});
1212

13-
// TODO(selenium4): fix/remove xit after removing jasminewd
14-
xit('should allow custom expectations to expect an element', async() => {
15-
jasmine.addMatchers({
16-
toHaveText: () => {
17-
return {
18-
compare: async(actual, expected) => {
19-
return {
20-
pass: (await actual.getText()) === expected
21-
};
22-
}
23-
};
24-
}
25-
});
26-
27-
expect(await element(by.binding('greeting'))).toHaveText('Hiya');
28-
});
29-
3013
it('should find a binding by partial match', async() => {
3114
const greeting = element(by.binding('greet'));
3215

0 commit comments

Comments
 (0)