From 75815578dca0b11933e3bce2a532b68255612a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Fri, 22 Mar 2024 08:10:22 +0100 Subject: [PATCH] Fix typo in gamemodel import path in test --- e2e/game-model/AddingGamesystems.spec.ts | 4 ++-- e2e/game-model/RemovingGamesystems.spec.ts | 5 +++-- e2e/game-model/gamesystems/CreateGamesystem.spec.ts | 2 +- e2e/game-model/gamesystems/FindGamesystem.spec.ts | 4 ++-- e2e/game-model/gamesystems/GamesystemTrainer.ts | 6 +++--- e2e/game-model/gamesystems/actions/AddActions.spec.ts | 4 ++-- e2e/game-model/gamesystems/actions/RemoveActions.spec.ts | 6 +++--- e2e/game-model/gamesystems/actions/SimpleActionTrainer.ts | 8 ++++---- .../conditions/AddTransitionConditions.spec.ts | 4 ++-- .../gamesystems/conditions/ConditionContradicting.spec.ts | 4 ++-- .../gamesystems/conditions/ConditionCreation.spec.ts | 4 ++-- .../gamesystems/conditions/ConditionExpansion.spec.ts | 4 ++-- e2e/game-model/gamesystems/conditions/ConditionTrainer.ts | 4 ++-- .../gamesystems/conditions/TransitionConditionTrainer.ts | 8 ++++---- .../productGamesystems/CreateProductStates.spec.ts | 2 +- .../productGamesystems/CreateProductTransitions.spec.ts | 4 ++-- .../gamesystems/productGamesystems/ProductStateTrainer.ts | 8 ++++---- .../productGamesystems/ProductSystemGenerationTrainer.ts | 4 ++-- e2e/game-model/scriptAccounts/ScriptAccountTest.spec.ts | 8 ++++---- 19 files changed, 47 insertions(+), 46 deletions(-) diff --git a/e2e/game-model/AddingGamesystems.spec.ts b/e2e/game-model/AddingGamesystems.spec.ts index 6a73c7c..9d6d13a 100644 --- a/e2e/game-model/AddingGamesystems.spec.ts +++ b/e2e/game-model/AddingGamesystems.spec.ts @@ -1,8 +1,8 @@ import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright'; import { test, expect } from '@playwright/test'; import * as PATH from 'path'; -import {GameModel} from "../../src/app/projects/game-model/GameModel"; -import {Gamesystem} from "../../src/app/projects/game-model/gamesystems/Gamesystem"; +import {GameModel} from "../../src/app/project/game-model/GameModel"; +import {Gamesystem} from "../../src/app/project/game-model/gamesystems/Gamesystem"; test.describe('Adding Gamesystems', () => { diff --git a/e2e/game-model/RemovingGamesystems.spec.ts b/e2e/game-model/RemovingGamesystems.spec.ts index 643214a..0caa1e1 100644 --- a/e2e/game-model/RemovingGamesystems.spec.ts +++ b/e2e/game-model/RemovingGamesystems.spec.ts @@ -1,8 +1,9 @@ import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright'; import { test, expect } from '@playwright/test'; import * as PATH from 'path'; -import {GameModel} from "../../src/app/projects/game-model/GameModel"; -import {Gamesystem} from "../../src/app/projects/game-model/gamesystems/Gamesystem"; + +import {Gamesystem} from "../../src/app/project/game-model/gamesystems/Gamesystem"; +import {GameModel} from "../../src/app/project/game-model/GameModel"; test.describe('Removing Gamesystems', () => { diff --git a/e2e/game-model/gamesystems/CreateGamesystem.spec.ts b/e2e/game-model/gamesystems/CreateGamesystem.spec.ts index 0a2710b..fffea92 100644 --- a/e2e/game-model/gamesystems/CreateGamesystem.spec.ts +++ b/e2e/game-model/gamesystems/CreateGamesystem.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@playwright/test'; import {GamesystemTrainer} from "./GamesystemTrainer"; -import {ProductGamesystem} from "../../../src/app/projects/game-model/gamesystems/ProductGamesystem"; +import {ProductGamesystem} from "../../../src/app/project/game-model/gamesystems/ProductGamesystem"; test.describe('Test Create Gamesystems', () => { test('Test creating gamesystem with invalid name', async => { diff --git a/e2e/game-model/gamesystems/FindGamesystem.spec.ts b/e2e/game-model/gamesystems/FindGamesystem.spec.ts index 859edf3..095432d 100644 --- a/e2e/game-model/gamesystems/FindGamesystem.spec.ts +++ b/e2e/game-model/gamesystems/FindGamesystem.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@playwright/test'; -import {GameModel} from "../../../src/app/projects/game-model/GameModel"; -import {SimpleGamesystem} from "../../../src/app/projects/game-model/gamesystems/SimpleGamesystem"; +import {GameModel} from "../../../src/app/project/game-model/GameModel"; +import {SimpleGamesystem} from "../../../src/app/project/game-model/gamesystems/SimpleGamesystem"; import {GamesystemTrainer} from "./GamesystemTrainer"; test.describe('Test Find Gamesystems', () => { const GAMEMODELNAME: string = "GameModel"; diff --git a/e2e/game-model/gamesystems/GamesystemTrainer.ts b/e2e/game-model/gamesystems/GamesystemTrainer.ts index 55b2e74..f70ce51 100644 --- a/e2e/game-model/gamesystems/GamesystemTrainer.ts +++ b/e2e/game-model/gamesystems/GamesystemTrainer.ts @@ -1,6 +1,6 @@ -import {GameModel} from "../../../src/app/projects/game-model/GameModel"; -import {SimpleGamesystem} from "../../../src/app/projects/game-model/gamesystems/SimpleGamesystem"; -import {ProductGamesystem} from "../../../src/app/projects/game-model/gamesystems/ProductGamesystem"; +import {GameModel} from "../../../src/app/project/game-model/GameModel"; +import {SimpleGamesystem} from "../../../src/app/project/game-model/gamesystems/SimpleGamesystem"; +import {ProductGamesystem} from "../../../src/app/project/game-model/gamesystems/ProductGamesystem"; export class GamesystemTrainer { diff --git a/e2e/game-model/gamesystems/actions/AddActions.spec.ts b/e2e/game-model/gamesystems/actions/AddActions.spec.ts index fb3ad35..19ea15e 100644 --- a/e2e/game-model/gamesystems/actions/AddActions.spec.ts +++ b/e2e/game-model/gamesystems/actions/AddActions.spec.ts @@ -2,8 +2,8 @@ import { test, expect } from '@playwright/test'; import {GamesystemTrainer} from "../GamesystemTrainer"; import {SimpleActionTrainer} from "./SimpleActionTrainer"; -import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount"; -import {ScriptAccountAction} from "../../../../src/app/projects/game-model/gamesystems/actions/ScriptAccountAction"; +import {ScriptAccount} from "../../../../src/app/project/game-model/scriptAccounts/ScriptAccount"; +import {ScriptAccountAction} from "../../../../src/app/project/game-model/gamesystems/actions/ScriptAccountAction"; test.describe('Test Create SimpleActions', () => { test('Test creating gamesystem with invalid name', async => { diff --git a/e2e/game-model/gamesystems/actions/RemoveActions.spec.ts b/e2e/game-model/gamesystems/actions/RemoveActions.spec.ts index 69f29e1..40cd9a4 100644 --- a/e2e/game-model/gamesystems/actions/RemoveActions.spec.ts +++ b/e2e/game-model/gamesystems/actions/RemoveActions.spec.ts @@ -2,9 +2,9 @@ import { test, expect } from '@playwright/test'; import {GamesystemTrainer} from "../GamesystemTrainer"; import {SimpleActionTrainer} from "./SimpleActionTrainer"; -import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount"; -import {ScriptAccountAction} from "../../../../src/app/projects/game-model/gamesystems/actions/ScriptAccountAction"; -import {SimpleTransition} from "../../../../src/app/projects/game-model/gamesystems/transitions/SimpleTransition"; +import {ScriptAccount} from "../../../../src/app/project/game-model/scriptAccounts/ScriptAccount"; +import {ScriptAccountAction} from "../../../../src/app/project/game-model/gamesystems/actions/ScriptAccountAction"; +import {SimpleTransition} from "../../../../src/app/project/game-model/gamesystems/transitions/SimpleTransition"; test.describe('Test Remove SimpleActions', () => { test("Test Removing invalid Actions", async () => { diff --git a/e2e/game-model/gamesystems/actions/SimpleActionTrainer.ts b/e2e/game-model/gamesystems/actions/SimpleActionTrainer.ts index 4b68c63..1e0b7d3 100644 --- a/e2e/game-model/gamesystems/actions/SimpleActionTrainer.ts +++ b/e2e/game-model/gamesystems/actions/SimpleActionTrainer.ts @@ -1,8 +1,8 @@ -import {SimpleState} from "../../../../src/app/projects/game-model/gamesystems/states/SimpleState"; -import {SimpleTransition} from "../../../../src/app/projects/game-model/gamesystems/transitions/SimpleTransition"; +import {SimpleState} from "../../../../src/app/project/game-model/gamesystems/states/SimpleState"; +import {SimpleTransition} from "../../../../src/app/project/game-model/gamesystems/transitions/SimpleTransition"; import {Script} from "node:vm"; -import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount"; -import {ScriptAccountAction} from "../../../../src/app/projects/game-model/gamesystems/actions/ScriptAccountAction"; +import {ScriptAccount} from "../../../../src/app/project/game-model/scriptAccounts/ScriptAccount"; +import {ScriptAccountAction} from "../../../../src/app/project/game-model/gamesystems/actions/ScriptAccountAction"; export class SimpleActionTrainer { static withEmptyActions() { diff --git a/e2e/game-model/gamesystems/conditions/AddTransitionConditions.spec.ts b/e2e/game-model/gamesystems/conditions/AddTransitionConditions.spec.ts index 32203c5..5cb1797 100644 --- a/e2e/game-model/gamesystems/conditions/AddTransitionConditions.spec.ts +++ b/e2e/game-model/gamesystems/conditions/AddTransitionConditions.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from '@playwright/test'; -import {ScriptAccountCondition} from "../../../../src/app/projects/game-model/gamesystems/conditions/ScriptAccountCondition"; -import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount"; +import {ScriptAccountCondition} from "../../../../src/app/project/game-model/gamesystems/conditions/ScriptAccountCondition"; +import {ScriptAccount} from "../../../../src/app/project/game-model/scriptAccounts/ScriptAccount"; import exp = require("node:constants"); import {ConditionTrainer} from "./ConditionTrainer"; import {Conditional} from "@angular/compiler"; diff --git a/e2e/game-model/gamesystems/conditions/ConditionContradicting.spec.ts b/e2e/game-model/gamesystems/conditions/ConditionContradicting.spec.ts index e21bcf7..d71e5ef 100644 --- a/e2e/game-model/gamesystems/conditions/ConditionContradicting.spec.ts +++ b/e2e/game-model/gamesystems/conditions/ConditionContradicting.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from '@playwright/test'; -import {ScriptAccountCondition} from "../../../../src/app/projects/game-model/gamesystems/conditions/ScriptAccountCondition"; -import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount"; +import {ScriptAccountCondition} from "../../../../src/app/project/game-model/gamesystems/conditions/ScriptAccountCondition"; +import {ScriptAccount} from "../../../../src/app/project/game-model/scriptAccounts/ScriptAccount"; import exp = require("node:constants"); import {ConditionTrainer} from "./ConditionTrainer"; import {Conditional} from "@angular/compiler"; diff --git a/e2e/game-model/gamesystems/conditions/ConditionCreation.spec.ts b/e2e/game-model/gamesystems/conditions/ConditionCreation.spec.ts index c724edd..112de84 100644 --- a/e2e/game-model/gamesystems/conditions/ConditionCreation.spec.ts +++ b/e2e/game-model/gamesystems/conditions/ConditionCreation.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from '@playwright/test'; -import {ScriptAccountCondition} from "../../../../src/app/projects/game-model/gamesystems/conditions/ScriptAccountCondition"; -import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount"; +import {ScriptAccountCondition} from "../../../../src/app/project/game-model/gamesystems/conditions/ScriptAccountCondition"; +import {ScriptAccount} from "../../../../src/app/project/game-model/scriptAccounts/ScriptAccount"; import exp = require("node:constants"); test.describe('Test Create Gamesystems', () => { diff --git a/e2e/game-model/gamesystems/conditions/ConditionExpansion.spec.ts b/e2e/game-model/gamesystems/conditions/ConditionExpansion.spec.ts index 560f282..bd5b2cb 100644 --- a/e2e/game-model/gamesystems/conditions/ConditionExpansion.spec.ts +++ b/e2e/game-model/gamesystems/conditions/ConditionExpansion.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from '@playwright/test'; -import {ScriptAccountCondition} from "../../../../src/app/projects/game-model/gamesystems/conditions/ScriptAccountCondition"; -import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount"; +import {ScriptAccountCondition} from "../../../../src/app/project/game-model/gamesystems/conditions/ScriptAccountCondition"; +import {ScriptAccount} from "../../../../src/app/project/game-model/scriptAccounts/ScriptAccount"; import exp = require("node:constants"); import {ConditionTrainer} from "./ConditionTrainer"; test.describe('Test Expand Conditions', () => { diff --git a/e2e/game-model/gamesystems/conditions/ConditionTrainer.ts b/e2e/game-model/gamesystems/conditions/ConditionTrainer.ts index 6d4dc44..47718d3 100644 --- a/e2e/game-model/gamesystems/conditions/ConditionTrainer.ts +++ b/e2e/game-model/gamesystems/conditions/ConditionTrainer.ts @@ -1,5 +1,5 @@ -import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount"; -import {ScriptAccountCondition} from "../../../../src/app/projects/game-model/gamesystems/conditions/ScriptAccountCondition"; +import {ScriptAccount} from "../../../../src/app/project/game-model/scriptAccounts/ScriptAccount"; +import {ScriptAccountCondition} from "../../../../src/app/project/game-model/gamesystems/conditions/ScriptAccountCondition"; export class ConditionTrainer { static withSimpleCondition(): ScriptAccountCondition { diff --git a/e2e/game-model/gamesystems/conditions/TransitionConditionTrainer.ts b/e2e/game-model/gamesystems/conditions/TransitionConditionTrainer.ts index b219670..7c94d20 100644 --- a/e2e/game-model/gamesystems/conditions/TransitionConditionTrainer.ts +++ b/e2e/game-model/gamesystems/conditions/TransitionConditionTrainer.ts @@ -1,7 +1,7 @@ -import {SimpleState} from "../../../../src/app/projects/game-model/gamesystems/states/SimpleState"; -import {SimpleTransition} from "../../../../src/app/projects/game-model/gamesystems/transitions/SimpleTransition"; -import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount"; -import {ScriptAccountCondition} from "../../../../src/app/projects/game-model/gamesystems/conditions/ScriptAccountCondition"; +import {SimpleState} from "../../../../src/app/project/game-model/gamesystems/states/SimpleState"; +import {SimpleTransition} from "../../../../src/app/project/game-model/gamesystems/transitions/SimpleTransition"; +import {ScriptAccount} from "../../../../src/app/project/game-model/scriptAccounts/ScriptAccount"; +import {ScriptAccountCondition} from "../../../../src/app/project/game-model/gamesystems/conditions/ScriptAccountCondition"; export class TransitionConditionTrainer { static withTransitionWithoutConditions() { const startingState = new SimpleState("StartingState", ""); diff --git a/e2e/game-model/gamesystems/productGamesystems/CreateProductStates.spec.ts b/e2e/game-model/gamesystems/productGamesystems/CreateProductStates.spec.ts index 990a1f7..0e35828 100644 --- a/e2e/game-model/gamesystems/productGamesystems/CreateProductStates.spec.ts +++ b/e2e/game-model/gamesystems/productGamesystems/CreateProductStates.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@playwright/test'; import {ProductStateTrainer} from "./ProductStateTrainer"; -import {SimpleState} from "../../../../src/app/projects/game-model/gamesystems/states/SimpleState"; +import {SimpleState} from "../../../../src/app/project/game-model/gamesystems/states/SimpleState"; test.describe('Test Create ProductStates', () => { test("Adding already existent ProductState", async () => { diff --git a/e2e/game-model/gamesystems/productGamesystems/CreateProductTransitions.spec.ts b/e2e/game-model/gamesystems/productGamesystems/CreateProductTransitions.spec.ts index ccf4186..44b3dce 100644 --- a/e2e/game-model/gamesystems/productGamesystems/CreateProductTransitions.spec.ts +++ b/e2e/game-model/gamesystems/productGamesystems/CreateProductTransitions.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from '@playwright/test'; import {ProductStateTrainer} from "./ProductStateTrainer"; -import {ProductState} from "../../../../src/app/projects/game-model/gamesystems/states/ProductState"; -import {SimpleGamesystem} from "../../../../src/app/projects/game-model/gamesystems/SimpleGamesystem"; +import {ProductState} from "../../../../src/app/project/game-model/gamesystems/states/ProductState"; +import {SimpleGamesystem} from "../../../../src/app/project/game-model/gamesystems/SimpleGamesystem"; test.describe('Test Create ProductTransitions', () => { test("Test ProductTransition Creation with invalid inputs", async ()=> { const gamesystem = ProductStateTrainer.givenFullProductGamesystemWithTwoStates(); diff --git a/e2e/game-model/gamesystems/productGamesystems/ProductStateTrainer.ts b/e2e/game-model/gamesystems/productGamesystems/ProductStateTrainer.ts index 5f57cb8..a9a2d9c 100644 --- a/e2e/game-model/gamesystems/productGamesystems/ProductStateTrainer.ts +++ b/e2e/game-model/gamesystems/productGamesystems/ProductStateTrainer.ts @@ -1,7 +1,7 @@ -import {ProductGamesystem} from "../../../../src/app/projects/game-model/gamesystems/ProductGamesystem"; -import {SimpleGamesystem} from "../../../../src/app/projects/game-model/gamesystems/SimpleGamesystem"; -import {ProductState} from "../../../../src/app/projects/game-model/gamesystems/states/ProductState"; -import {ProductTransition} from "../../../../src/app/projects/game-model/gamesystems/transitions/ProductTransition"; +import {ProductGamesystem} from "../../../../src/app/project/game-model/gamesystems/ProductGamesystem"; +import {SimpleGamesystem} from "../../../../src/app/project/game-model/gamesystems/SimpleGamesystem"; +import {ProductState} from "../../../../src/app/project/game-model/gamesystems/states/ProductState"; +import {ProductTransition} from "../../../../src/app/project/game-model/gamesystems/transitions/ProductTransition"; export class ProductStateTrainer { static INNERSTATE_LETTER_1 = "A"; diff --git a/e2e/game-model/gamesystems/productGamesystems/ProductSystemGenerationTrainer.ts b/e2e/game-model/gamesystems/productGamesystems/ProductSystemGenerationTrainer.ts index b3f585f..2d6011e 100644 --- a/e2e/game-model/gamesystems/productGamesystems/ProductSystemGenerationTrainer.ts +++ b/e2e/game-model/gamesystems/productGamesystems/ProductSystemGenerationTrainer.ts @@ -1,5 +1,5 @@ -import {ProductGamesystem} from "../../../../src/app/projects/game-model/gamesystems/ProductGamesystem"; -import {SimpleGamesystem} from "../../../../src/app/projects/game-model/gamesystems/SimpleGamesystem"; +import {ProductGamesystem} from "../../../../src/app/project/game-model/gamesystems/ProductGamesystem"; +import {SimpleGamesystem} from "../../../../src/app/project/game-model/gamesystems/SimpleGamesystem"; export class ProductSystemGenerationTrainer { diff --git a/e2e/game-model/scriptAccounts/ScriptAccountTest.spec.ts b/e2e/game-model/scriptAccounts/ScriptAccountTest.spec.ts index 88c6ba7..27aaed2 100644 --- a/e2e/game-model/scriptAccounts/ScriptAccountTest.spec.ts +++ b/e2e/game-model/scriptAccounts/ScriptAccountTest.spec.ts @@ -1,10 +1,10 @@ import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright'; import { test, expect } from '@playwright/test'; import * as PATH from 'path'; -import {GameModel} from "../../../src/app/projects/game-model/GameModel"; -import {Gamesystem} from "../../src/app/projects/game-model/gamesystems/Gamesystem"; -import {ScriptAccount} from "../../../src/app/projects/game-model/scriptAccounts/ScriptAccount"; -import {ModelComponentType} from "../../../src/app/projects/game-model/ModelComponentType"; +import {GameModel} from "../../../src/app/project/game-model/GameModel"; +import {Gamesystem} from "../../src/app/project/game-model/gamesystems/Gamesystem"; +import {ScriptAccount} from "../../../src/app/project/game-model/scriptAccounts/ScriptAccount"; +import {ModelComponentType} from "../../../src/app/project/game-model/ModelComponentType"; test.describe('Test ScriptAccounts', () => {