From b712136a6b6f0d181341684b0791936f668a86cb Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 20 Jun 2023 09:56:58 +0100 Subject: [PATCH] There was a chance or URL overlap - removing this chance. --- qa-core/src/internal-api/fixtures/applications.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/qa-core/src/internal-api/fixtures/applications.ts b/qa-core/src/internal-api/fixtures/applications.ts index 542d4345dc..01dd18fc6a 100644 --- a/qa-core/src/internal-api/fixtures/applications.ts +++ b/qa-core/src/internal-api/fixtures/applications.ts @@ -1,19 +1,23 @@ import { generator } from "../../shared" import { CreateAppRequest } from "../../types" +function uniqueWord() { + return generator.word() + generator.hash() +} + export const generateApp = ( overrides: Partial = {} ): CreateAppRequest => ({ - name: generator.word() + generator.hash(), - url: `/${generator.word() + generator.hash()}`, + name: uniqueWord(), + url: `/${uniqueWord()}`, ...overrides, }) // Applications type doesn't work here, save to add useTemplate parameter? export const appFromTemplate = (): CreateAppRequest => { return { - name: generator.word(), - url: `/${generator.word()}`, + name: uniqueWord(), + url: `/${uniqueWord()}`, // @ts-ignore useTemplate: "true", templateName: "Near Miss Register",