diff --git a/playwright/e2e/dashboards-demo/dashboard.spec.ts b/playwright/e2e/dashboards-demo/dashboard.spec.ts index cc248a3c93..57e7e1ebf9 100644 --- a/playwright/e2e/dashboards-demo/dashboard.spec.ts +++ b/playwright/e2e/dashboards-demo/dashboard.spec.ts @@ -147,7 +147,7 @@ test.describe('dashboard', () => { await expect(page.getByLabel('Edit')).toBeVisible(); const editBtn = page.getByLabel('Edit'); await editBtn.click(); - const pieChart = page.getByText('Pie Chart', { exact: true }).locator('..'); + const pieChart = page.locator('si-dashboard-card').filter({ hasText: 'Pie Chart' }); await pieChart.getByLabel('Remove').click(); await page.waitForTimeout(100); await expect(page.locator('si-delete-confirmation-dialog')).toBeVisible(); diff --git a/playwright/snapshots/static.spec.ts-snapshots/si-dashboard--si-dashboard-card-element-examples-chromium-dark-linux.png b/playwright/snapshots/static.spec.ts-snapshots/si-dashboard--si-dashboard-card-element-examples-chromium-dark-linux.png index 836d077f64..f34134732b 100644 --- a/playwright/snapshots/static.spec.ts-snapshots/si-dashboard--si-dashboard-card-element-examples-chromium-dark-linux.png +++ b/playwright/snapshots/static.spec.ts-snapshots/si-dashboard--si-dashboard-card-element-examples-chromium-dark-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c5593e79383d437b0e636fbc5f6fac988642ec56f0d23040eaa78a85ed59cc72 -size 9743 +oid sha256:7e55f1bd21abcacd61a99908bcfe1401b2665a6ce832231c2d3630b3e30e8f60 +size 12152 diff --git a/playwright/snapshots/static.spec.ts-snapshots/si-dashboard--si-dashboard-card-element-examples-chromium-light-linux.png b/playwright/snapshots/static.spec.ts-snapshots/si-dashboard--si-dashboard-card-element-examples-chromium-light-linux.png index c579452f43..d65090625e 100644 --- a/playwright/snapshots/static.spec.ts-snapshots/si-dashboard--si-dashboard-card-element-examples-chromium-light-linux.png +++ b/playwright/snapshots/static.spec.ts-snapshots/si-dashboard--si-dashboard-card-element-examples-chromium-light-linux.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5ee5c230ffc0fb39bc8c8b1c7b2b080d8223728dfbd556cc96691beee44196ae -size 9105 +oid sha256:d5a2a5bd843fdc24c722104777eca1e6141f11a5eafba7d298f3cf836ad19a04 +size 11506 diff --git a/playwright/snapshots/static.spec.ts-snapshots/si-dashboard--si-dashboard-card.yaml b/playwright/snapshots/static.spec.ts-snapshots/si-dashboard--si-dashboard-card.yaml index 2067aa051e..09e1bec1c0 100644 --- a/playwright/snapshots/static.spec.ts-snapshots/si-dashboard--si-dashboard-card.yaml +++ b/playwright/snapshots/static.spec.ts-snapshots/si-dashboard--si-dashboard-card.yaml @@ -1,4 +1,4 @@ -- text: Natural Gas Usage +- text: Natural Gas Usage Shows the usage of natural gas - button "Toggle" - paragraph: Some quick example text to build on the card title and make up the bulk of the card's content. - button "Expand" diff --git a/projects/element-ng/dashboard/si-dashboard-card.component.html b/projects/element-ng/dashboard/si-dashboard-card.component.html index 6bb395a3f7..248b803094 100644 --- a/projects/element-ng/dashboard/si-dashboard-card.component.html +++ b/projects/element-ng/dashboard/si-dashboard-card.component.html @@ -12,9 +12,16 @@ @if (heading() || displayContentActionBar()) {