Show the same capacity bar for RAM and disk space
Rust development slice / linux (push) Failing after 7s
Rust development slice / linux (push) Failing after 7s
This commit is contained in:
@@ -57,7 +57,8 @@ test('creates and renames a customer, opens its inventory, and hides editing for
|
||||
return route.fulfill({ json: listing([{
|
||||
tenant_id: customerId, customer_name: customer.name, asset_id: 'device-1', agent_id: 'agent-1',
|
||||
lifecycle: 'current', status: 'online', hostname: 'NORD-PC', device_type: 'hypervisor', os: 'Proxmox VE',
|
||||
ram_available_bytes: 6 * 2 ** 30, ram_total_bytes: 16 * 2 ** 30, cpu_usage_percent: 0
|
||||
ram_available_bytes: 6 * 2 ** 30, ram_total_bytes: 16 * 2 ** 30, cpu_usage_percent: 0,
|
||||
disk_free_bytes: 24 * 2 ** 30, disk_total_bytes: 32 * 2 ** 30
|
||||
}]) });
|
||||
}
|
||||
if (method === 'POST' || method === 'PATCH') {
|
||||
@@ -109,7 +110,12 @@ test('creates and renames a customer, opens its inventory, and hides editing for
|
||||
await expect(headers.nth(1)).toHaveText('Type');
|
||||
await expect(device.getByRole('cell').nth(2)).toHaveText('hypervisor');
|
||||
await expect(device.getByRole('cell').nth(3)).toHaveText('Proxmox VE');
|
||||
await expect(device.locator('[data-label="RAM frei / gesamt"]')).toHaveText('6 / 16 GiB');
|
||||
const memory = device.locator('[data-label="RAM frei / gesamt"]');
|
||||
await expect(memory).toHaveText('6 / 16 GiB');
|
||||
await expect(memory.locator('.capacity-track')).toHaveAttribute('title', '37,5 % frei');
|
||||
await expect(memory.locator('.capacity-track i')).toHaveAttribute('style', 'width: 62.5%;');
|
||||
await expect(device.locator('[data-label="Speicher frei / gesamt"] .capacity-track i'))
|
||||
.toHaveAttribute('style', 'width: 25%;');
|
||||
await expect(device.getByText('Auslastung 0 %', { exact: true })).toBeVisible();
|
||||
const navigation = page.getByRole('navigation', { name: 'Hauptnavigation' });
|
||||
await navigation.getByRole('link', { name: 'Aufträge', exact: true }).click();
|
||||
|
||||
Reference in New Issue
Block a user