rework of the e2e test suites

This commit is contained in:
Codex Agent
2025-11-19 22:23:33 +01:00
parent 8d2075bdd2
commit 0127114e59
32 changed files with 1593 additions and 124 deletions

View File

@@ -0,0 +1,12 @@
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'])
);
});
});