Skip to content

Commit

Permalink
72 e2e test with playwright (#88)
Browse files Browse the repository at this point in the history
* e2e tests

* fix of typechceck error
  • Loading branch information
JurreBrandsenInfoSupport committed Apr 11, 2024
1 parent 07ace0a commit 08f6eec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/server/api/trpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { ZodError } from "zod";

import { getServerAuthSession } from "~/server/auth";
import { db } from "~/server/db";
import { env } from "~/env";

/**
* 1. CONTEXT
Expand Down
5 changes: 4 additions & 1 deletion tests/tech-survey.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ const navigateAndCheckSurveyPage = async (
selectedRoles = roles;
} else {
selectedRoles = (await landingPage.selectRandomRoles()).filter(
(role) => role !== undefined,

(role): role is string => typeof role === "string",
);
}


await landingPage.navigateToSurveyPage();
await surveyPage.getCurrentURL();
const sortedSelectedRoles =
Expand Down

0 comments on commit 08f6eec

Please sign in to comment.