From 7af58ca5bb679e65ba23a68e9600605d493f7201 Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Sat, 25 Dec 2021 23:26:52 +0200 Subject: [PATCH] Fix Cypress tests for real --- .../{tournament.spec.ts => tournament-before-start.spec.ts} | 2 +- package-lock.json | 6 ++++-- prisma/seed/script.ts | 3 +-- 3 files changed, 6 insertions(+), 5 deletions(-) rename cypress/integration/{tournament.spec.ts => tournament-before-start.spec.ts} (96%) diff --git a/cypress/integration/tournament.spec.ts b/cypress/integration/tournament-before-start.spec.ts similarity index 96% rename from cypress/integration/tournament.spec.ts rename to cypress/integration/tournament-before-start.spec.ts index cc9ee2975..7977bf4a3 100644 --- a/cypress/integration/tournament.spec.ts +++ b/cypress/integration/tournament-before-start.spec.ts @@ -28,7 +28,7 @@ describe("Before tournament starts", () => { cy.getCy("map-pool-nav-link").click(); cy.contains("26 maps"); - cy.get('[alt="Moray Towers"]').should( + cy.get('[alt="Wahoo World"]').should( "have.class", "map-pool__stage-image-disabled" ); diff --git a/package-lock.json b/package-lock.json index e6041b651..7e7709e87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,10 +1,12 @@ { - "name": "remix-app-template", + "name": "sendou.ink", + "version": "3.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "remix-app-template", + "name": "sendou.ink", + "version": "3.0.0", "hasInstallScript": true, "dependencies": { "@dnd-kit/core": "^4.0.3", diff --git a/prisma/seed/script.ts b/prisma/seed/script.ts index 26b1645d9..253afb24e 100644 --- a/prisma/seed/script.ts +++ b/prisma/seed/script.ts @@ -11,7 +11,6 @@ import { import { readFile } from "fs/promises"; import path from "path"; import crypto from "crypto"; -import shuffle from "just-shuffle"; const prisma = new PrismaClient(); export async function seed(variation?: "check-in") { @@ -265,7 +264,7 @@ export async function seed(variation?: "check-in") { }; const connect: { id: number }[] = []; - for (const stage of shuffle(stages)) { + for (const stage of stages.sort((a, b) => a.name.localeCompare(b.name))) { if ( modesIncluded.SZ === 8 && modesIncluded.TC === 6 &&