fix error editing an offer, tweak tests to fix red in IntelliJ

This commit is contained in:
2024-08-18 14:13:42 -06:00
parent 877678b745
commit 014d4081e6
5 changed files with 11 additions and 17 deletions

View File

@@ -2,8 +2,8 @@ import { test, expect } from '@playwright/test';
import { importUser } from './testUtils';
test('Record an offer', async ({ page }) => {
// Generate a random string of 6 characters, skipping the "0." at the beginning
const randomString = Math.random().toString(36).substring(2, 8);
// Generate a random string of 3 characters, skipping the "0." at the beginning
const randomString = Math.random().toString(36).substring(2, 5);
// Standard title prefix
const finalTitle = `Offering of ${randomString}`;
const randomNonZeroNumber = Math.floor(Math.random() * 998) + 1;