wip
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user