-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dialog window for deleting data views/dashboards and test functio…
…nality with new E2E-test (#3137) * Add dialog window for deletion of data view and dashboards + add tests for this feature * Enhance test with cancellation of deletion * bug fixes and minor changes in data explorer * new functions for data lake utils + fixes for delete-widget-test
- Loading branch information
1 parent
06415e4
commit 77c4966
Showing
18 changed files
with
185 additions
and
49 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
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,58 @@ | ||
/* | ||
* 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 { DataLakeUtils } from '../../support/utils/datalake/DataLakeUtils'; | ||
|
||
describe('Test Deletion of Data View and Dashboard', () => { | ||
beforeEach('Setup Test', () => { | ||
cy.initStreamPipesTest(); | ||
DataLakeUtils.loadDataIntoDataLake('datalake/sample.csv', false); | ||
}); | ||
|
||
it('Perform Test', () => { | ||
DataLakeUtils.goToDatalake(); | ||
|
||
DataLakeUtils.addDataViewAndTableWidget('TestView', 'Persist'); | ||
|
||
DataLakeUtils.saveDataViewConfiguration(); | ||
|
||
DataLakeUtils.createAndEditDashboard('TestDashboard'); | ||
|
||
DataLakeUtils.saveDashboardConfiguration(); | ||
|
||
DataLakeUtils.checkRowsDashboardTable(1); | ||
|
||
DataLakeUtils.checkRowsViewsTable(1); | ||
|
||
// Click "Delete" but cancel action and check if dashboard and view are still displayed | ||
DataLakeUtils.cancelDeleteDashboard('TestDashboard'); | ||
|
||
DataLakeUtils.checkRowsDashboardTable(1); | ||
|
||
DataLakeUtils.cancelDeleteDataView('TestView'); | ||
|
||
DataLakeUtils.checkRowsViewsTable(1); | ||
|
||
DataLakeUtils.deleteDashboard('TestDashboard'); | ||
|
||
DataLakeUtils.deleteDataView('TestView'); | ||
|
||
DataLakeUtils.checkRowsDashboardTable(0); | ||
|
||
DataLakeUtils.checkRowsViewsTable(0); | ||
}); | ||
}); |
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
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
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
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
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
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.