'Test checks create/delete volume snapshot action
Steps:
1. Login to Horizon Dashboard
2. Navigate to Project -> Compute -> Volumes page
3. Create snapshot for existed volume
4. Check that no ERROR appears
5. Check that snapshot is in the list
6. Check that snapshot has reference to correct volume
7. Edit snapshot name and description
8. Delete volume snapshot from proper page
9. Check that volume snapshot not in the list'

def test_create_edit_delete_volume_snapshot(self):

    volumes_page = self.home_pg.go_to_compute_volumes_volumespage()
    volumes_snapshot_page = volumes_page.create_volume_snapshot(self.VOLUME_NAME, self.VOLUME_SNAPSHOT_NAME)
    self.assertTrue(volumes_page.find_message_and_dismiss(messages.INFO))
    self.assertFalse(volumes_page.find_message_and_dismiss(messages.ERROR))
    self.assertTrue(volumes_snapshot_page.is_volume_snapshot_available(self.VOLUME_SNAPSHOT_NAME))
    actual_volume_name = volumes_snapshot_page.get_volume_name(self.VOLUME_SNAPSHOT_NAME)
    self.assertEqual(self.VOLUME_NAME, actual_volume_name)
    new_name = ('new_' + self.VOLUME_SNAPSHOT_NAME)
    volumes_snapshot_page = self.home_pg.go_to_compute_volumes_volumesnapshotspage()
    volumes_snapshot_page.edit_snapshot(self.VOLUME_SNAPSHOT_NAME, new_name, 'description')
    self.assertTrue(volumes_snapshot_page.find_message_and_dismiss(messages.INFO))
    self.assertFalse(volumes_snapshot_page.find_message_and_dismiss(messages.ERROR))
    self.assertTrue(volumes_snapshot_page.is_volume_snapshot_available(new_name))
    volumes_snapshot_page = self.volumes_snapshot_page
    volumes_snapshot_page.delete_volume_snapshot(new_name)
    self.assertTrue(volumes_snapshot_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(volumes_snapshot_page.find_message_and_dismiss(messages.ERROR))
    self.assertTrue(volumes_snapshot_page.is_volume_snapshot_deleted(new_name))
