forked from mozilla/mcom-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_about.py
37 lines (32 loc) · 1.36 KB
/
test_about.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/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 selenium import selenium
from unittestzero import Assert
from pages.desktop.about import AboutPage
class TestAbout:
def test_about_images(self, mozwebqa):
self.selenium = mozwebqa.selenium
about_pg = AboutPage(mozwebqa)
about_pg.open("/en-US/about/")
Assert.true(about_pg.participate_image)
Assert.true(about_pg.communications_image)
Assert.true(about_pg.careers_image)
Assert.true(about_pg.partnerships_image)
Assert.true(about_pg.legal_image)
Assert.true(about_pg.contact_us_image)
Assert.true(about_pg.store_image)
Assert.true(about_pg.blog_image)
def test_about_text(self, mozwebqa):
self.selenium = mozwebqa.selenium
about_pg = AboutPage(mozwebqa)
about_pg.open("/en-US/about/")
Assert.true(about_pg.participate_text)
Assert.true(about_pg.communications_text)
Assert.true(about_pg.careers_text)
Assert.true(about_pg.partnerships_text)
Assert.true(about_pg.legal_text)
Assert.true(about_pg.contact_us_text)
Assert.true(about_pg.store_text)
Assert.true(about_pg.blog_text)