File tree 1 file changed +19
-2
lines changed
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,13 @@ const testCases: TestsCase[] = [
275
275
{
276
276
name : 'Search' ,
277
277
url : '?q=' ,
278
+ screenshot : false ,
279
+ run : async ( page ) => {
280
+ await expect ( page . getByTestId ( 'search-results' ) ) . toBeVisible ( ) ;
281
+ const allItems = await page . getByTestId ( 'search-result-item' ) . all ( ) ;
282
+ // Expect at least 3 questions
283
+ await expect ( allItems . length ) . toBeGreaterThan ( 2 ) ;
284
+ } ,
278
285
} ,
279
286
{
280
287
name : 'Search Results' ,
@@ -728,7 +735,12 @@ const testCases: TestsCase[] = [
728
735
) ;
729
736
return `first?jwt_token=${ token } ` ;
730
737
} ) ( ) ,
731
- run : waitForCookiesDialog ,
738
+ run : async ( page ) => {
739
+ await expect (
740
+ page . getByRole ( 'heading' , { level : 1 , name : 'first' } ) ,
741
+ ) . toBeVisible ( ) ;
742
+ } ,
743
+ screenshot : false ,
732
744
} ,
733
745
{
734
746
name : 'Second' ,
@@ -745,7 +757,12 @@ const testCases: TestsCase[] = [
745
757
) ;
746
758
return `second?jwt_token=${ token } ` ;
747
759
} ) ( ) ,
748
- run : waitForCookiesDialog ,
760
+ run : async ( page ) => {
761
+ await expect (
762
+ page . getByRole ( 'heading' , { level : 1 , name : 'second' } ) ,
763
+ ) . toBeVisible ( ) ;
764
+ } ,
765
+ screenshot : false ,
749
766
} ,
750
767
] ,
751
768
} ,
You can’t perform that action at this time.
0 commit comments