'Scenario: Visiting the create team page should fire a page viewed event.
Given I am enrolled in a course with a team configuration and a topic
When I visit the create team page
Then my browser should post a page viewed event'

def test_page_viewed_event(self):

    events = [{'event_type': 'edx.team.page_viewed', 'event': {'page_name': 'new-team', 'topic_id': self.topic['id'], 'team_id': None}}]
    with self.assert_events_match_during(self.only_team_events, expected_events=events):
        self.verify_and_navigate_to_create_team_page()
