Skip to content

Commit

Permalink
Test filters - program selected
Browse files Browse the repository at this point in the history
  • Loading branch information
szymon-kellton committed May 16, 2024
1 parent 423f4f5 commit bebf79f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions backend/selenium_tests/filters/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,5 +223,6 @@ def test_filters_selected_program(self, login, create_programs, filters: Filters
var_name = "".join(var_name) # type: ignore
print(f"filters.{var_name}, ")
list_locators.append(f'{i.tag_name}[data-cy="{i.get_attribute("data-cy")}"]')
print(list_locators)
for locator in programs[nav_menu]:
assert locator in list_locators
12 changes: 7 additions & 5 deletions backend/selenium_tests/page_object/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class Filters(BaseComponents):
indFiltersFlags = 'div[data-cy="ind-filters-flags"]'
indFiltersOrderBy = 'div[data-cy="ind-filters-order-by"]'
indFiltersStatus = 'div[data-cy="ind-filters-status"]'
indFiltersRegDateFrom = 'div[data-cy="ind-filters-reg-data-from"]'
indFiltersRegDateTo = 'div[data-cy="ind-filters-reg-data-to"]'
datePickerFilterFrom = 'div[data-cy="date-picker-filter-from"]'
datePickerFilterTo = 'div[data-cy="date-picker-filter-to"]'
indFiltersRegDateFrom = 'div[data-cy="ind-filters-reg-date-from"]'
indFiltersRegDateTo = 'div[data-cy="ind-filters-reg-date-to"]'
datePickerFilterFrom = 'div[data-cy="date-picker-filter-From"]'
datePickerFilterTo = 'div[data-cy="date-picker-filter-To"]'
filterFsp = 'div[data-cy="filter-fsp"]'
filterModality = 'div[data-cy="filter-modality"]'
filterModality = 'div[data-cy="filter-Modality"]'
filtersStatus = 'div[data-cy="filters-status"]'
filtersSector = 'div[data-cy="filters-sector"]'
dataPickerFilter = 'div[data-cy="date-picker-filter"]'
Expand Down Expand Up @@ -68,6 +68,8 @@ class Filters(BaseComponents):
selectFilter = 'div[data-cy="select-filter"]'
filtersEndDate = 'div[data-cy="filters-end-date"]'
filtersStartDate = 'div[data-cy="filters-start-date"]'
filterEndDate = 'div[data-cy="filter-end-date"]'
filterStartDate = 'div[data-cy="filter-start-date"]'
assignedToInput = 'div[data-cy="Assigned To-input"]'
filtersIssueType = 'div[data-cy="filters-issue-type"]'
filterImportDateRangeMin = 'div[data-cy="filter-import-date-range-min"]'
Expand Down

0 comments on commit bebf79f

Please sign in to comment.