Add .prettierrc.json and refactor test files for improved formatting consistency:

- Introduced `.prettierrc.json` to enforce consistent code formatting across the project.
- Updated unit and e2e test files to address formatting issues, improve readability, and ensure alignment with the new Prettier configuration.
This commit is contained in:
Jeppe Bundgaard
2026-04-13 09:13:27 +02:00
parent f040614f46
commit b39b458f4f
149 changed files with 7212 additions and 6178 deletions
+7 -16
View File
@@ -1,19 +1,13 @@
import { expect, test } from "@playwright/test";
import { loginAsOperator, loginAsUser } from "../fixtures/authHelpers";
import {
attachPageHealthGuards,
expectBodyHasContent,
expectOneVisible,
requiredEnv,
settlePage,
} from "./helpers";
import { attachPageHealthGuards, expectBodyHasContent, expectOneVisible, requiredEnv, settlePage } from "./helpers";
const liveSmokeEnabled = Boolean(
process.env.PLAYWRIGHT_BASE_URL
&& process.env.PLAYWRIGHT_USER_CUSTOMER_NUMBER
&& process.env.PLAYWRIGHT_USER_PASSWORD
&& process.env.PLAYWRIGHT_OPERATOR_USER_ID
&& process.env.PLAYWRIGHT_OPERATOR_PASSWORD,
process.env.PLAYWRIGHT_BASE_URL &&
process.env.PLAYWRIGHT_USER_CUSTOMER_NUMBER &&
process.env.PLAYWRIGHT_USER_PASSWORD &&
process.env.PLAYWRIGHT_OPERATOR_USER_ID &&
process.env.PLAYWRIGHT_OPERATOR_PASSWORD
);
function getLiveSettings() {
@@ -84,10 +78,7 @@ test.describe("Live smoke release gate", () => {
await page.goto(`/admin/${departmentId}/modules/pos`);
await settlePage(page);
await expect(page).toHaveURL(new RegExp(`/admin/${departmentId}/modules/pos(?:\\?.*)?$`));
await expectOneVisible([
page.getByTestId("pos-step-1"),
page.getByTestId("pos-mobile-step-1-shell"),
]);
await expectOneVisible([page.getByTestId("pos-step-1"), page.getByTestId("pos-mobile-step-1-shell")]);
await guards.expectHealthy();
guards.dispose();