+
    5mj3  c                  b   ^ RI Ht ^ RIt^ RIHu Ht ^ RIt^ RI	H
t
 ^ RIHt ]P                  P                  ^ ]! ]
! ]4      P#                  4       P$                  ^,          4      4       ^ RIHtHtHt ^ RIHtHt  ! R R]P4                  4      t ! R	 R
]4      tR;R R lltR R ltR R ltR R lt R R lt!R R lt"R R lt#R R lt$R R lt%R R lt&R R  lt'R! R" lt(R# R$ lt)R% R& lt*R' R( lt+R) R* lt,R+ R, lt-R- R. lt.R/ R0 lt/R1 R2 lt0R3 R4 lt1R5 R6 lt2R7 R8 lt3R9 R: lt4R# )<    )annotationsN)Path)Any)make_account_vmmake_barmake_callbacks)AccountCard_FallbackGtkc                  J   a  ] tR t^tRR V 3R llltR R ltR R ltRtV ;t# )	
_NoShowBoxc                    V ^8  d   QhRRRR/# )   spacingintreturnNone )formats   "d/home/user/overdeck-private-tests/workstation-ai-broad/modules/systray/tests/test_ui_account_card.py__annotate___NoShowBox.__annotate__   s     . .# .d .    c                	D   < \         SV `  WR 7       RV n        . V n        R# ))orientationr   FN)super__init__no_show_allshow_all_states)selfr   r   	__class__s   &&&r   r   _NoShowBox.__init__   s#    [B +-r   c                    V ^8  d   QhRRRR/# )r   r   boolr   r   r   )r   s   "r   r   r      s     - -4 -D -r   c                	&    \        V4      V n        R # N)r"   r   )r   r   s   &&r   set_no_show_all_NoShowBox.set_no_show_all   s    ,r   c                   V ^8  d   QhRR/# r   r   r   r   )r   s   "r   r   r      s     6 6$ 6r   c                	P    V P                   P                  V P                  4       R # r$   )r   appendr   )r   s   &r   show_all_NoShowBox.show_all   s    ##D$4$45r   )r   r   )Nr   )	__name__
__module____qualname____firstlineno__r   r%   r+   __static_attributes____classcell__)r   s   @r   r   r      s    . .
-6 6r   r   c                      ] tR t^t]tRtR# )
_NoShowGtkr   N)r-   r.   r/   r0   r   Boxr1   r   r   r   r4   r4      s    
Cr   r4   c               $    V ^8  d   QhRRRRRR/# )r   vmr   callszlist[tuple[Any, ...]] | Noner   r   r   )r   s   "r   r   r      s'     h hc h6 h+ hr   c                D    \        T \        Ve   TM. 4      \        R7      # )N
gtk_module)r   r   r	   )r7   r8   s   &&r   _cardr<      s    r>53D%"MZfggr   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r   "   s     9 9D 9r   c                 $%   \        R RRR7      p \        V 4      pRq!P                  q3P                  qBV9   qU'       g   \        P
                  ! RV3RW$34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;r4Rq!P                  q3P                  qBV9  qU'       g   \        P
                  ! R V3R!W$34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;r4VP                  qP                  p	R qIV8H  q'       g   \        P
                  ! R"V
3R#W34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rVP                  qP                  p	RqIV8H  q'       g   \        P
                  ! R"V
3R$W34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rVP                  qP                  p	RqIV8H  q'       g   \        P
                  ! R"V
3R%W34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rVP                   qP"                  p	RqIVJ q'       g   \        P
                  ! R&V
3R'W34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rVP                   qP                  p	RqIV8H  q'       g   \        P
                  ! R"V
3R(W34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rRq!P                   q3P                  qBV9   qU'       g   \        P
                  ! RV3R)W$34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;r4VP$                  qP"                  p	RqIVJ q'       g   \        P
                  ! R&V
3R*W34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rRq!P$                  q3P                  qBV9   qU'       g   \        P
                  ! RV3R+W$34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;r4Rq!P$                  q3P                  qBV9   qU'       g   \        P
                  ! RV3R+W$34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;r4VP&                  qP                  p	RqIV8H  q'       g   \        P
                  ! R"V
3R,W34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rVP(                  qP*                  p	RqIV8H  q'       g   \        P
                  ! R"V
3R-W34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rVP,                  qP                  p	RqIV8H  q'       g   \        P
                  ! R"V
3R.W34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rVP.                  qP                  p	RqIV8H  q'       g   \        P
                  ! R"V
3R/W34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rRq!P(                  q3P                  qBV9   qU'       g   \        P
                  ! RV3R0W$34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;r4VP0                  qP                  p	RqIV8H  q'       g   \        P
                  ! R"V
3R1W34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rVP2                  qP                  p	RqIV8H  q'       g   \        P
                  ! R"V
3R2W34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rR# )3WorkmaxT)alias	plan_text
is_defaultzaccount-cardpy1py3cardpy5py7assert %(py9)spy9N	attentionpy0py2py4u   ⟳ 12s agoDEFAULTzdefault-badgeFzhealth-badgeok5hgzG?z58% leftu	   ↺ 2h10mz	quota-bar7dz33% leftinzO%(py1)s in %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s.widget
}.css_classes
}not inzS%(py1)s not in %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s.widget
}.css_classes
}==)zM%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.alias_label
}.text
} == %(py7)szL%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.plan_label
}.text
} == %(py7)szO%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.checked_label
}.text
} == %(py7)siszR%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.default_badge
}.visible
} is %(py7)s)zO%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.default_badge
}.text
} == %(py7)s)zV%(py1)s in %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s.default_badge
}.css_classes
}zQ%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.health_badge
}.visible
} is %(py7)szU%(py1)s in %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s.health_badge
}.css_classes
})zV%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.primary_window_label
}.text
} == %(py7)s)zQ%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.primary_bar
}.fraction
} == %(py7)s)zU%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.primary_value_label
}.text
} == %(py7)s)zU%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.primary_reset_label
}.text
} == %(py7)szT%(py1)s in %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s.primary_bar
}.css_classes
}zX%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.secondary_window_label
}.text
} == %(py7)s)zW%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.secondary_value_label
}.text
} == %(py7)s)r   r<   widgetcss_classes
@pytest_ar_call_reprcompare	_saferepr@py_builtinslocals_should_repr_global_nameAssertionError_format_explanationalias_labeltext
plan_labelchecked_labeldefault_badgevisiblehealth_badgeprimary_window_labelprimary_barfractionprimary_value_labelprimary_reset_labelsecondary_window_labelsecondary_value_labelr7   rF   @py_assert0@py_assert4@py_assert6@py_assert2@py_format8@py_format10@py_assert1@py_assert3@py_assert5s              r   *test_renders_badges_bars_and_texts_from_vmr   "   s	   	v4	HB9D4[[4444444444>444>444444T4444T444[4444444444445kk5555555555;555;555555d5555d555k555555555555*  *F*F***** ******4****4****** ***F********??((5(5(((((((((((4((((4(((?((((((5((((((((3""3m3m33333"333333433334333333"333m33333333-%%-------%------4----4------%-----------/""/i/i/////"//////4////4//////"///i////////<00<<<<<<<<<<?<<<?<<<<<<d<<<<d<<<0<<<<<<<<<<<<-$$-------$------4----4------$-----------:..::::::::::>:::>::::::T::::T:::.::::::::::::0$$000000000040004000000400004000$000000000000$$1))1T1T11111)111111411114111$111)111T11111111,$$,,,,,,,$,,,,,,4,,,,4,,,,,,$,,,,,,,,,,,##6((6J6J66666(666666466664666#666(666J66666666##7((7K7K77777(777777477774777#777(777K777777776**6666666666;666;666666$6666$666*666666666666&&3++3t3t33333+333333433334333&333+333t33333333%%8**8j8j88888*888888488884888%888*888j88888888r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r   :   s     2 2T 2r   c                    \        \        4       \        . 4      \        R 7      p V P                  qP
                  pR.q2V8H  qD'       g   \        P                  ! RV3RW#34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR	;p;p;rCV P                  qP
                  pR.q2V8H  qD'       g   \        P                  ! RV3RW#34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR	;p;p;rCV P                  qP                  pR
q2VJ qD'       g   \        P                  ! RV3RW#34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR	;p;p;rCV P                  qP                  pR
q2VJ qD'       g   \        P                  ! RV3RW#34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR	;p;p;rCR	# )r:   FrL   rF   rM   rN   rH   rI   rJ   NTrY   )zX%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.primary_row
}.show_all_states
} == %(py7)s)zZ%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.secondary_row
}.show_all_states
} == %(py7)sr]   )zT%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.primary_row
}.no_show_all
} is %(py7)s)zV%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.secondary_row
}.no_show_all
} is %(py7)s)r   r   r   r4   primary_rowr   rf   rg   ri   rj   rk   rh   rl   rm   secondary_rowr   rF   r   r   r   r   r   r   s          r   ;test_quota_rows_allow_show_all_before_restoring_suppressionr   :   sH   (.*<TD6++6w6w66666+666666466664666666+666w666666668--8%888888-888888488884888888-88888888888/''/4/4/////'//////4////4//////'///4////////1))1T1T11111)111111411114111111)111T11111111r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r   C   s     / /D /r   c                 <   \        \        R R7      4      p V P                  qP                  pR q2VJ qD'       g   \        P
                  ! R
V3RW#34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR	;p;p;rCR	# )F)rC   rL   rF   rM   rN   rH   rI   rJ   Nr]   r_   )r<   r   rr   rs   rf   rg   ri   rj   rk   rh   rl   rm   r   s          r   *test_default_badge_hidden_when_not_defaultr   C   s    E23D.%%.......%......4....4......%...........r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r   H   s     
7 
7D 
7r   c                    \        \        R RR7      \        RRRR7      R7      p \        V 4      pRq!P                  q3P                  qBV9   qU'       g   \
        P                  ! RV3RW$34      R\
        P                  ! V4      R	R
\        P                  ! 4       9   g   \
        P                  ! V4      '       d   \
        P                  ! V4      MR
R\
        P                  ! V4      R\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR;p;p;r4Rq!P                  q3P                  qBV9  qU'       g   \
        P                  ! RV3RW$34      R\
        P                  ! V4      R	R
\        P                  ! 4       9   g   \
        P                  ! V4      '       d   \
        P                  ! V4      MR
R\
        P                  ! V4      R\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR;p;p;r4Rq!P                  q3P                  qBV9   qU'       g   \
        P                  ! RV3RW$34      R\
        P                  ! V4      R	R
\        P                  ! 4       9   g   \
        P                  ! V4      '       d   \
        P                  ! V4      MR
R\
        P                  ! V4      R\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR;p;p;r4Rq!P                  q3P                  qBV9  qU'       g   \
        P                  ! RV3RW$34      R\
        P                  ! V4      R	R
\        P                  ! 4       9   g   \
        P                  ! V4      '       d   \
        P                  ! V4      MR
R\
        P                  ! V4      R\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR;p;p;r4R# )333333?hotrw   levelrR   gffffff?crit)window_labelrw   r   )primary	secondaryrD   rE   rF   rG   rH   rI   rJ   NrS   rb   rV   zX%(py1)s not in %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s.primary_bar
}.css_classes
})zV%(py1)s in %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s.secondary_bar
}.css_classes
})zZ%(py1)s not in %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s.secondary_bar
}.css_classes
})r   r   r<   rv   re   rf   rg   rh   ri   rj   rk   rl   rm   secondary_bar)r7   rF   r}   r~   r   r   r   r   s           r   *test_bar_levels_apply_hot_and_crit_classesr   H   sQ   	$e4t6J
B 9D0$$000000000050005000000D0000D000$0000000000005))5555555555655565555555555555)5555555555553''333333333363336333333T3333T333'3333333333336**6666666666566656666666666666*666666666666r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r   U   s     5 54 5r   c                 z
   \        R RRRRR7      p \        V 4      pRq!P                  q3P                  qBV9   qU'       g   \        P
                  ! RV3RW$34      R\        P                  ! V4      RR	\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR	R
\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;r4VP                  qP                  p	RqIVJ q'       g   \        P
                  ! RV
3RW34      RR	\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR	R\        P                  ! V4      R\        P                  ! V	4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p	;rVP                  qP                  p	RqIV8H  q'       g   \        P
                  ! RV
3RW34      RR	\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR	R\        P                  ! V4      R\        P                  ! V	4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p	;rRq!P                  q3P                  qBV9   qU'       g   \        P
                  ! RV3RW$34      R\        P                  ! V4      RR	\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR	R
\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;r4Rq!P                  q3P                  qBV9  qU'       g   \        P
                  ! RV3RW$34      R\        P                  ! V4      RR	\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR	R
\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;r4R# )brokenNeeds repairTrepair	   Repair…)healthhealth_textrK   primary_actionprimary_action_labelrK   rD   rE   rF   rG   rH   rI   rJ   NrL   rM   rN   errrP   rS   rU   r]   r`   rY   )zN%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.health_badge
}.text
} == %(py7)sra   rV   zY%(py1)s not in %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s.health_badge
}.css_classes
})r   r<   rd   re   rf   rg   rh   ri   rj   rk   rl   rm   rt   rs   ro   r|   s              r   1test_broken_account_shows_err_badge_and_attentionr   U   s   	"(
B 9D1++1111111111;111;111111$1111$111+111111111111,$$,,,,,,,$,,,,,,4,,,,4,,,,,,$,,,,,,,,,,,3!!3^3^33333!333333433334333333!333^333333331%%111111111151115111111D1111D111%1111111111114((444444444444444444444t4444t444(444444444444r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r   f   s     3 3d 3r   c                 J   \        \        R RR7      4      p V P                  qP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pR	R
V/,          p\        \        P                  ! V4      4      hR;p;p;rCRqpP                  qP                  q7V9   q'       g   \        P
                  ! RV	3RWs34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      R\        P                  ! V4      /,          pR	R
V/,          p\        \        P                  ! V4      4      hR;p;p	;rR# )unknownChecking)r   r   TrL   rF   rM   rN   rH   rI   rJ   NwarnrD   rE   rG   r]   r`   rS   ra   )r<   r   rt   rs   rf   rg   ri   rj   rk   rh   rl   rm   re   )
rF   r   r   r   r   r   r   r}   r~   r   s
             r   $test_unknown_health_shows_warn_badger   f   s'   	zJKD,$$,,,,,,,$,,,,,,4,,,,4,,,,,,$,,,,,,,,,,,2&&222222222262226222222T2222T222&222222222222r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r   l   s     
4 
4D 
4r   c                 t   \        R R\        RRR7      R7      p \        V 4      pVP                  q"P                  pRqCVJ qU'       g   \
        P                  ! RV3RW434      RR\        P                  ! 4       9   g   \
        P                  ! V4      '       d   \
        P                  ! V4      MRR	\
        P                  ! V4      R
\
        P                  ! V4      R\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR;p;p;rTVP                  q"P                  pRqCVJ qU'       g   \
        P                  ! RV3RW434      RR\        P                  ! 4       9   g   \
        P                  ! V4      '       d   \
        P                  ! V4      MRR	\
        P                  ! V4      R
\
        P                  ! V4      R\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR;p;p;rTVP                  q"P                  pRqCV8H  qU'       g   \
        P                  ! RV3RW434      RR\        P                  ! 4       9   g   \
        P                  ! V4      '       d   \
        P                  ! V4      MRR	\
        P                  ! V4      R
\
        P                  ! V4      R\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR;p;p;rTR# )grokNmog333333?)r   rw   )toolr   r   FrL   rF   rM   rN   rH   rI   rJ   Tr]   )zP%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.primary_row
}.visible
} is %(py7)s)zR%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.secondary_row
}.visible
} is %(py7)srY   rc   )r   r   r<   r   rs   rf   rg   ri   rj   rk   rh   rl   rm   r   rz   ro   r7   rF   r   r   r   r   r   r   s           r   2test_grok_without_primary_window_hides_primary_rowr   l   s   	s;
B
 9D,##,u,u,,,,,#,,,,,,4,,,,4,,,,,,#,,,u,,,,,,,,-%%-------%------4----4------%-----------&&3++3t3t33333+333333433334333&333+333t33333333r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r   y   s     7 7d 7r   c                 r   . p \        \        R RR7      V 4      pVP                  q"P                  pRqCVJ qU'       g   \        P
                  ! RV3RW434      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pR	R
V/,          p\        \        P                  ! V4      4      hR;p;p;rTVP                   UU	u. uF  w  rVNK	  	  up	p^ ,          p
Rq:V8H  q'       gy   \        P
                  ! RV3RW34      R\        P                  ! V
4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p
;rVP                  ^ ,          ^,          ! 4        R.qV8H  q"'       g   \        P
                  ! RV3RW34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;r+R# u up	pi )codexworkr   slugFrL   rF   rM   rN   rH   rI   rJ   NSet as defaultrD   assert %(py6)spy6r8   rE   assert %(py5)srG   r]   zS%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.primary_button
}.visible
} is %(py7)srY   z%(py1)s == %(py4)s)set_defaultr   r   z%(py0)s == %(py3)s)r<   r   primary_buttonrs   rf   rg   ri   rj   rk   rh   rl   rm   
menu_items)r8   rF   r   r   r   r   r   r   label_r}   r   @py_format5@py_format7@py_format4@py_format6s                   r   4test_set_as_default_lives_in_menu_not_primary_buttonr   y   s   #%EgF;UCD/&&/%/%/////&//////4////4//////&///%////////"&//2/heE/215I9II9IIIIII5III5III9IIIIIIIIIOOAq5666666665666666566665666666666666 3s   /J3c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r      s     5 5 5r   c                 
   . p \        R RRRRRRR7      p\        W4      pVP                  q3P                  pRqTV8H  qf'       g   \        P
                  ! RV3RWE34      RR	\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR	R
\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;reVP                  P                  R4       R.qV	8H  q3'       g   \        P
                  ! RV3RW	34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V	4      /,          p
RRV
/,          p\        \        P                  ! V4      4      hR;r9R# )r   roy-grokr   r   Tr   r   r   r   r   r   rK   r   r   rL   rF   rM   rN   rH   rI   rJ   Nclickedr8   rE   r   rG   rY   )zP%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.primary_button
}.text
} == %(py7)s)r   r   r   r   )r   r<   r   ro   rf   rg   ri   rj   rk   rh   rl   rm   emit)r8   r7   rF   r   r   r   r   r   r   r   r   r   s               r   /test_primary_button_repair_dispatches_on_repairr      s4   #%E	"(
B D2##2{2{22222#222222422224222222#222{22222222Y'3444444445444444544445444444444444r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r      s     0 04 0r   c                 D   \        R RRR7      p \        V 4      pVP                  q"P                  pRqCVJ qU'       g   \        P
                  ! RV3RW434      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;rTR# )TN rC   r   r   FrL   rF   rM   rN   rH   rI   rJ   r]   r   )r   r<   r   rs   rf   rg   ri   rj   rk   rh   rl   rm   r   s           r   1test_no_primary_button_on_default_healthy_accountr      s    	DTV	WB9D/&&/%/%/////&//////4////4//////&///%////////r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r      s     
 
4 
r   c                    . p \        \        R 04      R7      p\        W4      pVP                  q3P                  pRqTVJ qf'       g   \
        P                  ! RV3RWE34      RR\        P                  ! 4       9   g   \
        P                  ! V4      '       d   \
        P                  ! V4      MRR\
        P                  ! V4      R\
        P                  ! V4      R\
        P                  ! V4      /,          pRR	V/,          p\        \
        P                  ! V4      4      hR
;p;p;reVP                  R ,          p	V	P                  pRqV
J qD'       g   \
        P                  ! RV3RW:34      RR\        P                  ! 4       9   g   \
        P                  ! V	4      '       d   \
        P                  ! V	4      MRR\
        P                  ! V4      R\
        P                  ! V
4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR
;p;rJV	P                  pRqV
J qD'       g   \
        P                  ! RV3RW:34      RR\        P                  ! 4       9   g   \
        P                  ! V	4      '       d   \
        P                  ! V	4      MRR\
        P                  ! V4      R\
        P                  ! V
4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR
;p;rJV	P                  R4       . qV8H  q3'       g   \
        P                  ! RV3RW34      RR\        P                  ! 4       9   g   \
        P                  ! V 4      '       d   \
        P                  ! V 4      MRR\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR
;r<R
# )r   )busy_actionsFrL   rF   rM   rN   rH   rI   rJ   NTitemrG   assert %(py7)sactivater8   rE   r   r]   r   z/%(py2)s
{%(py2)s = %(py0)s.visible
} is %(py5)sz1%(py2)s
{%(py2)s = %(py0)s.sensitive
} is %(py5)srY   r   )r   	frozensetr<   r   rs   rf   rg   ri   rj   rk   rh   rl   rm   _menu_action_widgets	sensitiver   )r8   r7   rF   r   r   r   r   r   r   r   r~   r   r   r   s                 r   1test_busy_set_default_makes_menu_item_insensitiver      s
   #%E	i&@	ABD/&&/%/%/////&//////4////4//////&///%////////$$]3D<<44<44<4>>"U"U""""">""""""4""""4""">"""U""""""""IIjB;555Br   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r      s     E E4 Er   c            	        \        \        R RRR7      4      p V P                  R,          qP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      R\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pR	R
V/,          p\        \        P                  ! V4      4      hR;p;p;rCR# )TNr   r   r   FrD   rE   r   assert %(py8)spy8r]   )z/%(py3)s
{%(py3)s = %(py1)s.visible
} is %(py6)s)	r<   r   r   rs   rf   rg   rh   rl   rm   rF   r}   r   r   r~   r   @py_format9s          r   9test_set_as_default_menu_item_hidden_when_already_defaultr      s    D\^_`D$$]3D;;DuDuDDDDD;DDD3DDD;DDDuDDDDDDDDr   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r      s     " "d "r   c                    \        \        R RRRRRRR7      4      p V P                  R,          pVP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      R	R
\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR
R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;rCVP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      R	R
\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR
R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;rCR# )r   sparer   r   Tr   r   r   r   rL   r   rM   rG   r   rH   Nr]   r   r   r<   r   r   rs   rf   rg   ri   rj   rk   rh   rl   rm   r   rF   r   r   r~   r   r   r   s          r   Dtest_set_as_default_menu_item_visible_for_broken_non_default_accountr      s   &#!,	

D $$]3D<<44<44<4>>!T!T!!!!!>!!!!!!4!!!!4!!!>!!!T!!!!!!!!r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r      s     # #RV #r   c            	        \        \        R RRR7      4      p V P                  R,          pVP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V4      /,          pR	R
V/,          p\        \        P                  ! V4      4      hR;p;rCVP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V4      /,          pR	R
V/,          p\        \        P                  ! V4      4      hR;p;rCR# )r   r   Tr   r   lockedr   rL   r   rM   rG   r   rH   NFr]   r   r   r   r   s          r   Htest_set_as_default_menu_item_insensitive_for_locked_non_default_accountr      s   W74@D $$]3D<<44<44<4>>"U"U""""">""""""4""""4""">"""U""""""""r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r      s     
2 
2$ 
2r   c                 ^   \        R RRRR\        R04      R7      p \        V 4      pVP                  q"P                  pRqCVJ qU'       g   \
        P                  ! RV3RW434      RR	\        P                  ! 4       9   g   \
        P                  ! V4      '       d   \
        P                  ! V4      MR	R
\
        P                  ! V4      R\
        P                  ! V4      R\
        P                  ! V4      /,          pRRV/,          p\        \
        P                  ! V4      4      hR;p;p;rTR# )r   r   Tr   r   reauthenticate)r   r   rK   r   r   r   FrL   rF   rM   rN   rH   rI   rJ   Nr]   )zU%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.primary_button
}.sensitive
} is %(py7)s)r   r   r<   r   r   rf   rg   ri   rj   rk   rh   rl   rm   r   s           r   8test_busy_reauthenticate_makes_repair_button_insensitiver      s    	"( 012
B 9D1((1E1E11111(111111411114111111(111E11111111r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r      s      T r   c                 V   . p \        \        R RR7      V 4      pVP                   UUu. uF  w  r#VNK	  	  ppp. ROqTV8H  qf'       gy   \        P                  ! RV3RWE34      R\        P
                  ! V4      R\        P
                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;reVP                   F  w  r9V	! 4        K  	  . ROq`V8H  q'       g   \        P                  ! RV
3RW34      RR	\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P
                  ! V 4      MR	R
\        P
                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;rR# u uppi )claudesharedr   rD   rN   r   r   NrL   r8   rE   r   rG   )r   Reloadu   Set limits…u   Re-authenticate…u	   Rename…u	   Remove…   Move to Gateway…rY   r   ))r   r   r   )reloadr   r   )
set_limitsr   r   )r   r   r   )renamer   r   )remover   r   )gatewayr   r   migrater   )r<   r   r   rf   rg   rh   rl   rm   ri   rj   rk   )r8   rF   r   r   r}   r   r   r   r   dispatchr   r   r   s                r   #test_menu_items_labels_and_dispatchr	     sr   #%EhX>FD"&//2/heE/ 2 7  7    2   2    7        
 '      5     5   5            3s   F%c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r      s     &2 &2d &2r   c                    . p \        \        4       V 4      pVP                  pVP                  pVP                  pVP
                  pVP                  \        R RRRRR\        RRR7      RR	R
R7
      4       VP                  qfVJ qw'       g   \        P                  ! R$V3R%Wb34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR/,          pRRV/,          p	\        \        P                  ! V	4      4      hR;rgVP                  qfVJ qw'       g   \        P                  ! R$V3R&Wc34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR/,          pRRV/,          p	\        \        P                  ! V	4      4      hR;rgVP                  qfVJ qw'       g   \        P                  ! R$V3R'Wd34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR/,          pRRV/,          p	\        \        P                  ! V	4      4      hR;rgVP
                  qfVJ qw'       g   \        P                  ! R$V3R(We34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR/,          pRRV/,          p	\        \        P                  ! V	4      4      hR;rgVP                   pR qV
8H  qw'       g   \        P                  ! R)V3R*Wj34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V
4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;rzVP"                  qfP                   pRqV8H  q'       g   \        P                  ! R)V3R+W}34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;rVP$                  qfP                   pRqV8H  q'       g   \        P                  ! R)V3R,W}34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;rVP&                  qfP(                  pRqVJ q'       g   \        P                  ! R$V3R-W}34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;rRpVP*                  p
VV
9   pV'       g   \        P                  ! R.V3R/VV
34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V
4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;pp
RpVP,                  qP*                  pVV9   pV'       g   \        P                  ! R.V3R0VV34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V
4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;rR pVP,                  qP*                  pVV9  pV'       g   \        P                  ! R1V3R2VV34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V
4      R\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;p;rVP.                  pRqV
8H  qw'       g   \        P                  ! R)V3R3Wj34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V
4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;rzRpVP*                  p
VV
9   pV'       g   \        P                  ! R.V3R/VV
34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V
4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;pp
VP                   pR
qV
8H  qw'       g   \        P                  ! R)V3R*Wj34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V
4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;rzVP1                  R!4       R4.pV V8H  qf'       g   \        P                  ! R)V3R5V V34      RR"\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MR"R\        P                  ! V4      /,          pR#RV/,          p\        \        P                  ! V4      4      hR;ppR# )6RenamedproTr   r   g
ףp=
?r   r   u   ⟳ 5m ago (stale)r   r   )
rA   rB   rC   r   r   rK   r   checked_textr   r   rL   rF   rM   rN   rd   r   r   Nrn   rv   r   rG   r   rH   rI   rJ   rK   rD   rE   r   rP   r   r8   r   r]   )z.%(py2)s
{%(py2)s = %(py0)s.widget
} is %(py4)s)z3%(py2)s
{%(py2)s = %(py0)s.alias_label
} is %(py4)s)z3%(py2)s
{%(py2)s = %(py0)s.primary_bar
} is %(py4)s)z6%(py2)s
{%(py2)s = %(py0)s.primary_button
} is %(py4)srY   )z,%(py2)s
{%(py2)s = %(py0)s.text
} == %(py5)sr[   r\   r_   rS   )z3%(py1)s in %(py5)s
{%(py5)s = %(py3)s.css_classes
}ra   rV   r   )z0%(py2)s
{%(py2)s = %(py0)s.fraction
} == %(py5)s)r   r   r   r   )r<   r   rd   rn   rv   r   updater   rf   rg   ri   rj   rk   rh   rl   rm   ro   rp   rq   rr   rs   re   rt   rw   r   )r8   rF   rd   rn   rv   r   r   r   r   r   r~   r   r   r   r   r   r}   r   r   s                      r   test_update_mutates_in_placer     s&   #%E"E*D[[F""K""K((NKK&d&9-#!,	
 ;; &     ;      4    4   ;      &    &        *{***********4****4*********{****{*********{***********4****4*********{****{********0.00000000000400004000000000.0000.00000000(y(y(((((((((((;((((;((((((y((((((((??((5(5(((((((((((4((((4(((?((((((5((((((((:"":&::&::::::"::::::4::::4::::::":::&:::::::::-%%-------%------4----4------%-----------,&,,,;,,,,,,;,,,,;,,,,,,&,,,,&,,,,,,,,,,,,1D%%11115111111511115111111D1111D111%1111111111114t((44444444444444444444444t4444t444(444444444444'4'4''''''''''';'''';''''''4'''''''',[,,,6,,,,,,6,,,,6,,,,,,[,,,,[,,,,,,,,,,,,-+-+----------->---->------+--------	"011511111151111111511115111111111111r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r     s     	0 	0 	0r   c                    \        \        \        R RR7      R7      4      p RqP                  q"P                  q1V9   qD'       g   \
        P                  ! RV3RW34      R\
        P                  ! V4      RR\        P                  ! 4       9   g   \
        P                  ! V 4      '       d   \
        P                  ! V 4      MRR\
        P                  ! V4      R\
        P                  ! V4      /,          pR
RV/,          p\        \
        P                  ! V4      4      hR;p;p;r#V P                  \        RR	R7      4       RqP                  q"P                  q1V9  qD'       g   \
        P                  ! RV3RW34      R\
        P                  ! V4      RR\        P                  ! 4       9   g   \
        P                  ! V 4      '       d   \
        P                  ! V 4      MRR\
        P                  ! V4      R\
        P                  ! V4      /,          pR
RV/,          p\        \
        P                  ! V4      4      hR;p;p;r#V P                  qwP                  pRq8VJ q'       g   \
        P                  ! RV	3RW34      RR\        P                  ! 4       9   g   \
        P                  ! V 4      '       d   \
        P                  ! V 4      MRR\
        P                  ! V4      R\
        P                  ! V4      R\
        P                  ! V4      /,          pR
RV/,          p\        \
        P                  ! V4      4      hR;p;p;rR# )r   r   r   )r   rD   rE   rF   rG   rH   r   rI   rJ   N)r   r   FrL   rM   rN   rS   rb   rV   r   r]   r   )r<   r   r   rv   re   rf   rg   rh   ri   rj   rk   rl   rm   r  r   rs   )
rF   r}   r~   r   r   r   r   r   r   r   s
             r   7test_update_clears_stale_level_and_hides_primary_buttonr    s   $e DED 0$$000000000050005000000D0000D000$000000000000KKt"MN4((4444444444544454444444444444(444444444444/&&/%/%/////&//////4////4//////&///%////////r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r   %  s      $ r   c                    \        \        R R^R^
R7      R7      p \        V 4      pVP                  P                  pVP
                  pRqC! V4      qU'       g   RRR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR	\        P                  ! V4      R
\        P                  ! V4      R\        P                  ! V4      /,          p\        \        P                  ! V4      4      hR;p;rERqwV9   q'       g   \        P                  ! RV3RWr34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MR/,          p	RRV	/,          p
\        \        P                  ! V
4      4      hR;rxR# )rR   gQ?z12% left)r   rw   left_pctpercent_textcap_stop_at_pct)r   zstop at 10% leftzJassert %(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.endswith
}(%(py4)s)
}rL   r   rM   rN   r   Nu   ↺rD   rE   r   rG   rS   )z%(py1)s in %(py3)s)r   r   r<   secondary_display_labelro   endswithri   rj   rf   rk   rh   rl   rm   rg   )r7   rF   r   r   r   r   r   r}   r   r   r   s              r   0test_quota_row_shows_cap_as_stop_at_left_percentr  %  s   	#

B 9D((--E>>-,->,---------5----5--->---,----------E>55EEr   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r   5  s     P Pt Pr   c                    . p \        \        R RRR7      V 4      pRq!P                  q3P                  qBV9   qU'       g   \        P
                  ! RV3RW$34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;r4Rq!P                  q3P                  qBV9   qU'       g   \        P
                  ! RV3RW$34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;r4VP                  qP                  p	RqIV8H  q'       g   \        P
                  ! RV
3RW34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rVP                  qP                  p	RqIV8H  q'       g   \        P
                  ! RV
3RW34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rVP                  P                  R4       R.qPV8H  q'       g   \        P
                  ! RV3RW34      RR\        P                  ! 4       9   g   \        P                  ! V 4      '       d   \        P                  ! V 4      MRR\        P                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;rVP!                  \        R RRR7      4       Rq!P                  q3P                  qBV9  qU'       g   \        P
                  ! R V3R!W$34      R\        P                  ! V4      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p;r4VP                  qP                  p	RqIV8H  q'       g   \        P
                  ! RV
3RW34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rVP                  qP                  p	RqIV8H  q'       g   \        P
                  ! RV
3RW34      RR\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P                  ! V4      MRR\        P                  ! V4      R\        P                  ! V	4      R	\        P                  ! V4      /,          pR
RV/,          p\        \        P                  ! V4      4      hR;p;p	;rR# )"r   ownerTr   r   rD   rE   rF   rG   rH   rI   rJ   Nu   🔒rL   rM   rN   zUnlock account for new sessionsr   r8   r   Fu   🔓z!Lock account against new sessionsrS   rU   )zT%(py1)s in %(py7)s
{%(py7)s = %(py5)s
{%(py5)s = %(py3)s.lock_button
}.css_classes
}rY   )zM%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.lock_button
}.text
} == %(py7)s)zU%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.lock_button
}.tooltip_text
} == %(py7)s)toggle_lockr   r  r   rV   rX   )r<   r   rd   re   rf   rg   rh   ri   rj   rk   rl   rm   lock_buttonro   tooltip_textr   r  )r8   rF   r}   r~   r   r   r   r   r   r   r   r   r   s                r   5test_lock_button_reflects_state_and_dispatches_toggler"  5  so   #%EhWTJERD.{{..........8...8......t....t...{............3''333333333383338333333t3333t333'333333333333*  *F*F***** ******4****4****** ***F********M((M,MM,MMMMMM(MMMMMM4MMMM4MMMMMM(MMM,MMMMMMMMM)$7888888885888888588885888888888888KKXGEJK2;;222222222282228222222422224222;222222222222*  *F*F***** ******4****4****** ***F********O((O,OO,OOOOOO(OOOOOO4OOOO4OOOOOO(OOO,OOOOOOOOOr   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r   H  s     A AD Ar   c            	        \        \        R RRR7      4      p V P                  R,          qP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      R\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pR	R
V/,          p\        \        P                  ! V4      4      hR;p;p;rCV P                  R,          qP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      R\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pR	R
V/,          p\        \        P                  ! V4      4      hR;p;p;rCV P                  R,          qP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      R\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pR	R
V/,          p\        \        P                  ! V4      4      hR;p;p;rCV P                  R,          qP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      R\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pR	R
V/,          p\        \        P                  ! V4      4      hR;p;p;rCV P                  R,          qP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      R\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pR	R
V/,          p\        \        P                  ! V4      4      hR;p;p;rCR# )r   r  Tr   r  FrD   rE   r   r   r   Nr   r  r  r  r]   z1%(py3)s
{%(py3)s = %(py1)s.sensitive
} is %(py6)s)	r<   r   r   r   rf   rg   rh   rl   rm   r   s          r   :test_locked_card_disables_reload_and_reauthentication_onlyr&  H  s<   hWTJKD$$X.A88AEAEAAAAA8AAA.AAA8AAAEAAAAAAAA$$%56I@@IEIEIIIII@III6III@IIIEIIIIIIII$$\2D<<DDDDDDD<DDD2DDD<DDDDDDDDDDD$$X.@88@D@D@@@@@8@@@.@@@8@@@D@@@@@@@@$$X.@88@D@D@@@@@8@@@.@@@8@@@D@@@@@@@@r   c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r   R  s     / /t /r   c                    . p \        \        R R7      V 4      pVP                   UUu. uF  w  r#VNK	  	  uppR,          pRqTV8H  qf'       gy   \        P                  ! RV3RWE34      R\        P
                  ! V4      R\        P
                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;reVP                  \        RR7      4       VP                  qP                  pR	qV
J q'       g   \        P                  ! RV3RWZ34      R
R\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P
                  ! V4      MRR\        P
                  ! V	4      R\        P
                  ! V4      R\        P
                  ! V
4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p	;p;rVP                  qP                  pRqV
8H  q'       g   \        P                  ! RV3RWZ34      R
R\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P
                  ! V4      MRR\        P
                  ! V	4      R\        P
                  ! V4      R\        P
                  ! V
4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p	;p;rVP                   UUu. uF  w  r#VNK	  	  uppR R pRR.qTV8H  qf'       gy   \        P                  ! RV3RWE34      R\        P
                  ! V4      R\        P
                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;reVP                  R ,          ^,          ! 4        VP                  R,          ^,          ! 4        V R R pR!R".qTV8H  qf'       gy   \        P                  ! RV3RWE34      R\        P
                  ! V4      R\        P
                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;reVP                  \        RR7      4       VP                  qP                  pRqV
8H  q'       g   \        P                  ! RV3RWZ34      R
R\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P
                  ! V4      MRR\        P
                  ! V	4      R\        P
                  ! V4      R\        P
                  ! V
4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p	;p;rVP                   UUu. uF  w  r#VNK	  	  uppR,          pRqTV8H  qf'       gy   \        P                  ! RV3RWE34      R\        P
                  ! V4      R\        P
                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;reVP                  R,          ^,          ! 4        V R,          pR#qTV8H  qf'       gy   \        P                  ! RV3RWE34      R\        P
                  ! V4      R\        P
                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;reVP                  \        RR7      4       VP                  qP                  pRqV
8H  q'       g   \        P                  ! RV3RWZ34      R
R\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P
                  ! V4      MRR\        P
                  ! V	4      R\        P
                  ! V4      R\        P
                  ! V
4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p	;p;rVP                   UUu. uF  w  r#VNK	  	  uppR,          pRqTV8H  qf'       gy   \        P                  ! RV3RWE34      R\        P
                  ! V4      R\        P
                  ! V4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p;reVP                  \        R R7      4       VP                  qP                  pRqV
J q'       g   \        P                  ! RV3RWZ34      R
R\        P                  ! 4       9   g   \        P                  ! V4      '       d   \        P
                  ! V4      MRR\        P
                  ! V	4      R\        P
                  ! V4      R\        P
                  ! V
4      /,          pRRV/,          p\        \        P                  ! V4      4      hR;p	;p;rR# u uppi u uppi u uppi u uppi )$native)gateway_stater  rD   rN   r   r   NtestingTrL   rF   rM   rH   rI   rJ   zGATEWAY TESTINGzActivate GatewayzCancel Gateway migrationactiveGATEWAYu   Return to native…pausedzGATEWAY PAUSEDu   Continue return to native…FrY   r   r]   )zR%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.gateway_badge
}.visible
} is %(py7)s)zO%(py4)s
{%(py4)s = %(py2)s
{%(py2)s = %(py0)s.gateway_badge
}.text
} == %(py7)s)r  r   r   r   )r  r   r   cancel)r  r   r   rollback)r<   r   r   rf   rg   rh   rl   rm   r  gateway_badgers   ri   rj   rk   ro   )r8   rF   r   r   r}   r   r   r   r   r   r   r   r   r   s                 r   5test_gateway_menu_updates_in_place_with_custody_stater4  R  s;   #%Ex8%@D"&//2/heE/226N:NN:NNNNNN6NNN6NNN:NNNNNNNNNKKi89-%%-------%------4----4------%-----------7""7&77&777777"777777477774777777"777&777777777"&//2/heE/2237 "<  <    7   7    <        	OOBOOB: 0.      :   :           
 	KKh78/""/i/i/////"//////4////4//////"///i////////"&//2/heE/226O:OO:OOOOOO6OOO6OOO:OOOOOOOOOOOB9@@@@@@@@@9@@@9@@@@@@@@@@@@KKh786""6&66&666666"666666466664666666"666&666666666"&//2/heE/226X:XX:XXXXXX6XXX6XXX:XXXXXXXXXKKh78.%%.......%......4....4......%...........7 3
 3 3 3s   g+g1!g7&g=c                   V ^8  d   QhRR/# r(   r   )r   s   "r   r   r   s  s     J Jd Jr   c            	        \        \        R RR7      4      p V P                  R,          qP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      R\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRR	V/,          p\        \        P                  ! V4      4      hR
;p;p;rCV P                  \        R\        R04      R7      4       V P                  R,          qP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      R\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRR	V/,          p\        \        P                  ! V4      4      hR
;p;p;rCV P                  R,          qP                  pRq2VJ qD'       g   \        P
                  ! RV3RW#34      R\        P                  ! V4      R\        P                  ! V4      R\        P                  ! V4      /,          pRR	V/,          p\        \        P                  ! V4      4      hR
;p;p;rCR
# )Tr)  )r   r*  gateway_primaryFrD   rE   r   r   r   Nr+  r  )r*  r   gateway_cancelr]   r%  )r<   r   r   r   rf   rg   rh   rl   rm   r  r   r   s          r   <test_gateway_menu_is_disabled_when_account_is_locked_or_busyr9  s  s|   HEFD$$%67JAAJUJUJJJJJAJJJ7JJJAJJJUJJJJJJJJKKiiQZP[F\]^$$%67JAAJUJUJJJJJAJJJ7JJJAJJJUJJJJJJJJ$$%56I@@IEIEIIIII@III6III@IIIEIIIIIIIIr   r$   )5
__future__r   builtinsri   _pytest.assertion.rewrite	assertionrewriterf   syspathlibr   typingr   pathinsertstr__file__resolveparentstests.cards_helpersr   r   r   ui.account_cardr   r	   r5   r   r4   r<   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r	  r  r  r  r"  r&  r4  r9  r   r   r   <module>rJ     s    "   
   3tH~--/77:; < I I 5
6!! 
6 h902/

75"3
475$0
E
"$#
24&2R	0 P&A/BJr   