[Merge] lp:~canonical-platform-qa/webbrowser-app/autopilot-back-forward into lp:webbrowser-app

Olivier Tilloy olivier.tilloy at canonical.com
Thu Dec 18 09:39:24 UTC 2014


Review: Needs Fixing

The changes you made to test_opening_new_page_enables_back_button() and test_navigating_back_enables_forward_button() are not semantically equivalent:

141	-        self.assertThat(back_button.enabled, Eventually(Equals(True)))
143	+        self.main_window.go_back()
144	+        self.assert_home_page_eventually_loaded()

We don’t want to actually go back, we only want to verify that the back button is *eventually* enabled (which the go_back() method doesn’t do). And the is_back_button_enabled() method doesn’t contemplate a possible delay (that would translate into the use of an Eventually() matcher).
-- 
https://code.launchpad.net/~canonical-platform-qa/webbrowser-app/autopilot-back-forward/+merge/244665
Your team Ubuntu Phablet Team is subscribed to branch lp:webbrowser-app.



More information about the Ubuntu-reviews mailing list