Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

463 B
Raw Blame
import { expect, test } from '@playwright/test';
import { uniqueShort } from '../../utils/unique';

test.describe('unique test data', () => {
  test('short names are letters only so they always pass the person name check', () => {
    const names = Array.from({ length: 5000 }, () => uniqueShort('Renamed'));

    for (const name of names) {
      expect(name).toMatch(/^Renamed [a-z]{6}$/);
    }
    expect(new Set(names).size).toBeGreaterThan(4990);
  });
});