diff --git a/superset-frontend/src/views/CRUD/alert/AlertList.tsx b/superset-frontend/src/views/CRUD/alert/AlertList.tsx
index 42a91bf6b6..7232b3da39 100644
--- a/superset-frontend/src/views/CRUD/alert/AlertList.tsx
+++ b/superset-frontend/src/views/CRUD/alert/AlertList.tsx
@@ -17,7 +17,7 @@
* under the License.
*/
-import React, { useState, useMemo } from 'react';
+import React, { useState, useMemo, useEffect } from 'react';
import { useHistory } from 'react-router-dom';
import { t, SupersetClient, makeApi, styled } from '@superset-ui/core';
import moment from 'moment';
@@ -137,6 +137,12 @@ function AlertList({
const canDelete = hasPerm('can_write');
const canCreate = hasPerm('can_write');
+ useEffect(() => {
+ if (bulkSelectEnabled && canDelete) {
+ toggleBulkSelect();
+ }
+ }, [isReportEnabled]);
+
const handleAlertDelete = ({ id, name }: AlertObject) => {
SupersetClient.delete({
endpoint: `/api/v1/report/${id}`,
@@ -415,12 +421,14 @@ function AlertList({
label: t('Alerts'),
url: '/alert/list/',
usesRouter: true,
+ 'data-test': 'alert-list',
},
{
name: 'Reports',
label: t('Reports'),
url: '/report/list/',
usesRouter: true,
+ 'data-test': 'report-list',
},
]}
buttons={subMenuButtons}