Skip to content

Commit

Permalink
use schule from helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jaggarnaut committed Nov 25, 2024
1 parent e63de78 commit 827e6f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Import.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import path from "path";
import fs from "fs";
import { fileURLToPath } from "url";

// schulen cannot be deleted yet, so we use this testschule, which should already exist
import { testschule665 } from "../base/organisation.ts";

const PW: string = process.env.PW as string;
const ADMIN: string = process.env.USER as string;
const FRONTEND_URL: string = process.env.FRONTEND_URL || "";
let personImportPage: PersonImportViewPage = undefined as unknown as PersonImportViewPage;

// schulen cannot be deleted yet, so we use this testschule, which should already exist
const schulname = "Testschule-PW665";

test.describe(`Testfälle für den Benutzerimport": Umgebung: ${process.env.UMGEBUNG}: URL: ${process.env.FRONTEND_URL}:`, () => {
// convert csv to array to make person data accessible, also trim data and filter empty lines
const filename: string = fileURLToPath(import.meta.url);
Expand Down Expand Up @@ -52,7 +52,7 @@ test.describe(`Testfälle für den Benutzerimport": Umgebung: ${process.env.UMGE
await test.step(``, async () => {

// select schule
await personImportPage.schuleSelectCombobox.searchByTitle(schulname);
await personImportPage.schuleSelectCombobox.searchByTitle(testschule665);

// select rolle
await personImportPage.rolleSelectInput.click();
Expand Down

0 comments on commit 827e6f2

Please sign in to comment.