-
Notifications
You must be signed in to change notification settings - Fork 2
/
test_post_footer.py
57 lines (46 loc) · 1.4 KB
/
test_post_footer.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import WPPost
from BaseTest import BaseTest
# TestFooter
# Written by Angela Korra'ti
# Last updated 7/19/2023
#
# This class conducts tests against the footer on a post of my test WordPress site.
class TestPostFooter(BaseTest):
wp_footer = None
def setup_method(self):
"""
Do setup for the test cases.
"""
super().setup_method()
self.driver.get(self.wp_lib.wp_post_uri)
self.wp_footer = WPPost.WPPost(self.driver, self.wp_lib).wp_footer
def test_site_title(self):
"""
Verify the footer site title on a post
"""
self.wp_footer.verify_site_title()
def test_wordpress(self):
"""
Verify the footer WordPress element on a post
"""
self.wp_footer.verify_wordpress()
def test_social_facebook(self):
"""
Verify the footer Facebook element on a post
"""
self.wp_footer.verify_social_facebook()
def test_social_mastodon(self):
"""
Verify the footer Mastodon element on a post
"""
self.wp_footer.verify_social_mastodon()
def test_social_github(self):
"""
Verify the footer GitHub element on a post
"""
self.wp_footer.verify_social_github()
def test_social_linkedin(self):
"""
Verify the footer LinkedIn element on a post
"""
self.wp_footer.verify_social_linkedin()