'Scenario: An event should be recorded when the "Account Settings"
page is viewed.
Given that I am a registered user
And I visit my account settings page
Then a page view analytics event should be recorded'

def test_page_view_event(self):

    actual_events = self.wait_for_events(event_filter={'event_type': 'edx.user.settings.viewed'}, number_of_matches=1)
    self.assert_events_match([{'event': {'user_id': self.user_id, 'page': 'account', 'visibility': None}}], actual_events)
