Skip to content

Commit

Permalink
web: Fix a bunch of typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Apr 26, 2024
1 parent dc24960 commit d88d1f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/src/components/storage/PartitionsField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const BootLabel = ({ bootDevice, configureBoot }) => {
};

// TODO: Extract VolumesTable or at least VolumeRow and all related internal
// comonents to a new file.
// components to a new file.

/**
* @component
Expand Down
8 changes: 4 additions & 4 deletions web/src/components/storage/PartitionsField.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ describe("if there are volumes", () => {
});

// FIXME: improve at least the test description
it("does not allow reseting the volume location when already using the default location", async () => {
it("does not allow resetting the volume location when already using the default location", async () => {
const { user } = await expandField();

const [, body] = await screen.findAllByRole("rowgroup");
Expand All @@ -360,12 +360,12 @@ describe("if there are volumes", () => {
expect(within(row).queryByRole("menuitem", { name: "Reset location" })).toBeNull();
});

describe("and a volume has a non defautl location", () => {
describe("and a volume has a non default location", () => {
beforeEach(() => {
props.volumes = [{ ...homeVolume, target: "NEW_PARTITION", targetDevice: sda }];
});

it("allows reseting the volume location", async () => {
it("allows resetting the volume location", async () => {
const { user } = await expandField();

const [, body] = await screen.findAllByRole("rowgroup");
Expand All @@ -380,7 +380,7 @@ describe("if there are volumes", () => {
])
);

// NOTE: sadly we cannot peform the below check because the component is
// NOTE: sadly we cannot perform the below check because the component is
// always receiving the same mocked props and will still having a /home as
// "Partition at /dev/sda"
// await within(body).findByRole("row", { name: "/home XFS at least 1 KiB Partition at installation device" });
Expand Down

0 comments on commit d88d1f0

Please sign in to comment.