import { test, expectFixture as expect } from '../helpers/test-fixtures';

test.describe('Coupon scaffolding', () => {
  test('default coupon presets are created via testing API', async ({ seedTestCoupons }) => {
    const seeded = await seedTestCoupons();

    expect(seeded.length).toBeGreaterThanOrEqual(3);
    expect(seeded.map((coupon) => coupon.code)).toEqual(
      expect.arrayContaining(['PERCENT10', 'FLAT50', 'EXPIRED25'])
    );
  });
});
