From 9702b42712693719ab9b420a6429cfb844d971a9 Mon Sep 17 00:00:00 2001 From: jamesread Date: Fri, 24 Jul 2026 16:57:46 +0100 Subject: [PATCH] chore: fix tests after picocrank update --- .../dashboardsWithBasicFieldsets.js | 6 +++--- .../emptyDashboardsAreHidden/emptyDashboardsAreHidden.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/integration-tests/tests/dashboardsWithBasicFieldsets/dashboardsWithBasicFieldsets.js b/integration-tests/tests/dashboardsWithBasicFieldsets/dashboardsWithBasicFieldsets.js index b67be0b..64b690c 100644 --- a/integration-tests/tests/dashboardsWithBasicFieldsets/dashboardsWithBasicFieldsets.js +++ b/integration-tests/tests/dashboardsWithBasicFieldsets/dashboardsWithBasicFieldsets.js @@ -32,7 +32,7 @@ describe('config: dashboards with basic fieldsets', function () { await openSidebar() const navigationLinks = await getNavigationLinks() - assert.equal(navigationLinks.length, 5, 'Expected the nav to only have 5 links') // test dashboard + logs + diagnostics + entities + separator + assert.equal(navigationLinks.length, 4, 'Expected the nav to only have 4 links') // test dashboard + entities + logs + diagnostics const firstLink = await navigationLinks[0] @@ -44,7 +44,7 @@ describe('config: dashboards with basic fieldsets', function () { // Check that we have the expected number of fieldsets const dashboardRows = await webdriver.findElements(By.css('.dashboard-row')) expect(dashboardRows).to.have.length(3, 'Expected 3 dashboard rows total') - + // Check that we have fieldsets with the expected titles const fieldsetTitles = [] for (let i = 0; i < dashboardRows.length; i++) { @@ -54,7 +54,7 @@ describe('config: dashboards with basic fieldsets', function () { fieldsetTitles.push(title) } } - + // We should have fieldsets for: Fieldset 1, Fieldset 2, and Actions fieldsets expect(fieldsetTitles).to.include('Fieldset 1') expect(fieldsetTitles).to.include('Fieldset 2') diff --git a/integration-tests/tests/emptyDashboardsAreHidden/emptyDashboardsAreHidden.js b/integration-tests/tests/emptyDashboardsAreHidden/emptyDashboardsAreHidden.js index e5d498b..6cc133d 100644 --- a/integration-tests/tests/emptyDashboardsAreHidden/emptyDashboardsAreHidden.js +++ b/integration-tests/tests/emptyDashboardsAreHidden/emptyDashboardsAreHidden.js @@ -32,6 +32,6 @@ describe('config: empty dashboards are hidden', function () { const navigationLinks = await getNavigationLinks() expect(navigationLinks).to.not.be.empty - expect(navigationLinks.length).to.be.equal(4, 'Expected the nav to only have 4 links') + expect(navigationLinks.length).to.be.equal(3, 'Expected the nav to only have 3 links') // entities + logs + diagnostics }) })