Fix import of GameModel in Testcases
Some checks failed
E2E Testing / test (push) Failing after 1m39s
Some checks failed
E2E Testing / test (push) Failing after 1m39s
This commit is contained in:
parent
32656267ac
commit
6a8c34df52
@ -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/game-model/GameModel";
|
||||
import {Gamesystem} from "../../src/app/game-model/gamesystems/Gamesystem";
|
||||
import {GameModel} from "../../src/app/project/game-modelGameModel";
|
||||
import {Gamesystem} from "../../src/app/project/game-model/gamesystems/Gamesystem";
|
||||
|
||||
test.describe('Adding Gamesystems', () => {
|
||||
|
||||
|
@ -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/game-model/GameModel";
|
||||
import {Gamesystem} from "../../src/app/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('Removing Gamesystems', () => {
|
||||
|
||||
|
@ -1,15 +1,7 @@
|
||||
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/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 {ProductGamesystem} from "../../../src/app/project/gamemodel/gamesystems/ProductGamesystem";
|
||||
test.describe('Test Create Gamesystems', () => {
|
||||
|
||||
test('Test creating gamesystem with invalid name', async => {
|
||||
|
@ -1,11 +1,11 @@
|
||||
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/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 {GameModel} from "../../../src/app/project/gamemodel/GameModel";
|
||||
import {Gamesystem} from "../../src/app/project/gamemodel/gamesystems/Gamesystem";
|
||||
import {ScriptAccount} from "../../../src/app/project/gamemodel/scriptAccounts/ScriptAccount";
|
||||
import {ModelComponentType} from "../../../src/app/project/gamemodel/ModelComponentType";
|
||||
import {SimpleGamesystem} from "../../../src/app/project/gamemodel/gamesystems/SimpleGamesystem";
|
||||
import exp = require("node:constants");
|
||||
import {end} from "electron-debug";
|
||||
import {GamesystemTrainer} from "./GamesystemTrainer";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {GameModel} from "../../../src/app/game-model/GameModel";
|
||||
import {SimpleGamesystem} from "../../../src/app/game-model/gamesystems/SimpleGamesystem";
|
||||
import {ProductGamesystem} from "../../../src/app/game-model/gamesystems/ProductGamesystem";
|
||||
import {GameModel} from "../../../src/app/project/gamemodel/GameModel";
|
||||
import {SimpleGamesystem} from "../../../src/app/project/gamemodel/gamesystems/SimpleGamesystem";
|
||||
import {ProductGamesystem} from "../../../src/app/project/gamemodel/gamesystems/ProductGamesystem";
|
||||
|
||||
export class GamesystemTrainer {
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
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/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 {GameModel} from "../../../src/app/project/gamemodel/GameModel";
|
||||
import {Gamesystem} from "../../src/app/project/gamemodel/gamesystems/Gamesystem";
|
||||
import {ScriptAccount} from "../../../src/app/project/gamemodel/scriptAccounts/ScriptAccount";
|
||||
import {ModelComponentType} from "../../../src/app/project/gamemodel/ModelComponentType";
|
||||
import {SimpleGamesystem} from "../../../src/app/project/gamemodel/gamesystems/SimpleGamesystem";
|
||||
import exp = require("node:constants");
|
||||
import {end} from "electron-debug";
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import {GamesystemTrainer} from "../GamesystemTrainer";
|
||||
import {SimpleActionTrainer} from "./SimpleActionTrainer";
|
||||
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount";
|
||||
import {ScriptAccountAction} from "../../../../src/app/game-model/gamesystems/actions/ScriptAccountAction";
|
||||
import {ScriptAccount} from "../../../../src/app/project/gamemodel/scriptAccounts/ScriptAccount";
|
||||
import {ScriptAccountAction} from "../../../../src/app/project/gamemodel/gamesystems/actions/ScriptAccountAction";
|
||||
test.describe('Test Create SimpleActions', () => {
|
||||
|
||||
test('Test creating gamesystem with invalid name', async => {
|
||||
|
@ -2,9 +2,9 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import {GamesystemTrainer} from "../GamesystemTrainer";
|
||||
import {SimpleActionTrainer} from "./SimpleActionTrainer";
|
||||
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount";
|
||||
import {ScriptAccountAction} from "../../../../src/app/game-model/gamesystems/actions/ScriptAccountAction";
|
||||
import {SimpleTransition} from "../../../../src/app/game-model/gamesystems/transitions/SimpleTransition";
|
||||
import {ScriptAccount} from "../../../../src/app/project/gamemodel/scriptAccounts/ScriptAccount";
|
||||
import {ScriptAccountAction} from "../../../../src/app/project/gamemodel/gamesystems/actions/ScriptAccountAction";
|
||||
import {SimpleTransition} from "../../../../src/app/project/gamemodel/gamesystems/transitions/SimpleTransition";
|
||||
test.describe('Test Remove SimpleActions', () => {
|
||||
|
||||
test("Test Removing invalid Actions", async () => {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import {SimpleState} from "../../../../src/app/game-model/gamesystems/states/SimpleState";
|
||||
import {SimpleTransition} from "../../../../src/app/game-model/gamesystems/transitions/SimpleTransition";
|
||||
import {SimpleState} from "../../../../src/app/project/gamemodel/gamesystems/states/SimpleState";
|
||||
import {SimpleTransition} from "../../../../src/app/project/gamemodel/gamesystems/transitions/SimpleTransition";
|
||||
import {Script} from "node:vm";
|
||||
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount";
|
||||
import {ScriptAccountAction} from "../../../../src/app/game-model/gamesystems/actions/ScriptAccountAction";
|
||||
import {ScriptAccount} from "../../../../src/app/project/gamemodel/scriptAccounts/ScriptAccount";
|
||||
import {ScriptAccountAction} from "../../../../src/app/project/gamemodel/gamesystems/actions/ScriptAccountAction";
|
||||
|
||||
export class SimpleActionTrainer {
|
||||
static withEmptyActions() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
import { test, expect } from '@playwright/test';
|
||||
import {ScriptAccountCondition} from "../../../../src/app/game-model/gamesystems/conditions/ScriptAccountCondition";
|
||||
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount";
|
||||
import {ScriptAccountCondition} from "../../../../src/app/project/gamemodel/gamesystems/conditions/ScriptAccountCondition";
|
||||
import {ScriptAccount} from "../../../../src/app/project/gamemodel/scriptAccounts/ScriptAccount";
|
||||
import exp = require("node:constants");
|
||||
import {ConditionTrainer} from "./ConditionTrainer";
|
||||
import {Conditional} from "@angular/compiler";
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
import { test, expect } from '@playwright/test';
|
||||
import {ScriptAccountCondition} from "../../../../src/app/game-model/gamesystems/conditions/ScriptAccountCondition";
|
||||
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount";
|
||||
import {ScriptAccountCondition} from "../../../../src/app/project/gamemodel/gamesystems/conditions/ScriptAccountCondition";
|
||||
import {ScriptAccount} from "../../../../src/app/project/gamemodel/scriptAccounts/ScriptAccount";
|
||||
import exp = require("node:constants");
|
||||
import {ConditionTrainer} from "./ConditionTrainer";
|
||||
import {Conditional} from "@angular/compiler";
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
import { test, expect } from '@playwright/test';
|
||||
import {ScriptAccountCondition} from "../../../../src/app/game-model/gamesystems/conditions/ScriptAccountCondition";
|
||||
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount";
|
||||
import {ScriptAccountCondition} from "../../../../src/app/project/gamemodel/gamesystems/conditions/ScriptAccountCondition";
|
||||
import {ScriptAccount} from "../../../../src/app/project/gamemodel/scriptAccounts/ScriptAccount";
|
||||
import exp = require("node:constants");
|
||||
test.describe('Test Create Gamesystems', () => {
|
||||
|
||||
|
@ -1,8 +1,6 @@
|
||||
|
||||
import { test, expect } from '@playwright/test';
|
||||
import {ScriptAccountCondition} from "../../../../src/app/game-model/gamesystems/conditions/ScriptAccountCondition";
|
||||
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount";
|
||||
import exp = require("node:constants");
|
||||
import {ScriptAccountCondition} from "../../../../src/app/project/gamemodel/gamesystems/conditions/ScriptAccountCondition";
|
||||
import {ConditionTrainer} from "./ConditionTrainer";
|
||||
test.describe('Test Expand Conditions', () => {
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount";
|
||||
import {ScriptAccountCondition} from "../../../../src/app/game-model/gamesystems/conditions/ScriptAccountCondition";
|
||||
import {ScriptAccount} from "../../../../src/app/project/gamemodel/scriptAccounts/ScriptAccount";
|
||||
import {ScriptAccountCondition} from "../../../../src/app/project/gamemodel/gamesystems/conditions/ScriptAccountCondition";
|
||||
|
||||
export class ConditionTrainer {
|
||||
static withSimpleCondition(): ScriptAccountCondition {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import {SimpleState} from "../../../../src/app/game-model/gamesystems/states/SimpleState";
|
||||
import {SimpleTransition} from "../../../../src/app/game-model/gamesystems/transitions/SimpleTransition";
|
||||
import {ScriptAccount} from "../../../../src/app/game-model/scriptAccounts/ScriptAccount";
|
||||
import {ScriptAccountCondition} from "../../../../src/app/game-model/gamesystems/conditions/ScriptAccountCondition";
|
||||
import {SimpleState} from "../../../../src/app/project/gamemodel/gamesystems/states/SimpleState";
|
||||
import {SimpleTransition} from "../../../../src/app/project/gamemodel/gamesystems/transitions/SimpleTransition";
|
||||
import {ScriptAccount} from "../../../../src/app/project/gamemodel/scriptAccounts/ScriptAccount";
|
||||
import {ScriptAccountCondition} from "../../../../src/app/project/gamemodel/gamesystems/conditions/ScriptAccountCondition";
|
||||
export class TransitionConditionTrainer {
|
||||
static withTransitionWithoutConditions() {
|
||||
const startingState = new SimpleState("StartingState", "");
|
||||
|
@ -1,17 +1,7 @@
|
||||
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/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 {SimpleState} from "../../../../src/app/project/gamemodel/gamesystems/states/SimpleState";
|
||||
test.describe('Test Create ProductStates', () => {
|
||||
|
||||
test("Adding already existent ProductState", async () => {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import {ProductStateTrainer} from "./ProductStateTrainer";
|
||||
import {ProductState} from "../../../../src/app/game-model/gamesystems/states/ProductState";
|
||||
import {SimpleGamesystem} from "../../../../src/app/game-model/gamesystems/SimpleGamesystem";
|
||||
import {ProductState} from "../../../../src/app/project/gamemodel/gamesystems/states/ProductState";
|
||||
import {SimpleGamesystem} from "../../../../src/app/project/gamemodel/gamesystems/SimpleGamesystem";
|
||||
test.describe('Test Create ProductTransitions', () => {
|
||||
test("Test ProductTransition Creation with invalid inputs", async ()=> {
|
||||
const gamesystem = ProductStateTrainer.givenFullProductGamesystemWithTwoStates();
|
||||
|
@ -1,17 +1,5 @@
|
||||
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/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";
|
||||
test.describe('Test Check Equal of Innerstates', () => {
|
||||
|
||||
test("Test invalid input for equal checking", async()=> {
|
||||
|
@ -1,17 +1,4 @@
|
||||
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/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";
|
||||
test.describe('Test Create ProductStates', () => {
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import {ProductGamesystem} from "../../../../src/app/game-model/gamesystems/ProductGamesystem";
|
||||
import {SimpleGamesystem} from "../../../../src/app/game-model/gamesystems/SimpleGamesystem";
|
||||
import {ProductState} from "../../../../src/app/game-model/gamesystems/states/ProductState";
|
||||
import {ProductTransition} from "../../../../src/app/game-model/gamesystems/transitions/ProductTransition";
|
||||
import {ProductGamesystem} from "../../../../src/app/project/gamemodel/gamesystems/ProductGamesystem";
|
||||
import {SimpleGamesystem} from "../../../../src/app/project/gamemodel/gamesystems/SimpleGamesystem";
|
||||
import {ProductState} from "../../../../src/app/project/gamemodel/gamesystems/states/ProductState";
|
||||
import {ProductTransition} from "../../../../src/app/project/gamemodel/gamesystems/transitions/ProductTransition";
|
||||
|
||||
export class ProductStateTrainer {
|
||||
static INNERSTATE_LETTER_1 = "A";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {ProductGamesystem} from "../../../../src/app/game-model/gamesystems/ProductGamesystem";
|
||||
import {SimpleGamesystem} from "../../../../src/app/game-model/gamesystems/SimpleGamesystem";
|
||||
import {ProductGamesystem} from "../../../../src/app/project/gamemodel/gamesystems/ProductGamesystem";
|
||||
import {SimpleGamesystem} from "../../../../src/app/project/gamemodel/gamesystems/SimpleGamesystem";
|
||||
|
||||
export class ProductSystemGenerationTrainer {
|
||||
|
||||
|
@ -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/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 {GameModel} from "../../../src/app/project/gamemodel/GameModel";
|
||||
import {Gamesystem} from "../../src/app/project/gamemodel/gamesystems/Gamesystem";
|
||||
import {ScriptAccount} from "../../../src/app/project/gamemodel/scriptAccounts/ScriptAccount";
|
||||
import {ModelComponentType} from "../../../src/app/project/gamemodel/ModelComponentType";
|
||||
|
||||
test.describe('Test ScriptAccounts', () => {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user