forked from mozilla/qmo-tests
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mozilla#19 from rbillings/eventspage
Added Events page test
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env python | ||
|
||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
from base import BasePage | ||
|
||
|
||
class EventsPage(BasePage): | ||
|
||
_page_title = u'Events | QMO \u2013 quality.mozilla.org' | ||
|
||
def go_to_events_page(self): | ||
self.selenium.get(self.testsetup.base_url + '/events') | ||
self.is_the_current_page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python | ||
|
||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
import pytest | ||
from unittestzero import Assert | ||
|
||
from pages.events import EventsPage | ||
from pages.home import HomePage | ||
|
||
|
||
class TestEventsPage: | ||
|
||
@pytest.mark.nondestructive | ||
def test_events_title(self, mozwebqa): | ||
home_page = HomePage(mozwebqa) | ||
home_page.go_to_home_page() | ||
events_page = home_page.header_region.click_events_link() | ||
Assert.true(events_page.is_the_current_page) |