Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Fix tests for major destinations in 'About' page. #143

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions pages/desktop/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,33 @@ def go_to_page(self):
major_links_list = [
{
'locator': (By.CSS_SELECTOR, '#main-content ul.links:nth-of-type(1) li:nth-child(1) a'),
'url_suffix': '/mission/',
'url_suffix': 'careers.mozilla.org/',
}, {
'locator': (By.CSS_SELECTOR, '#main-content ul.links:nth-of-type(1) li:nth-child(2) a'),
'url_suffix': 'careers.mozilla.org/',
'url_suffix': 'blog.mozilla.org/press/',
}, {
'locator': (By.CSS_SELECTOR, '#main-content ul.links:nth-of-type(1) li:nth-child(3) a'),
'url_suffix': 'blog.mozilla.org/',
}, {
'locator': (By.CSS_SELECTOR, '#main-content ul.links:nth-of-type(1) li:nth-child(4) a'),
'url_suffix': '/styleguide',
'url_suffix': '/privacy/',
}, {
'locator': (By.CSS_SELECTOR, '#main-content ul.links:nth-of-type(1) li:nth-child(5) a'),
'url_suffix': '/about/contact',
'url_suffix': '/about/forums/',
}, {
'locator': (By.CSS_SELECTOR, '#main-content ul.links:nth-of-type(2) li:nth-child(1) a'),
'url_suffix': '/products/',
'url_suffix': '/firefox/brand/',
}, {
'locator': (By.CSS_SELECTOR, '#main-content ul.links:nth-of-type(2) li:nth-child(2) a'),
'url_suffix': '/contribute/',
'url_suffix': '/about/partnerships',
}, {
'locator': (By.CSS_SELECTOR, '#main-content ul.links:nth-of-type(2) li:nth-child(3) a'),
'url_suffix': 'blog.mozilla.org/press/',
'url_suffix': '/about/contact',
}, {
'locator': (By.CSS_SELECTOR, '#main-content ul.links:nth-of-type(2) li:nth-child(4) a'),
'url_suffix': '/privacy/',
'url_suffix': '/contribute/',
}, {
'locator': (By.CSS_SELECTOR, '#main-content ul.links:nth-of-type(2) li:nth-child(5) a'),
'url_suffix': '/about/partnerships',
'url_suffix': '/about/governance.html',
}
]