File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/agent/tests/e2e/pages Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ class ChatbotPage {
134134 document . querySelectorAll ( '[data-testid="chat-message-text"]' ) ,
135135 ) ;
136136 const successPattern =
137- / ( ( K n o w l e d g e A s s e t | K A ) .* ( c r e a t e d | p u b l i s h e d | g e n e r a t e d | a d d e d | s t o r e d | u p l o a d e d ) | ( c r e a t e d | p u b l i s h e d | g e n e r a t e d | a d d e d | s t o r e d | u p l o a d e d ) .* ( K n o w l e d g e A s s e t | K A ) | s u c c e s s f u l l y .* ( c r e a t e d | p u b l i s h e d ) | U A L .* d i d : | H e r e .* U A L | A s s e t . * D K G | D K G . * A s s e t ) / i;
137+ / (? ! . * u n a b l e ) (? ! . * f a i l e d ) (? ! . * e r r o r ) (? ! . * c a n n o t ) (? ! . * c a n ' t ) ( ( K n o w l e d g e A s s e t | K A ) .* ( c r e a t e d | p u b l i s h e d | g e n e r a t e d | a d d e d | s t o r e d | u p l o a d e d ) | ( c r e a t e d | p u b l i s h e d | g e n e r a t e d | a d d e d | s t o r e d | u p l o a d e d ) .* ( K n o w l e d g e A s s e t | K A ) | s u c c e s s f u l l y .* ( c r e a t e d | p u b l i s h e d ) | U A L .* d i d : | H e r e .* U A L ) / i;
138138 return messages . some ( ( msg ) =>
139139 successPattern . test ( msg . textContent || "" ) ,
140140 ) ;
@@ -145,7 +145,7 @@ class ChatbotPage {
145145
146146 // Find the success message and extract UAL from it
147147 const successMessageRegex =
148- / ( K n o w l e d g e A s s e t .* (?: c r e a t e d | p u b l i s h e d | g e n e r a t e d | a d d e d | s t o r e d | u p l o a d e d ) | (?: c r e a t e d | p u b l i s h e d | g e n e r a t e d | a d d e d | s t o r e d | u p l o a d e d ) .* K n o w l e d g e A s s e t | s u c c e s s f u l l y .* (?: c r e a t e d | p u b l i s h e d ) | U A L .* d i d : | H e r e .* U A L | A s s e t . * D K G | D K G . * A s s e t | K A .* (?: c r e a t e d | p u b l i s h e d ) | (?: c r e a t e d | p u b l i s h e d ) .* K A ) / i;
148+ / (? ! . * u n a b l e ) (? ! . * f a i l e d ) (? ! . * e r r o r ) (? ! . * c a n n o t ) (? ! . * c a n ' t ) ( K n o w l e d g e A s s e t .* (?: c r e a t e d | p u b l i s h e d | g e n e r a t e d | a d d e d | s t o r e d | u p l o a d e d ) | (?: c r e a t e d | p u b l i s h e d | g e n e r a t e d | a d d e d | s t o r e d | u p l o a d e d ) .* K n o w l e d g e A s s e t | s u c c e s s f u l l y .* (?: c r e a t e d | p u b l i s h e d ) | U A L .* d i d : | H e r e .* U A L | K A .* (?: c r e a t e d | p u b l i s h e d ) | (?: c r e a t e d | p u b l i s h e d ) .* K A ) / i;
149149
150150 // Get all messages and find the one with success content
151151 const allMessages = await this . page . getByTestId ( "chat-message-text" ) . all ( ) ;
You can’t perform that action at this time.
0 commit comments