1
1
import { test , expect } from "@playwright/test" ;
2
2
import { ToolBaseGenUIPage } from "../../featurePages/ToolBaseGenUIPage" ;
3
3
4
- const pageURL =
5
- "/mastra/feature/tool_based_generative_ui" ;
4
+ const pageURL = "/mastra/feature/tool_based_generative_ui" ;
6
5
7
- // Fails. Not a test issue, issue with the integration or cpk.
8
- test . fixme ( '[Mastra] Haiku generation and display verification' , async ( {
9
- page,
10
- } ) => {
6
+ test ( "[Mastra] Haiku generation and display verification" , async ( { page } ) => {
11
7
await page . goto ( pageURL ) ;
12
8
13
9
const genAIAgent = new ToolBaseGenUIPage ( page ) ;
@@ -18,23 +14,24 @@ test.fixme('[Mastra] Haiku generation and display verification', async ({
18
14
await genAIAgent . checkHaikuDisplay ( page ) ;
19
15
} ) ;
20
16
21
- // Fails. Not a test issue, issue with the integration or cpk.
22
- test . fixme ( '[Mastra] Haiku generation and UI consistency for two different prompts' , async ( {
23
- page ,
24
- } ) => {
25
- await page . goto ( pageURL ) ;
17
+ // test infra issue, not an integration issue
18
+ test . fixme (
19
+ "[Mastra] Haiku generation and UI consistency for two different prompts" ,
20
+ async ( { page } ) => {
21
+ await page . goto ( pageURL ) ;
26
22
27
- const genAIAgent = new ToolBaseGenUIPage ( page ) ;
23
+ const genAIAgent = new ToolBaseGenUIPage ( page ) ;
28
24
29
- await expect ( genAIAgent . haikuAgentIntro ) . toBeVisible ( ) ;
25
+ await expect ( genAIAgent . haikuAgentIntro ) . toBeVisible ( ) ;
30
26
31
- const prompt1 = 'Generate Haiku for "I will always win"' ;
32
- await genAIAgent . generateHaiku ( prompt1 ) ;
33
- await genAIAgent . checkGeneratedHaiku ( ) ;
34
- await genAIAgent . checkHaikuDisplay ( page ) ;
27
+ const prompt1 = 'Generate Haiku for "I will always win"' ;
28
+ await genAIAgent . generateHaiku ( prompt1 ) ;
29
+ await genAIAgent . checkGeneratedHaiku ( ) ;
30
+ await genAIAgent . checkHaikuDisplay ( page ) ;
35
31
36
- const prompt2 = 'Generate Haiku for "The moon shines bright"' ;
37
- await genAIAgent . generateHaiku ( prompt2 ) ;
38
- await genAIAgent . checkGeneratedHaiku ( ) ; // Wait for second haiku to be generated
39
- await genAIAgent . checkHaikuDisplay ( page ) ; // Now compare the second haiku
40
- } ) ;
32
+ const prompt2 = 'Generate Haiku for "The moon shines bright"' ;
33
+ await genAIAgent . generateHaiku ( prompt2 ) ;
34
+ await genAIAgent . checkGeneratedHaiku ( ) ; // Wait for second haiku to be generated
35
+ await genAIAgent . checkHaikuDisplay ( page ) ; // Now compare the second haiku
36
+ } ,
37
+ ) ;
0 commit comments