Skip to content

Commit

Permalink
Merge pull request #129 from keitaroinc/fix-tests
Browse files Browse the repository at this point in the history
Fix Failing Tests
  • Loading branch information
gocemitevski authored Oct 13, 2023
2 parents d897575 + 95919d6 commit 9f51e8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/__tests__/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe("App.tsx tests", () => {
fireEvent.change(rangeElement, { target: { value: "5" } });
const headlinePreviewElement = screen.getByTestId(/canvasHeadlineTitle/i);
const styles = window.getComputedStyle(headlinePreviewElement);
expect(styles.gridColumnStart).toBe("5");
expect(styles.left).toBe("5em");
});

it("should change headline vertical position", () => {
Expand All @@ -71,7 +71,7 @@ describe("App.tsx tests", () => {
fireEvent.change(rangeElement, { target: { value: "5" } });
const headlinePreviewElement = screen.getByTestId(/canvasHeadlineTitle/i);
const styles = window.getComputedStyle(headlinePreviewElement);
expect(styles.gridRowStart).toBe("5");
expect(styles.top).toBe("5em");
});
});

Expand All @@ -97,7 +97,7 @@ describe("App.tsx tests", () => {
fireEvent.change(rangeElement, { target: { value: "5" } });
const logoPreviewElement = screen.getByTestId(/canvasLogoPreview/i);
const styles = window.getComputedStyle(logoPreviewElement);
expect(styles.gridColumnStart).toBe("5");
expect(styles.left).toBe("5em");
});

it("should change logo vertical position", () => {
Expand All @@ -108,7 +108,7 @@ describe("App.tsx tests", () => {
fireEvent.change(rangeElement, { target: { value: "5" } });
const logoPreviewElement = screen.getByTestId(/canvasLogoPreview/i);
const styles = window.getComputedStyle(logoPreviewElement);
expect(styles.gridRowStart).toBe("5");
expect(styles.bottom).toBe("5em");
});
});
});

0 comments on commit 9f51e8e

Please sign in to comment.