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).
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))) window. go_back( ) home_page_ eventually_ loaded( )
143 + self.main_
144 + self.assert_
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).