-
Notifications
You must be signed in to change notification settings - Fork 2
/
test_post_sidebar_links.py
50 lines (41 loc) · 1.61 KB
/
test_post_sidebar_links.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
import WPPost
from BaseTest import BaseTest
# TestPostSidebarLinks
# Written by Angela Korra'ti
# Last updated 7/19/2023
#
# This class conducts tests against the sidebar of my test WordPress site.
class TestPostSidebarLinks(BaseTest):
wp_sidebar = 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_sidebar = WPPost.WPPost(self.driver, self.wp_lib).wp_sidebar
def test_recent_posts_link_click(self):
"""
Verify clicking the first link in the Recent Posts links goes to the expected post from a post
"""
self.wp_sidebar.verify_recent_posts_link_click()
def test_recent_comments_link_click(self):
"""
Verify clicking the first link in the Recent Comments links goes to the expected comment from a post
"""
self.wp_sidebar.verify_recent_comments_link_click()
def test_archives_link_click(self):
"""
Verify clicking the first link in the Archives links goes to the expected archives page from a post
"""
self.wp_sidebar.verify_archives_link_click()
def test_categories_link_click(self):
"""
Verify clicking the first link in the Categories links goes to the expected category page from a post
"""
self.wp_sidebar.verify_categories_link_click()
def test_meta_login_link_click(self):
"""
Verify clicking on the first link in the Meta links goes to the login page from a post
"""
self.wp_sidebar.verify_meta_login_link_click()