-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_hord.py
More file actions
19 lines (14 loc) · 717 Bytes
/
test_hord.py
File metadata and controls
19 lines (14 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import allure
from fixtures.hordSetup import hord_setup
from pages.hordPage import HordPage
from utils.screenshot import captureScreenshot
@allure.title("Verify Hord sidebar expands & collapses")
@allure.description("Should toggle sidebar & verify sidebar toggled states")
@allure.link("https://staging-app.hord.fi", name="Hord app Website")
def test_hord(hord_setup):
HordPage.verifySidebarToggledState()
HordPage.toggleSidebar()
HordPage.verifySidebarToggledState(captureScreenshot)
# Toggling the sidebar a 2nd time to verify transitioning to both expanded & collapsed states
HordPage.toggleSidebar()
HordPage.verifySidebarToggledState(captureScreenshot)