I have a setting in my angular based website that turns a dropdown on and off. If it is off, then it does not show on the main page.
With Protractor, I need to check to
stalenessOf
may be a good way to go: Protractor -
ExpectedConditions.stalenessOf
For example you have a modal that is currently open. You close it and expect it to not be present:
element(by.css('.modal-dialog .cancel-button')).click();
browser.wait(EC.stalenessOf(element(by.css('.modal-dialog')), 60000);
expect(element(by.css('.modal-dialog')).isPresent()).toBeFalsy();