1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-05-30 10:06:43 -04:00
parent 392fd50d3c
commit 4e765384bb
3 changed files with 7 additions and 4 deletions

View File

@ -68,6 +68,7 @@ exports[`<CephFs /> should render 'false' for Readonly when false is provided 1`
</span>
<span
class="value"
data-testid="cephfs-readonly"
>
false
</span>
@ -143,6 +144,7 @@ exports[`<CephFs /> should render 'false' for Readonly when not provided 1`] = `
</span>
<span
class="value"
data-testid="cephfs-readonly"
>
false
</span>
@ -218,6 +220,7 @@ exports[`<CephFs /> should render 'true' for Readonly when true is provided 1`]
</span>
<span
class="value"
data-testid="cephfs-readonly"
>
true
</span>

View File

@ -41,7 +41,7 @@ describe("<CephFs />", () => {
));
expect(result.container).toMatchSnapshot();
expect(result.getByTestId("cephfs-readonly").innerText).toBe("false");
expect(result.getByTestId("cephfs-readonly").innerHTML).toBe("false");
});
it("should render 'false' for Readonly when false is provided", () => {
@ -76,7 +76,7 @@ describe("<CephFs />", () => {
));
expect(result.container).toMatchSnapshot();
expect(result.getByTestId("cephfs-readonly").innerText).toBe("false");
expect(result.getByTestId("cephfs-readonly").innerHTML).toBe("false");
});
it("should render 'true' for Readonly when true is provided", () => {
@ -111,6 +111,6 @@ describe("<CephFs />", () => {
));
expect(result.container).toMatchSnapshot();
expect(result.getByTestId("cephfs-readonly").innerText).toBe("true");
expect(result.getByTestId("cephfs-readonly").innerHTML).toBe("true");
});
});

View File

@ -38,7 +38,7 @@ export function DrawerItem({
title={title}
>
<span className="name">{name}</span>
<span className="value" data-testId={valueTestId}>{displayBooleans(renderBoolean, children)}</span>
<span className="value" data-testid={valueTestId}>{displayBooleans(renderBoolean, children)}</span>
</div>
);
}