forked from Powerarena-Limited/superset
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Functional RTL for email report modal II (apache#16148)
* Email Report Modal validation testing * Starting RTL testing for email report * Calendar icon now rendering! * Create report testing in dashboard * make linter happy * Fixing weird error * Removed ExploreChartHeader_spec * Fixed dashboard header test * revert changes from merge * Fix tests Co-authored-by: Elizabeth Thompson <[email protected]>
- Loading branch information
1 parent
1490bbe
commit dd6bb74
Showing
8 changed files
with
263 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
import dashboardInfo from './mockDashboardInfo'; | ||
import { user } from '../javascripts/sqllab/fixtures'; | ||
|
||
export default { | ||
active: true, | ||
creation_method: 'dashboards', | ||
crontab: '0 12 * * 1', | ||
dashboard: dashboardInfo.id, | ||
name: 'Weekly Report', | ||
owners: [user.userId], | ||
recipients: [ | ||
{ | ||
recipient_config_json: { | ||
target: user.email, | ||
}, | ||
type: 'Email', | ||
}, | ||
], | ||
type: 'Report', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
import datasources from 'spec/fixtures/mockDatasource'; | ||
import messageToasts from 'spec/javascripts/messageToasts/mockMessageToasts'; | ||
import { | ||
nativeFiltersInfo, | ||
mockDataMaskInfo, | ||
} from 'spec/javascripts/dashboard/fixtures/mockNativeFilters'; | ||
import chartQueries from 'spec/fixtures/mockChartQueries'; | ||
import { dashboardLayout } from 'spec/fixtures/mockDashboardLayout'; | ||
import dashboardInfo from 'spec/fixtures/mockDashboardInfo'; | ||
import { emptyFilters } from 'spec/fixtures/mockDashboardFilters'; | ||
import dashboardState from 'spec/fixtures/mockDashboardState'; | ||
import { sliceEntitiesForChart } from 'spec/fixtures/mockSliceEntities'; | ||
import reports from 'spec/fixtures/mockReportState'; | ||
|
||
export default { | ||
datasources, | ||
sliceEntities: sliceEntitiesForChart, | ||
charts: chartQueries, | ||
nativeFilters: nativeFiltersInfo, | ||
dataMask: mockDataMaskInfo, | ||
dashboardInfo, | ||
dashboardFilters: emptyFilters, | ||
dashboardState, | ||
dashboardLayout, | ||
messageToasts, | ||
impressionId: 'mock_impression_id', | ||
reports, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 0 additions & 87 deletions
87
superset-frontend/spec/javascripts/explore/components/ExploreChartHeader_spec.jsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.