From 9d510dbdfba19afd19ca165b7029006d919fe003 Mon Sep 17 00:00:00 2001 From: Craig Nishina Date: Thu, 6 Dec 2018 02:22:19 -0800 Subject: [PATCH] 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. --- spec/basic/locators_spec.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/spec/basic/locators_spec.js b/spec/basic/locators_spec.js index 4c064d2ac..ba51cac86 100644 --- a/spec/basic/locators_spec.js +++ b/spec/basic/locators_spec.js @@ -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'));