This commit is contained in:
2025-11-26 17:03:29 +01:00
parent ff3528e5ef
commit fef75008d8
147 changed files with 112370 additions and 5162 deletions

View File

@@ -48,13 +48,13 @@ describe('Playwright Browser Automation', () => {
expect(step).toBe(2);
});
it('should serve all 17 step fixtures (steps 2-18)', async () => {
it('should serve all 16 step fixtures (steps 2-17)', async () => {
const mappings = getAllStepFixtureMappings();
const stepNumbers = Object.keys(mappings).map(Number);
expect(stepNumbers).toHaveLength(17);
expect(stepNumbers).toHaveLength(16);
expect(stepNumbers).toContain(2);
expect(stepNumbers).toContain(18);
expect(stepNumbers).toContain(17);
for (const stepNum of stepNumbers) {
const url = server.getFixtureUrl(stepNum);
@@ -102,10 +102,10 @@ describe('Playwright Browser Automation', () => {
expect(step).toBe(3);
});
it('should correctly identify step 18 (final step)', async () => {
await adapter.navigateToPage(server.getFixtureUrl(18));
it('should correctly identify step 17 (final step)', async () => {
await adapter.navigateToPage(server.getFixtureUrl(17));
const step = await adapter.getCurrentStep();
expect(step).toBe(18);
expect(step).toBe(17);
});
it('should detect step from each fixture file correctly', async () => {
@@ -117,7 +117,7 @@ describe('Playwright Browser Automation', () => {
await adapter.navigateToPage(server.getFixtureUrl(stepNum));
const detectedStep = await adapter.getCurrentStep();
expect(detectedStep).toBeGreaterThanOrEqual(2);
expect(detectedStep).toBeLessThanOrEqual(18);
expect(detectedStep).toBeLessThanOrEqual(17);
}
});
@@ -227,7 +227,7 @@ describe('Playwright Browser Automation', () => {
});
it('should set data-slider range inputs', async () => {
await adapter.navigateToPage(server.getFixtureUrl(18));
await adapter.navigateToPage(server.getFixtureUrl(17));
await adapter.setSlider('rubberLevel', 75);