'Scenario: Ensure preview state persists between page loads.
Given that I have a library in Studio with 40 XBlocks
Then previews are visible
And when I click the toggle previews button
And I revisit the page
Then the previews will not be visible'

def test_preview_state_persistance(self):

    self.assertTrue(self.lib_page.are_previews_showing())
    self.lib_page.toggle_previews()
    self.lib_page.visit()
    self.lib_page.wait_until_ready()
    self.assertFalse(self.lib_page.are_previews_showing())
