As a relatively new protractor e2e testing user, I am facing a challenge with testing a non-angular (knockout) page. The specific test case involves a kendo grid that initially loads with default data, but when a checkbox is clicked, it should reload with different data.
My goal is to test the scenario where the grid successfully reloads with the new data after the checkbox click.
I have tried using
browser.wait(element(by.id('some-element')).isPresent)
, but this element already exists when the grid has the default data. As a workaround, I have used browser.driver.sleep(2000)
to allow time for the page to reload after the checkbox click. However, I realize that this explicit wait approach is not ideal. Can anyone provide guidance or suggest a better pattern for handling this situation? Any assistance would be greatly appreciated.