Add bitaxe icon and modify tests for it
Some checks failed
/ check-changes (push) Successful in 5s
/ build (push) Failing after 53s

This commit is contained in:
Djuri 2024-12-18 01:24:21 +01:00
parent 266a99be96
commit eff18ba0c3
4 changed files with 27 additions and 3 deletions

View file

@ -1,6 +1,6 @@
import { test, expect } from '@playwright/test';
import { initMock, settingsJson } from '../shared';
import { initMock, settingsJson, statusJson } from '../shared';
test.beforeEach(initMock);
@ -69,6 +69,9 @@ test('capture screenshots across devices with bitaxe screens', async ({ page },
}
];
statusJson.data = ['mdi:bitaxe', '', 'mdi:pickaxe', '6', '3', '7', 'GH/S'];
statusJson.rendered = ['mdi:bitaxe', '', 'mdi:pickaxe', '6', '3', '7', 'GH/S'];
await page.goto('/');
await expect(page.getByRole('heading', { name: 'Control' })).toBeVisible();
await expect(page.getByRole('heading', { name: 'Status' })).toBeVisible();