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'));