'Scenario: Ensure the user is able to hide previews of XBlocks.
Given that I have a library in Studio with 40 XBlocks
Then previews are visible
And when I click the toggle previews button
Then the previews will not be visible
And when I click the toggle previews button
Then the previews are visible'

def test_previews(self):

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