Fix Cypress tests for real

This commit is contained in:
Kalle (Sendou)
2021-12-25 23:26:52 +02:00
parent b30a0459df
commit 7af58ca5bb
3 changed files with 6 additions and 5 deletions

View File

@@ -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"
);

6
package-lock.json generated
View File

@@ -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",

View File

@@ -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 &&