Skip to content

Commit e491fee

Browse files
PYIC-7910 Move pages and contexts to config
1 parent 354ee11 commit e491fee

7 files changed

Lines changed: 6 additions & 6 deletions

File tree

browser-tests/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ COPY ./browser-tests/snapshot-tests ./snapshot-tests
1212
COPY ./browser-tests/playwright.config.ts ./
1313
COPY ./browser-tests/tsconfig.json ./
1414
COPY ../views/ipv/page ../views/ipv/page
15-
COPY ../src/test-utils/pages-and-contexts.ts ../src/test-utils/pages-and-contexts.ts
15+
COPY ../src/config/pages-and-contexts.ts ../src/config/pages-and-contexts.ts
1616

1717
CMD ["npm run test"]

browser-tests/data/pagesAndContexts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {pagesAndContexts} from "../../src/test-utils/pages-and-contexts";
1+
import {pagesAndContexts} from "../../src/config/pages-and-contexts";
22

33
type TestFn = (pageName: string, context: string | undefined, language: string, url: string) => void;
44

browser-tests/snapshot-tests/snapshot.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import fs from "fs";
44
import {
55
iteratePagesAndContexts
66
} from "../data/pagesAndContexts";
7-
import { pagesAndContexts } from "../../src/test-utils/pages-and-contexts";
7+
import { pagesAndContexts } from "../../src/config/pages-and-contexts";
88

99
test.describe.parallel("Snapshot tests", () => {
1010
test.setTimeout(120000);

src/app/development/middleware.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const pagesAndContextsStub = {
1717
},
1818
};
1919
const middleware = proxyquire("./middleware", {
20-
"../../test-utils/pages-and-contexts": pagesAndContextsStub,
20+
"../../config/pages-and-contexts": pagesAndContextsStub,
2121
"fs/promises": fsReadDirStub,
2222
});
2323

src/app/development/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { generateQrCodeImageData } from "../shared/qrCodeHelper";
1010
import { getAppStoreRedirectUrl } from "../shared/appDownloadHelper";
1111
import PAGES from "../../constants/ipv-pages";
1212
import { getIpvPageTemplatePath, getTemplatePath } from "../../lib/paths";
13-
import { pagesAndContexts } from "../../test-utils/pages-and-contexts";
13+
import { pagesAndContexts } from "../../config/pages-and-contexts";
1414

1515
interface RadioOption {
1616
text: string;

src/config/nunjucks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { kebabCaseToPascalCase } from "../app/shared/stringHelper";
66
import config from "./config";
77
import { logger } from "../lib/logger";
88
import { getIpvPageTemplatePath } from "../lib/paths";
9-
import { pagesAndContexts } from "../test-utils/pages-and-contexts";
9+
import { pagesAndContexts } from "./pages-and-contexts";
1010

1111
interface FilterContext {
1212
ctx: {

0 commit comments

Comments
 (0)