44 */
55
66import { CURRENT_TENANT } from '../../../../../utils/commands' ;
7- import { DS_BASIC_AUTH_LABEL } from '../../../../../utils/dashboards/datasource-management-dashboards-plugin/constants' ;
7+ import { DS_NO_AUTH_LABEL } from '../../../../../utils/dashboards/datasource-management-dashboards-plugin/constants' ;
88import {
99 TSVB_INDEX_ID ,
1010 TSVB_PATH_INDEX_DATA ,
@@ -44,15 +44,15 @@ describe('TSVB Visualization', () => {
4444
4545 if ( Cypress . env ( 'DATASOURCE_MANAGEMENT_ENABLED' ) ) {
4646 before ( ( ) => {
47- cy . deleteDataSourceIndexBasicAuth ( TSVB_INDEX_ID ) ;
48- cy . createDataSourceBasicAuth ( ) ;
49- cy . bulkUploadDocsToDataSourceBasicAuth ( TSVB_PATH_INDEX_DATA ) ;
47+ cy . deleteDataSourceIndexNoAuth ( TSVB_INDEX_ID ) ;
48+ cy . createDataSourceNoAuth ( ) ;
49+ cy . bulkUploadDocsToDataSourceNoAuth ( TSVB_PATH_INDEX_DATA ) ;
5050 } ) ;
5151
5252 describe ( 'When MDS is enabled' , ( ) => {
5353 [
5454 {
55- dataSourceName : DS_BASIC_AUTH_LABEL ,
55+ dataSourceName : DS_NO_AUTH_LABEL ,
5656 canvasExists : 'exist' ,
5757 } ,
5858 ] . forEach ( ( { dataSourceName, canvasExists } ) => {
@@ -63,7 +63,7 @@ describe('TSVB Visualization', () => {
6363 cy . get ( '[data-test-subj="dataSourceSelectorComboBox"]' ) . click ( ) ;
6464
6565 // Find the option you want to select by its text and click on it
66- cy . contains ( '[role="option"]' , 'RemoteDataSourceBasicAuth' ) . click ( ) ;
66+ cy . contains ( '[role="option"]' , dataSourceName ) . click ( ) ;
6767 cy . get ( 'input[data-test-subj="metricsIndexPatternInput"]' ) . type (
6868 TSVB_INDEX_ID
6969 ) ;
@@ -92,7 +92,7 @@ describe('TSVB Visualization', () => {
9292 cy . deleteIndexPattern ( TSVB_INDEX_PATTERN ) ;
9393
9494 if ( Cypress . env ( 'DATASOURCE_MANAGEMENT_ENABLED' ) ) {
95- cy . deleteDataSourceIndexBasicAuth ( TSVB_INDEX_ID ) ;
95+ cy . deleteDataSourceIndexNoAuth ( TSVB_INDEX_ID ) ;
9696 cy . deleteAllDataSources ( ) ;
9797 }
9898 } ) ;
0 commit comments