Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions locators/dashboard_locators.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from locators.base_locators import BaseLocators


class DashboardLocators(BaseLocators):
@staticmethod
def folder_with_icon(folder_name):
return f"tr:has-text('{folder_name}') [class*='folder']"

This file was deleted.

21 changes: 21 additions & 0 deletions tests/new_item/test_folder_has_distinct_icon_on_dashboard_ya.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import allure
from pages.base_page import BasePage
from utils.generators.project_generator import ProjectGenerator
from locators.dashboard_locators import DashboardLocators


@allure.title("TC_01.002.05 | New Item > Folder > Verify folder has a distinct icon on the dashboard")
def test_tc_01_002_05_folder_has_distinct_icon(page, create_job, open_page):

folder_name = ProjectGenerator.generate_folder_name()
create_job(folder_name, job_type="folder")
base_page = open_page(BasePage, "/")

locator = DashboardLocators.folder_with_icon(folder_name)
assert base_page.page.locator(locator).is_visible()