-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plugin E2e: Support scenes powered dashboard UI (#1155)
- Loading branch information
Showing
7 changed files
with
74 additions
and
3 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
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
14 changes: 14 additions & 0 deletions
14
packages/plugin-e2e/tests/as-admin-user/datasource/dashboards/dashboard.spec.ts
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,14 @@ | ||
import { expect, test } from '../../../../src'; | ||
|
||
test('add panel in already existing dashboard', async ({ gotoDashboardPage, readProvisionedDashboard, page }) => { | ||
const dashboard = await readProvisionedDashboard({ fileName: 'redshift.json' }); | ||
const dashboardPage = await gotoDashboardPage(dashboard); | ||
await dashboardPage.addPanel(); | ||
await expect(page.url()).toContain('editPanel'); | ||
}); | ||
|
||
test('add panel in new dashboard', async ({ dashboardPage, page }) => { | ||
const panelEditPage = await dashboardPage.addPanel(); | ||
await expect(panelEditPage.panel.locator).toBeVisible(); | ||
await expect(page.url()).toContain('editPanel'); | ||
}); |
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