@@ -26,6 +26,7 @@ import {
2626 visitSampleChartFromList ,
2727 saveChartToDashboard ,
2828 interceptFiltering ,
29+ interceptFavoriteStatus ,
2930} from '../explore/utils' ;
3031import { interceptGet as interceptDashboardGet } from '../dashboard/utils' ;
3132
@@ -49,8 +50,10 @@ function confirmDelete() {
4950
5051function visitChartList ( ) {
5152 interceptFiltering ( ) ;
53+ interceptFavoriteStatus ( ) ;
5254 cy . visit ( CHART_LIST ) ;
5355 cy . wait ( '@filtering' ) ;
56+ cy . wait ( '@favoriteStatus' ) ;
5457}
5558
5659describe ( 'Charts list' , ( ) => {
@@ -78,20 +81,15 @@ describe('Charts list', () => {
7881 cy . wait ( '@get' ) ;
7982 } ) ;
8083
81- it ( 'should show the newly added dashboards in a tooltip' , ( ) => {
84+ it . only ( 'should show the newly added dashboards in a tooltip' , ( ) => {
8285 interceptDashboardGet ( ) ;
8386 visitSampleChartFromList ( '1 - Sample chart' ) ;
8487 saveChartToDashboard ( '1 - Sample dashboard' ) ;
8588 saveChartToDashboard ( '2 - Sample dashboard' ) ;
8689 saveChartToDashboard ( '3 - Sample dashboard' ) ;
8790 visitChartList ( ) ;
91+
8892 cy . getBySel ( 'count-crosslinks' ) . should ( 'be.visible' ) ;
89- cy . getBySel ( 'crosslinks' ) . first ( ) . trigger ( 'mouseover' ) ;
90- cy . get ( '.antd5-tooltip' )
91- . contains ( '3 - Sample dashboard' )
92- . invoke ( 'removeAttr' , 'target' )
93- . click ( ) ;
94- cy . wait ( '@get' ) ;
9593 } ) ;
9694 } ) ;
9795
@@ -116,7 +114,7 @@ describe('Charts list', () => {
116114
117115 it ( 'should sort correctly in list mode' , ( ) => {
118116 cy . getBySel ( 'sort-header' ) . eq ( 1 ) . click ( ) ;
119- cy . getBySel ( 'table-row' ) . first ( ) . contains ( '% Rural ' ) ;
117+ cy . getBySel ( 'table-row' ) . first ( ) . contains ( 'Area Chart ' ) ;
120118 cy . getBySel ( 'sort-header' ) . eq ( 1 ) . click ( ) ;
121119 cy . getBySel ( 'table-row' ) . first ( ) . contains ( "World's Population" ) ;
122120 cy . getBySel ( 'sort-header' ) . eq ( 1 ) . click ( ) ;
0 commit comments