click_button has no guarantee that any actions triggered by it will have completed when it returns. Because of this you should have an expectation after it that verifies/waits until the action has completed. In the example on page 98 that means moving at least one of the expectations inside the change block. Without that change the test will be flaky with some drivers.
click_button
has no guarantee that any actions triggered by it will have completed when it returns. Because of this you should have an expectation after it that verifies/waits until the action has completed. In the example on page 98 that means moving at least one of the expectations inside thechange
block. Without that change the test will be flaky with some drivers.