chore: save WIP before workstation switch
This commit is contained in:
+12
-10
@@ -94,10 +94,11 @@ test.describe('Elo Rating Updates', () => {
|
||||
|
||||
test('Elo rating updates after match upload', async ({ page }) => {
|
||||
// Step 1: Create test players with known initial ratings
|
||||
const ts = Date.now();
|
||||
const player1 = await prisma.player.create({
|
||||
data: {
|
||||
name: 'Elo Test Player 1',
|
||||
normalizedName: 'elo test player 1',
|
||||
name: `Elo Test Player 1 ${ts}`,
|
||||
normalizedName: `elo_test_player_1_${ts}`,
|
||||
currentElo: 1500,
|
||||
gamesPlayed: 0,
|
||||
wins: 0,
|
||||
@@ -107,8 +108,8 @@ test.describe('Elo Rating Updates', () => {
|
||||
|
||||
const player2 = await prisma.player.create({
|
||||
data: {
|
||||
name: 'Elo Test Player 2',
|
||||
normalizedName: 'elo test player 2',
|
||||
name: `Elo Test Player 2 ${ts}`,
|
||||
normalizedName: `elo_test_player_2_${ts}`,
|
||||
currentElo: 1500,
|
||||
gamesPlayed: 0,
|
||||
wins: 0,
|
||||
@@ -118,8 +119,8 @@ test.describe('Elo Rating Updates', () => {
|
||||
|
||||
const player3 = await prisma.player.create({
|
||||
data: {
|
||||
name: 'Elo Test Player 3',
|
||||
normalizedName: 'elo test player 3',
|
||||
name: `Elo Test Player 3 ${ts}`,
|
||||
normalizedName: `elo_test_player_3_${ts}`,
|
||||
currentElo: 1500,
|
||||
gamesPlayed: 0,
|
||||
wins: 0,
|
||||
@@ -129,8 +130,8 @@ test.describe('Elo Rating Updates', () => {
|
||||
|
||||
const player4 = await prisma.player.create({
|
||||
data: {
|
||||
name: 'Elo Test Player 4',
|
||||
normalizedName: 'elo test player 4',
|
||||
name: `Elo Test Player 4 ${ts}`,
|
||||
normalizedName: `elo_test_player_4_${ts}`,
|
||||
currentElo: 1500,
|
||||
gamesPlayed: 0,
|
||||
wins: 0,
|
||||
@@ -369,10 +370,11 @@ ${tournament.id},2,1,${player1.name},${player3.name},10,${player2.name},${player
|
||||
|
||||
test('Elo ratings are visible on player profile', async ({ page }) => {
|
||||
// Create a test player
|
||||
const ts = Date.now();
|
||||
const player = await prisma.player.create({
|
||||
data: {
|
||||
name: 'Elo Test Profile Player',
|
||||
normalizedName: 'elo test profile player',
|
||||
name: `Elo Test Profile Player ${ts}`,
|
||||
normalizedName: `elo_test_profile_player_${ts}`,
|
||||
currentElo: 1750,
|
||||
gamesPlayed: 50,
|
||||
wins: 30,
|
||||
|
||||
Reference in New Issue
Block a user