-
Notifications
You must be signed in to change notification settings - Fork 2
/
test_homepage_submenus.py
74 lines (61 loc) · 2.06 KB
/
test_homepage_submenus.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import WPHomepage
from BaseTest import BaseTest
# TestHomepageMenu
# Written by Angela Korra'ti
# Last updated 7/20/2023
#
# This class conducts tests against the submenus on the homepage of my test WordPress site.
class TestHomepageSubmenus(BaseTest):
wp_menu = None
def setup_method(self):
"""
Do setup for the test cases.
"""
super().setup_method()
self.driver.get(self.wp_lib.wp_base_uri)
self.wp_menu = WPHomepage.WPHomepage(self.driver, self.wp_lib).wp_menu
def test_home_submenu(self):
"""
Verify all aspects of the Home submenu on the homepage
"""
self.wp_menu.verify_home_submenu()
def test_books_submenu(self):
"""
Verify all aspects of the Books submenu on the homepage
"""
self.wp_menu.verify_books_submenu()
def test_faerie_submenu(self):
"""
Verify the Faerie Blood item on the Books submenu on the homepage
"""
self.wp_menu.verify_faerie_submenu()
def test_bone_submenu(self):
"""
Verify the Bone Walker item on the Books submenu on the homepage
"""
self.wp_menu.verify_bone_submenu()
def test_valor_submenu(self):
"""
Verify the Valor of the Healer item on the Books submenu on the homepage
"""
self.wp_menu.verify_valor_submenu()
def test_vengeance_submenu(self):
"""
Verify the Vengeance of the Hunter item on the Books submenu on the homepage
"""
self.wp_menu.verify_vengeance_submenu()
def test_victory_submenu(self):
"""
Verify the Victory of the Hawk item on the Books submenu on the homepage
"""
self.wp_menu.verify_victory_submenu()
def test_short_submenu(self):
"""
Verify the Short Stories item on the Books submenu on the homepage
"""
self.wp_menu.verify_short_submenu()
def test_store_submenu(self):
"""
Verify the Store submenu on the homepage
"""
self.wp_menu.verify_store_submenu()