components
django_spire.testing.playwright.components
__all__ = ['Accordion', 'AttributeElement', 'AttributeList', 'Breadcrumb', 'Card', 'DeleteModal', 'Dropdown', 'EllipsisDropdown', 'EllipsisModalDropdown', 'EllipsisTableDropdown', 'FilterForm', 'FormCard', 'FormModal', 'InfiniteScroll', 'InfiniteScrollCard', 'InfiniteScrollList', 'InfiniteScrollTable', 'LazyTab', 'Modal', 'NavAccordion', 'NotificationBell', 'SideNavigation', 'ThemeSelector', 'TitleCard', 'TitleModal', 'Toast', 'TopNavigation', 'UserMenu']
module-attribute
Accordion
Playwright component for django_spire/accordion/accordion.html
Source code in django_spire/testing/playwright/components/accordion.py
parent = parent_locator
instance-attribute
content
property
toggle
property
close
is_open
NavAccordion
Bases: Accordion
Playwright component for django_spire/navigation/accordion/nav_accordion.html
Source code in django_spire/testing/playwright/components/accordion.py
chevron
property
icon
property
title
property
get_title_text
AttributeElement
Playwright component for django_spire/element/attribute_element.html
Source code in django_spire/testing/playwright/components/attribute_element.py
container_selector = container_selector
instance-attribute
page = page
instance-attribute
container
property
get_attribute_by_title
get_value_by_title
get_value_href_by_title
Source code in django_spire/testing/playwright/components/attribute_element.py
has_attribute
AttributeList
Helper for pages with multiple attribute elements
Source code in django_spire/testing/playwright/components/attribute_element.py
container_selector = container_selector
instance-attribute
page = page
instance-attribute
container
property
attributes
property
get_all_titles
get_attribute_count
get_values_dict
Source code in django_spire/testing/playwright/components/attribute_element.py
FilterForm
Playwright component for django_spire/filtering/form/base_session_filter_form.html
Source code in django_spire/testing/playwright/components/base_session_filter_form.py
form_selector = form_selector
instance-attribute
page = page
instance-attribute
clear_button
property
filter_button
property
form
property
search_button
property
search_input
property
clear
fill_field
filter
get_field_value
search
select_option
Breadcrumb
Playwright component for django_spire/element/breadcrumb_element.html
Source code in django_spire/testing/playwright/components/breadcrumb_element.py
page = page
instance-attribute
breadcrumb
property
items
property
click_item
get_item
get_item_count
get_item_href
get_item_text
get_items_text
get_last_item_text
is_item_clickable
Card
Playwright component for django_spire/card/card.html
Source code in django_spire/testing/playwright/components/card.py
FormCard
Bases: TitleCard
Playwright component for django_spire/card/form_card.html
Source code in django_spire/testing/playwright/components/card.py
description
property
form
property
fill_field
get_field_value
InfiniteScrollCard
Bases: TitleCard
Playwright component for django_spire/card/infinite_scroll_card.html
Source code in django_spire/testing/playwright/components/card.py
loaded_count_text
property
scroll_container
property
total_count_text
property
get_loaded_count
get_total_count
TitleCard
Bases: Card
Playwright component for django_spire/card/title_card.html
Source code in django_spire/testing/playwright/components/card.py
button
property
dropdown_content
property
title
property
click_button
get_title_text
has_button
is_dropdown_open
Dropdown
Playwright component for django_spire/dropdown/dropdown.html
Source code in django_spire/testing/playwright/components/dropdown.py
menu_selector = '.position-absolute.shadow-lg.card'
class-attribute
instance-attribute
trigger_selector = '[x-bind="trigger"]'
class-attribute
instance-attribute
parent = parent_locator
instance-attribute
menu
property
trigger
property
click_option
close
get_option
has_option
is_open
EllipsisDropdown
Bases: Dropdown
Playwright component for django_spire/dropdown/ellipsis_dropdown.html
Source code in django_spire/testing/playwright/components/dropdown.py
trigger_selector = '.bi-three-dots-vertical'
class-attribute
instance-attribute
click_delete
click_edit
click_view
has_delete_option
has_edit_option
EllipsisModalDropdown
Bases: EllipsisDropdown
Playwright component for django_spire/dropdown/ellipsis_modal_dropdown.html Dropdown options trigger modals via dispatch_modal_view()
Source code in django_spire/testing/playwright/components/dropdown.py
EllipsisTableDropdown
Bases: EllipsisDropdown
Playwright component for django_spire/dropdown/ellipsis_table_dropdown.html Used in table rows, positioned start-0 instead of end-0
Source code in django_spire/testing/playwright/components/dropdown.py
trigger_selector = 'td .bi-three-dots-vertical'
class-attribute
instance-attribute
InfiniteScroll
Playwright component for django_spire/infinite_scroll/base.html and django_spire/infinite_scroll/scroll.html
Source code in django_spire/testing/playwright/components/infinite_scroll.py
container_selector = container_selector
instance-attribute
page = page
instance-attribute
content_container
property
loaded_count_text
property
scroll_container
property
spinner
property
total_count_text
property
get_loaded_count
get_total_count
is_loading
scroll_to_bottom
scroll_to_top
wait_for_count_to_increase
Source code in django_spire/testing/playwright/components/infinite_scroll.py
InfiniteScrollList
Bases: InfiniteScroll
Playwright component for infinite scroll with list items
Source code in django_spire/testing/playwright/components/infinite_scroll.py
item_selector = '[data-row-id]'
class-attribute
instance-attribute
items
property
get_item
get_item_count
InfiniteScrollTable
Bases: InfiniteScroll
Playwright component for django_spire/table/base.html
Source code in django_spire/testing/playwright/components/infinite_scroll.py
row_selector = 'tbody tr[data-row-id]'
class-attribute
instance-attribute
skeleton_selector = '.skeleton-box'
class-attribute
instance-attribute
rows
property
select_all_checkbox
property
selected_count_text
property
skeleton_rows
property
table
property
click_header
deselect_all_rows
deselect_row
get_first_row_text
get_header
get_row
get_row_count
get_selected_count
get_sort_icon
is_sorted_ascending
is_sorted_descending
select_all_rows
select_row
wait_for_rows_to_load
LazyTab
Playwright component for django_spire/lazy_tab/lazy_tab.html
Source code in django_spire/testing/playwright/components/lazy_tab.py
selected_class = 'tab-item'
class-attribute
instance-attribute
container_selector = container_selector
instance-attribute
page = page
instance-attribute
tab_id = tab_id
instance-attribute
container
property
sections
property
triggers
property
click_tab
get_section
get_section_count
get_trigger
get_trigger_count
get_url_param
get_visible_section
get_visible_section_text
is_loading
is_tab_selected
wait_for_section_content
DeleteModal
Bases: TitleModal
Playwright component for delete confirmation modals
Source code in django_spire/testing/playwright/components/modal.py
cancel_button
property
confirm_button
property
cancel
FormModal
Bases: TitleModal
Playwright component for modals containing forms
Source code in django_spire/testing/playwright/components/modal.py
cancel_button
property
form
property
submit_button
property
cancel
fill_field
get_field_value
Modal
Playwright component for django_spire/modal/modal.html
Source code in django_spire/testing/playwright/components/modal.py
page = page
instance-attribute
close_button
property
content
property
modal
property
overlay
property
close
close_by_overlay
is_open
wait_for_close
TitleModal
Bases: Modal
Playwright component for django_spire/modal/title_modal.html
Source code in django_spire/testing/playwright/components/modal.py
SideNavigation
Playwright component for django_spire/navigation/side_navigation.html
Source code in django_spire/testing/playwright/components/navigation.py
page = page
instance-attribute
container
property
links
property
scroll_container
property
click_link
get_link_by_text
get_link_count
get_link_texts
has_link
TopNavigation
Playwright component for django_spire/navigation/top_navigation.html
Source code in django_spire/testing/playwright/components/navigation.py
page = page
instance-attribute
container
property
notification_bell
property
theme_selector
property
title
property
user_menu
property
click_notification_bell
click_theme_selector
click_user_menu
get_title_text
UserMenu
Playwright component for user dropdown menu in top navigation
Source code in django_spire/testing/playwright/components/navigation.py
page = page
instance-attribute
menu
property
trigger
property
click_admin_panel
click_change_password
click_logout
click_theme_dashboard
is_open
NotificationBell
Playwright component for django_spire/notification/app/element/notification_bell.html
Source code in django_spire/testing/playwright/components/notification_bell.py
page = page
instance-attribute
badge
property
bell
property
dropdown
property
click
get_badge_count
has_badge
has_notifications
is_dropdown_open
is_visible
open_dropdown
ThemeSelector
Playwright component for django_spire/theme/element/theme_selector.html
Source code in django_spire/testing/playwright/components/theme_selector.py
page = page
instance-attribute
icon
property
click
get_current_mode
get_current_theme_family
is_dark_mode
is_light_mode
is_visible
toggle
wait_for_theme_change
Source code in django_spire/testing/playwright/components/theme_selector.py
Toast
Playwright component for django_spire/messages/messages.html