This chapter discusses assertions. In automation, the validations in test scripts are known as
assertions. Node.js has a built-in assertion library that is called as follows:
const assert = require(assert). No installation is required. However, Protractor uses Jasmine’s assertions to perform validations. You will look at the following examples in this chapter.
Expected result is equal to the actual result
Expected result is the actual result
Expected result is positive
Expected result is negative
Negative ...