Skip to content

Commit

Permalink
Add clone test for unique dashboard title suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Jun 4, 2024
1 parent 0ae0605 commit 95b3c47
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/functional/apps/dashboard/group4/dashboard_clone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await listingTable.searchAndExpectItemsCount('dashboard', clonedDashboardName, 1);
});

it('Clone should suggest a unique title', async function () {
await PageObjects.dashboard.loadSavedDashboard(clonedDashboardName);
await PageObjects.dashboard.duplicateDashboard();
await PageObjects.dashboard.gotoDashboardLandingPage;
await listingTable.searchAndExpectItemsCount('dashboard', `${clonedDashboardName} (2)`, 1);
});

it('the copy should have all the same visualizations', async function () {
await PageObjects.dashboard.loadSavedDashboard(clonedDashboardName);
await retry.try(async () => {
Expand Down

0 comments on commit 95b3c47

Please sign in to comment.