Skip to content

Commit 2410bb3

Browse files
author
Victor Soares
committed
Updated click method and removed redundant imports
1 parent 2085060 commit 2410bb3

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

pages/cognito_login_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ def login_as_user(self, username: str, password: str) -> None:
2020
# Retrieve and enter password from .env file
2121
self.password.fill(password)
2222
# Click Submit
23-
self.submit_button.click()
23+
self.click(self.submit_button)

pages/log_out_page.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from playwright.sync_api import Page, expect
2-
from pages.base_page import BasePage
32
import logging
43
from pages.base_page import BasePage
54

@@ -15,6 +14,6 @@ def verify_log_out_page(self)->None:
1514

1615
def log_out(self)->None:
1716
logging.info("Test Complete - Logging Out")
18-
BasePage(self.page).click_log_out_link()
17+
self.click_log_out_link()
1918
expect(self.log_out_msg).to_be_visible()
2019
self.page.close()

tests/test_bcss_19181_users_permit_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
22
from playwright.sync_api import Page
33
from utils.user_tools import UserTools
4-
from pages import (login_page as login, log_out_page as logout, login_failure_screen as login_failure, base_page as bcss_home)
4+
from pages import (log_out_page as logout, login_failure_screen as login_failure, base_page as bcss_home)
55
from utils.oracle.oracle import OracleDB
66

77

0 commit comments

Comments
 (0)