Hi,
I'm working on a test for a scheduling part of our app in which I do the following steps:
1. Create a shift
2. Verify that the shift was created.
3. Delete the shift
4. Verify that the shift was deleted.
I am using the page object pattern and I have a selector in my page for the shift like:
newShift { $('.newShiftClass') }
I am able to verify when a new shift is created in my test by:
newShift != null
When I try to verify that the shift was deleted by:
newShift == null
An geb.error.RequiredPageContentNotPresent exception is thrown and the test fails.
I can, however, use the selector in my test like:
$('.newShiftClass') == null
And the test will pass and no exceptions will be thrown.
It seems to me that this might be a bug in Geb, but I'm not sure. Does anyone have any advice?