
     +h/                     .    d Z ddlZ G d de          ZdS )z'Helpers for DAL user story based tests.    Nc                   >    e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
 Zd ZdS )Select2StoryzDefine Select2 CSS selectors.z.select2-selection__clearz.select2-containerz.select2-dropdownz.select2-search__fieldz.select2-selection__renderedz7.select2-selection__rendered .select2-selection__choicez'.select2-results__option[aria-selected]z.select2-selectionc                     d}|r=	 | j                             d          S #  t          j        d           Y nxY w|dz  }|=t	          d          )z0Wait for scripts to be loaded and ready to work.d   zyl.registerFunctiong333333?   z+$.select2 was not defined after 15 seconds.)browserevaluate_scripttimesleep	Exception)selftriess     T/var/www/html/e360mart/e360mart_env/lib/python3.11/site-packages/dal_select2/test.pywait_scriptzSelect2Story.wait_script   si     	 |334IJJJ 
3QJE  	 EFFFs     8c                 .    |                     dd          S )z.Remove the "remove" character used in select2.   × )replace)r   labels     r   clean_labelzSelect2Story.clean_label   s    }}VR(((    N)__name__
__module____qualname____doc__clear_selectorcontainer_selectordropdown_selectorinput_selectorlabel_selectorlabels_selectoroption_selectorwidget_selectorr   r    r   r   r   r      sh        ''0N-+-N3NA ?O*O	G 	G 	G) ) ) ) )r   r   )r   r
   objectr   r$   r   r   <module>r&      sH    - - ) ) ) ) )6 ) ) ) ) )r   