InterviewSolution
| 1. |
How To Assert Something In Protractor? |
|
Answer» It depends on the ASSERTION FRAMEWORK you’re using. In general, most of the e2e IMPLEMENTATION done is based out of the default JASMINE 2.0, which provides the assertion in this format expect (something).toEqual (someotherthing). In case you’re using Mocha with a Chai as the assertion engine, you can use either of the THREE assertion types provided by Chai as
It depends on the assertion framework you’re using. In general, most of the e2e implementation done is based out of the default Jasmine 2.0, which provides the assertion in this format expect (something).toEqual (someotherthing). In case you’re using Mocha with a Chai as the assertion engine, you can use either of the three assertion types provided by Chai as |
|