16 lines
552 B
JavaScript
16 lines
552 B
JavaScript
import { expect, test } from "../../../frontend/node_modules/@playwright/experimental-ct-vue/index.js";
|
|
|
|
import StatsGrid from "../../../frontend/src/components/StatsGrid.vue";
|
|
import { fallbackHardware } from "../../../frontend/src/data/sample.js";
|
|
|
|
test("renders a live hardware summary in the browser", async ({ mount }) => {
|
|
const component = await mount(StatsGrid, {
|
|
props: {
|
|
hardware: fallbackHardware(),
|
|
},
|
|
});
|
|
|
|
await expect(component).toContainText("Control plane");
|
|
await expect(component).toContainText("titan-16");
|
|
});
|