Skip to content

Commit d9007c9

Browse files
BCSS-20581 wip
1 parent e41fb01 commit d9007c9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import pytest
2+
from playwright.sync_api import Page, expect
3+
from pages.base_page import BasePage
4+
from pages.communication_production.communications_production_page import (
5+
CommunicationsProductionPage,
6+
)
7+
from pages.communication_production.batch_list_page import ActiveBatchListPage
8+
from utils.user_tools import UserTools
9+
10+
11+
@pytest.fixture(scope="function", autouse=True)
12+
def before_each(page: Page):
13+
"""
14+
Before every test is executed, this fixture logs in to BCSS as a test user and navigates to the
15+
reports page
16+
"""
17+
# Log in to BCSS
18+
UserTools.user_login(page, "Hub Manager State Registered at BCS01")
19+
20+
# Go to active batch list page via the communications production page
21+
BasePage(page).go_to_communications_production_page()
22+
CommunicationsProductionPage(page).go_to_active_batch_list_page()
23+
24+
25+
@pytest.mark.regression
26+
def test_headings_on_active_batch_list_screen(page: Page) -> None:
27+
"""
28+
Confirms that the active batch list table contains a sortable and filterable column for "ID", "Type", "Original",
29+
"Event Code", "Description", "Batch Split By", "Screening Centre", "Status", "Priority", "Deadline" and "Count"
30+
"""
31+
# Active batch list page loads as expected
32+
ActiveBatchListPage(page).verify_deadline_date_filter_input

0 commit comments

Comments
 (0)