I'm migrating my karma-ng-scenario
tests suite to protractor. I would like to do something like
// karma-ng-scenario
expect(element('legend').text()).not().toBe("LOGIN_CONNECT");
in the protractor way. But it seems there isn't a not()
function.
I'm using angular-translate
to bind the LONGIN_CONNECT string into multiple languages and I want to test if the string is translated.
More globally, is there a a way test if something is different ? ... don't have a class, don't exists on the page, is not selected, ...
not
jasmine function and thenot()
karma function ! It works fine with expect(web.findElement(by.tagName('legend')).getText()).not.toMatch("LOGIN_CONNECT"); – Fijian