issue-15 #21

Merged
sebastian merged 60 commits from issue-15 into main 2024-03-22 08:46:49 +01:00
22 changed files with 46 additions and 106 deletions
Showing only changes of commit e336bf19f9 - Show all commits

View File

@ -1,8 +1,8 @@
import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright'; import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright';
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import * as PATH from 'path'; import * as PATH from 'path';
import {GameModel} from "../../src/app/game-model/GameModel"; import {GameModel} from "../../src/app/projects/game-model/GameModel";
import {Gamesystem} from "../../src/app/game-model/gamesystems/Gamesystem"; import {Gamesystem} from "../../src/app/projects/game-model/gamesystems/Gamesystem";
test.describe('Adding Gamesystems', () => { test.describe('Adding Gamesystems', () => {

View File

@ -1,8 +1,8 @@
import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright'; import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright';
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import * as PATH from 'path'; import * as PATH from 'path';
import {GameModel} from "../../src/app/game-model/GameModel"; import {GameModel} from "../../src/app/projects/game-model/GameModel";
import {Gamesystem} from "../../src/app/game-model/gamesystems/Gamesystem"; import {Gamesystem} from "../../src/app/projects/game-model/gamesystems/Gamesystem";
test.describe('Removing Gamesystems', () => { test.describe('Removing Gamesystems', () => {

View File

@ -1,15 +1,6 @@
import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright';
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import * as PATH from 'path';
import {GameModel} from "../../../src/app/game-model/GameModel";
import {Gamesystem} from "../../src/app/game-model/gamesystems/Gamesystem";
import {ScriptAccount} from "../../../src/app/game-model/scriptAccounts/ScriptAccount";
import {ModelComponentType} from "../../../src/app/game-model/ModelComponentType";
import {SimpleGamesystem} from "../../../src/app/game-model/gamesystems/SimpleGamesystem";
import exp = require("node:constants");
import {end} from "electron-debug";
import {GamesystemTrainer} from "./GamesystemTrainer"; import {GamesystemTrainer} from "./GamesystemTrainer";
import {ProductGamesystem} from "../../../src/app/game-model/gamesystems/ProductGamesystem"; import {ProductGamesystem} from "../../../src/app/projects/game-model/gamesystems/ProductGamesystem";
test.describe('Test Create Gamesystems', () => { test.describe('Test Create Gamesystems', () => {
test('Test creating gamesystem with invalid name', async => { test('Test creating gamesystem with invalid name', async => {

View File

@ -1,13 +1,6 @@
import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright';
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import * as PATH from 'path'; import {GameModel} from "../../../src/app/projects/game-model/GameModel";
import {GameModel} from "../../../src/app/game-model/GameModel"; import {SimpleGamesystem} from "../../../src/app/projects/game-model/gamesystems/SimpleGamesystem";
import {Gamesystem} from "../../src/app/game-model/gamesystems/Gamesystem";
import {ScriptAccount} from "../../../src/app/game-model/scriptAccounts/ScriptAccount";
import {ModelComponentType} from "../../../src/app/game-model/ModelComponentType";
import {SimpleGamesystem} from "../../../src/app/game-model/gamesystems/SimpleGamesystem";
import exp = require("node:constants");
import {end} from "electron-debug";
import {GamesystemTrainer} from "./GamesystemTrainer"; import {GamesystemTrainer} from "./GamesystemTrainer";
test.describe('Test Find Gamesystems', () => { test.describe('Test Find Gamesystems', () => {
const GAMEMODELNAME: string = "GameModel"; const GAMEMODELNAME: string = "GameModel";

View File

@ -1,6 +1,6 @@
import {GameModel} from "../../../src/app/game-model/GameModel"; import {GameModel} from "../../../src/app/projects/game-model/GameModel";
import {SimpleGamesystem} from "../../../src/app/game-model/gamesystems/SimpleGamesystem"; import {SimpleGamesystem} from "../../../src/app/projects/game-model/gamesystems/SimpleGamesystem";
import {ProductGamesystem} from "../../../src/app/game-model/gamesystems/ProductGamesystem"; import {ProductGamesystem} from "../../../src/app/projects/game-model/gamesystems/ProductGamesystem";
export class GamesystemTrainer { export class GamesystemTrainer {

View File

@ -1,13 +1,5 @@
import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright';
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import * as PATH from 'path';
import {GameModel} from "../../../src/app/game-model/GameModel";
import {Gamesystem} from "../../src/app/game-model/gamesystems/Gamesystem";
import {ScriptAccount} from "../../../src/app/game-model/scriptAccounts/ScriptAccount";
import {ModelComponentType} from "../../../src/app/game-model/ModelComponentType";
import {SimpleGamesystem} from "../../../src/app/game-model/gamesystems/SimpleGamesystem"; import {SimpleGamesystem} from "../../../src/app/game-model/gamesystems/SimpleGamesystem";
import exp = require("node:constants");
import {end} from "electron-debug";
test.describe('Test SimpleGamesystem', () => { test.describe('Test SimpleGamesystem', () => {

View File

@ -2,8 +2,8 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import {GamesystemTrainer} from "../GamesystemTrainer"; import {GamesystemTrainer} from "../GamesystemTrainer";
import {SimpleActionTrainer} from "./SimpleActionTrainer"; import {SimpleActionTrainer} from "./SimpleActionTrainer";
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount"; import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount";
import {ScriptAccountAction} from "../../../../src/app/game-model/gamesystems/actions/ScriptAccountAction"; import {ScriptAccountAction} from "../../../../src/app/projects/game-model/gamesystems/actions/ScriptAccountAction";
test.describe('Test Create SimpleActions', () => { test.describe('Test Create SimpleActions', () => {
test('Test creating gamesystem with invalid name', async => { test('Test creating gamesystem with invalid name', async => {

View File

@ -2,9 +2,9 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import {GamesystemTrainer} from "../GamesystemTrainer"; import {GamesystemTrainer} from "../GamesystemTrainer";
import {SimpleActionTrainer} from "./SimpleActionTrainer"; import {SimpleActionTrainer} from "./SimpleActionTrainer";
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount"; import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount";
import {ScriptAccountAction} from "../../../../src/app/game-model/gamesystems/actions/ScriptAccountAction"; import {ScriptAccountAction} from "../../../../src/app/projects/game-model/gamesystems/actions/ScriptAccountAction";
import {SimpleTransition} from "../../../../src/app/game-model/gamesystems/transitions/SimpleTransition"; import {SimpleTransition} from "../../../../src/app/projects/game-model/gamesystems/transitions/SimpleTransition";
test.describe('Test Remove SimpleActions', () => { test.describe('Test Remove SimpleActions', () => {
test("Test Removing invalid Actions", async () => { test("Test Removing invalid Actions", async () => {

View File

@ -1,8 +1,8 @@
import {SimpleState} from "../../../../src/app/game-model/gamesystems/states/SimpleState"; import {SimpleState} from "../../../../src/app/projects/game-model/gamesystems/states/SimpleState";
import {SimpleTransition} from "../../../../src/app/game-model/gamesystems/transitions/SimpleTransition"; import {SimpleTransition} from "../../../../src/app/projects/game-model/gamesystems/transitions/SimpleTransition";
import {Script} from "node:vm"; import {Script} from "node:vm";
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount"; import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount";
import {ScriptAccountAction} from "../../../../src/app/game-model/gamesystems/actions/ScriptAccountAction"; import {ScriptAccountAction} from "../../../../src/app/projects/game-model/gamesystems/actions/ScriptAccountAction";
export class SimpleActionTrainer { export class SimpleActionTrainer {
static withEmptyActions() { static withEmptyActions() {

View File

@ -1,7 +1,7 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import {ScriptAccountCondition} from "../../../../src/app/game-model/gamesystems/conditions/ScriptAccountCondition"; import {ScriptAccountCondition} from "../../../../src/app/projects/game-model/gamesystems/conditions/ScriptAccountCondition";
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount"; import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount";
import exp = require("node:constants"); import exp = require("node:constants");
import {ConditionTrainer} from "./ConditionTrainer"; import {ConditionTrainer} from "./ConditionTrainer";
import {Conditional} from "@angular/compiler"; import {Conditional} from "@angular/compiler";

View File

@ -1,7 +1,7 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import {ScriptAccountCondition} from "../../../../src/app/game-model/gamesystems/conditions/ScriptAccountCondition"; import {ScriptAccountCondition} from "../../../../src/app/projects/game-model/gamesystems/conditions/ScriptAccountCondition";
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount"; import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount";
import exp = require("node:constants"); import exp = require("node:constants");
import {ConditionTrainer} from "./ConditionTrainer"; import {ConditionTrainer} from "./ConditionTrainer";
import {Conditional} from "@angular/compiler"; import {Conditional} from "@angular/compiler";

View File

@ -1,7 +1,7 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import {ScriptAccountCondition} from "../../../../src/app/game-model/gamesystems/conditions/ScriptAccountCondition"; import {ScriptAccountCondition} from "../../../../src/app/projects/game-model/gamesystems/conditions/ScriptAccountCondition";
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount"; import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount";
import exp = require("node:constants"); import exp = require("node:constants");
test.describe('Test Create Gamesystems', () => { test.describe('Test Create Gamesystems', () => {

View File

@ -1,7 +1,7 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import {ScriptAccountCondition} from "../../../../src/app/game-model/gamesystems/conditions/ScriptAccountCondition"; import {ScriptAccountCondition} from "../../../../src/app/projects/game-model/gamesystems/conditions/ScriptAccountCondition";
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount"; import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount";
import exp = require("node:constants"); import exp = require("node:constants");
import {ConditionTrainer} from "./ConditionTrainer"; import {ConditionTrainer} from "./ConditionTrainer";
test.describe('Test Expand Conditions', () => { test.describe('Test Expand Conditions', () => {

View File

@ -1,5 +1,5 @@
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount"; import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount";
import {ScriptAccountCondition} from "../../../../src/app/game-model/gamesystems/conditions/ScriptAccountCondition"; import {ScriptAccountCondition} from "../../../../src/app/projects/game-model/gamesystems/conditions/ScriptAccountCondition";
export class ConditionTrainer { export class ConditionTrainer {
static withSimpleCondition(): ScriptAccountCondition { static withSimpleCondition(): ScriptAccountCondition {

View File

@ -1,7 +1,7 @@
import {SimpleState} from "../../../../src/app/game-model/gamesystems/states/SimpleState"; import {SimpleState} from "../../../../src/app/projects/game-model/gamesystems/states/SimpleState";
import {SimpleTransition} from "../../../../src/app/game-model/gamesystems/transitions/SimpleTransition"; import {SimpleTransition} from "../../../../src/app/projects/game-model/gamesystems/transitions/SimpleTransition";
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount"; import {ScriptAccount} from "../../../../src/app/projects/game-model/scriptAccounts/ScriptAccount";
import {ScriptAccountCondition} from "../../../../src/app/game-model/gamesystems/conditions/ScriptAccountCondition"; import {ScriptAccountCondition} from "../../../../src/app/projects/game-model/gamesystems/conditions/ScriptAccountCondition";
export class TransitionConditionTrainer { export class TransitionConditionTrainer {
static withTransitionWithoutConditions() { static withTransitionWithoutConditions() {
const startingState = new SimpleState("StartingState", ""); const startingState = new SimpleState("StartingState", "");

View File

@ -1,17 +1,6 @@
import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright';
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import * as PATH from 'path';
import {GameModel} from "../../../src/app/game-model/GameModel";
import {Gamesystem} from "../../src/app/game-model/gamesystems/Gamesystem";
import {ScriptAccount} from "../../../src/app/game-model/scriptAccounts/ScriptAccount";
import {ModelComponentType} from "../../../src/app/game-model/ModelComponentType";
import {SimpleGamesystem} from "../../../src/app/game-model/gamesystems/SimpleGamesystem";
import exp = require("node:constants");
import {end} from "electron-debug";
import {GamesystemTrainer} from "./GamesystemTrainer";
import {ProductGamesystem} from "../../../src/app/game-model/gamesystems/ProductGamesystem";
import {ProductStateTrainer} from "./ProductStateTrainer"; import {ProductStateTrainer} from "./ProductStateTrainer";
import {SimpleState} from "../../../../src/app/game-model/gamesystems/states/SimpleState"; import {SimpleState} from "../../../../src/app/projects/game-model/gamesystems/states/SimpleState";
test.describe('Test Create ProductStates', () => { test.describe('Test Create ProductStates', () => {
test("Adding already existent ProductState", async () => { test("Adding already existent ProductState", async () => {

View File

@ -1,7 +1,7 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import {ProductStateTrainer} from "./ProductStateTrainer"; import {ProductStateTrainer} from "./ProductStateTrainer";
import {ProductState} from "../../../../src/app/game-model/gamesystems/states/ProductState"; import {ProductState} from "../../../../src/app/projects/game-model/gamesystems/states/ProductState";
import {SimpleGamesystem} from "../../../../src/app/game-model/gamesystems/SimpleGamesystem"; import {SimpleGamesystem} from "../../../../src/app/projects/game-model/gamesystems/SimpleGamesystem";
test.describe('Test Create ProductTransitions', () => { test.describe('Test Create ProductTransitions', () => {
test("Test ProductTransition Creation with invalid inputs", async ()=> { test("Test ProductTransition Creation with invalid inputs", async ()=> {
const gamesystem = ProductStateTrainer.givenFullProductGamesystemWithTwoStates(); const gamesystem = ProductStateTrainer.givenFullProductGamesystemWithTwoStates();

View File

@ -1,17 +1,5 @@
import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright';
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import * as PATH from 'path';
import {GameModel} from "../../../src/app/game-model/GameModel";
import {Gamesystem} from "../../src/app/game-model/gamesystems/Gamesystem";
import {ScriptAccount} from "../../../src/app/game-model/scriptAccounts/ScriptAccount";
import {ModelComponentType} from "../../../src/app/game-model/ModelComponentType";
import {SimpleGamesystem} from "../../../src/app/game-model/gamesystems/SimpleGamesystem";
import exp = require("node:constants");
import {end} from "electron-debug";
import {GamesystemTrainer} from "./GamesystemTrainer";
import {ProductGamesystem} from "../../../src/app/game-model/gamesystems/ProductGamesystem";
import {ProductStateTrainer} from "./ProductStateTrainer"; import {ProductStateTrainer} from "./ProductStateTrainer";
import {SimpleState} from "../../../../src/app/game-model/gamesystems/states/SimpleState";
test.describe('Test Check Equal of Innerstates', () => { test.describe('Test Check Equal of Innerstates', () => {
test("Test invalid input for equal checking", async()=> { test("Test invalid input for equal checking", async()=> {

View File

@ -1,17 +1,4 @@
import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright';
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import * as PATH from 'path';
import {GameModel} from "../../../src/app/game-model/GameModel";
import {Gamesystem} from "../../src/app/game-model/gamesystems/Gamesystem";
import {ScriptAccount} from "../../../src/app/game-model/scriptAccounts/ScriptAccount";
import {ModelComponentType} from "../../../src/app/game-model/ModelComponentType";
import {SimpleGamesystem} from "../../../src/app/game-model/gamesystems/SimpleGamesystem";
import exp = require("node:constants");
import {end} from "electron-debug";
import {GamesystemTrainer} from "./GamesystemTrainer";
import {ProductGamesystem} from "../../../src/app/game-model/gamesystems/ProductGamesystem";
import {ProductStateTrainer} from "./ProductStateTrainer";
import {SimpleState} from "../../../../src/app/game-model/gamesystems/states/SimpleState";
import {ProductSystemGenerationTrainer} from "./ProductSystemGenerationTrainer"; import {ProductSystemGenerationTrainer} from "./ProductSystemGenerationTrainer";
test.describe('Test Create ProductStates', () => { test.describe('Test Create ProductStates', () => {

View File

@ -1,7 +1,7 @@
import {ProductGamesystem} from "../../../../src/app/game-model/gamesystems/ProductGamesystem"; import {ProductGamesystem} from "../../../../src/app/projects/game-model/gamesystems/ProductGamesystem";
import {SimpleGamesystem} from "../../../../src/app/game-model/gamesystems/SimpleGamesystem"; import {SimpleGamesystem} from "../../../../src/app/projects/game-model/gamesystems/SimpleGamesystem";
import {ProductState} from "../../../../src/app/game-model/gamesystems/states/ProductState"; import {ProductState} from "../../../../src/app/projects/game-model/gamesystems/states/ProductState";
import {ProductTransition} from "../../../../src/app/game-model/gamesystems/transitions/ProductTransition"; import {ProductTransition} from "../../../../src/app/projects/game-model/gamesystems/transitions/ProductTransition";
export class ProductStateTrainer { export class ProductStateTrainer {
static INNERSTATE_LETTER_1 = "A"; static INNERSTATE_LETTER_1 = "A";

View File

@ -1,5 +1,5 @@
import {ProductGamesystem} from "../../../../src/app/game-model/gamesystems/ProductGamesystem"; import {ProductGamesystem} from "../../../../src/app/projects/game-model/gamesystems/ProductGamesystem";
import {SimpleGamesystem} from "../../../../src/app/game-model/gamesystems/SimpleGamesystem"; import {SimpleGamesystem} from "../../../../src/app/projects/game-model/gamesystems/SimpleGamesystem";
export class ProductSystemGenerationTrainer { export class ProductSystemGenerationTrainer {

View File

@ -1,10 +1,10 @@
import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright'; import { BrowserContext, ElectronApplication, Page, _electron as electron } from 'playwright';
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
import * as PATH from 'path'; import * as PATH from 'path';
import {GameModel} from "../../../src/app/game-model/GameModel"; import {GameModel} from "../../../src/app/projects/game-model/GameModel";
import {Gamesystem} from "../../src/app/game-model/gamesystems/Gamesystem"; import {Gamesystem} from "../../src/app/projects/game-model/gamesystems/Gamesystem";
import {ScriptAccount} from "../../../src/app/game-model/scriptAccounts/ScriptAccount"; import {ScriptAccount} from "../../../src/app/projects/game-model/scriptAccounts/ScriptAccount";
import {ModelComponentType} from "../../../src/app/game-model/ModelComponentType"; import {ModelComponentType} from "../../../src/app/projects/game-model/ModelComponentType";
test.describe('Test ScriptAccounts', () => { test.describe('Test ScriptAccounts', () => {