'Test that if user sorting preference is changing properly.'

@skip_if_browser('chrome')
def test_change_sort_preference(self):

    selected_sort = ''
    for sort_type in ['votes', 'comments', 'activity']:
        self.assertNotEqual(selected_sort, sort_type)
        self.sort_page.change_sort_preference(sort_type)
        selected_sort = self.sort_page.get_selected_sort_preference()
        self.assertEqual(selected_sort, sort_type)
