I am using protractor jasmine for e2e test of an angular single page application. Consider the following code snippet.
describe('Search', function(){
it('Should Open the search modal popup', function() {
//code
expect(modalOpened).toBe(true)
})
it('Search should return results', function(){
})
it('Search should not return results', function() {
})
})
In the above the example if Should Open the search modal popup
fails then specs below Should Open the search modal popup
and Should Open the search modal popup
will also fail, because the modal itself is not open. So there is no point in running the below specs. Can I conditionally run the last two specs? Like only if the first spec has passed, the below specs should run.