wip
This commit is contained in:
@@ -21,7 +21,7 @@ describe('Step 9 – add car', () => {
|
||||
const page = harness.adapter.getPage();
|
||||
expect(page).not.toBeNull();
|
||||
|
||||
const result = await harness.executeStep(9, {
|
||||
const result = await harness.executeStepWithFixtureMismatch(9, {
|
||||
carSearch: 'Acura ARX-06',
|
||||
});
|
||||
|
||||
@@ -45,7 +45,7 @@ describe('Step 9 – add car', () => {
|
||||
await harness.adapter.getPage()?.waitForLoadState('domcontentloaded');
|
||||
|
||||
await expect(async () => {
|
||||
await harness.executeStep(9, {
|
||||
await harness.executeStepWithFixtureMismatch(9, {
|
||||
carSearch: 'Mazda MX-5',
|
||||
});
|
||||
}).rejects.toThrow(/Step 9 FAILED validation/i);
|
||||
@@ -56,7 +56,7 @@ describe('Step 9 – add car', () => {
|
||||
await harness.adapter.getPage()?.waitForLoadState('domcontentloaded');
|
||||
|
||||
await expect(async () => {
|
||||
await harness.executeStep(9, {
|
||||
await harness.executeStepWithFixtureMismatch(9, {
|
||||
carSearch: 'Porsche 911',
|
||||
});
|
||||
}).rejects.toThrow(/Step 9 FAILED validation/i);
|
||||
@@ -67,7 +67,7 @@ describe('Step 9 – add car', () => {
|
||||
await harness.adapter.getPage()?.waitForLoadState('domcontentloaded');
|
||||
|
||||
await expect(async () => {
|
||||
await harness.executeStep(9, {
|
||||
await harness.executeStepWithFixtureMismatch(9, {
|
||||
carSearch: 'Ferrari 488',
|
||||
});
|
||||
}).rejects.toThrow(/Step 9 FAILED validation/i);
|
||||
@@ -77,7 +77,7 @@ describe('Step 9 – add car', () => {
|
||||
await harness.navigateToFixtureStep(8);
|
||||
await harness.adapter.getPage()?.waitForLoadState('domcontentloaded');
|
||||
|
||||
const result = await harness.executeStep(9, {
|
||||
const result = await harness.executeStepWithFixtureMismatch(9, {
|
||||
carSearch: 'Acura ARX-06',
|
||||
});
|
||||
|
||||
@@ -102,7 +102,7 @@ describe('Step 9 – add car', () => {
|
||||
|
||||
let errorMessage = '';
|
||||
try {
|
||||
await harness.executeStep(9, {
|
||||
await harness.executeStepWithFixtureMismatch(9, {
|
||||
carSearch: 'BMW M4',
|
||||
});
|
||||
} catch (error) {
|
||||
@@ -129,7 +129,7 @@ describe('Step 9 – add car', () => {
|
||||
|
||||
let validationError = false;
|
||||
try {
|
||||
await harness.executeStep(9, {
|
||||
await harness.executeStepWithFixtureMismatch(9, {
|
||||
carSearch: 'Audi R8',
|
||||
});
|
||||
} catch {
|
||||
@@ -145,7 +145,7 @@ describe('Step 9 – add car', () => {
|
||||
await harness.adapter.getPage()?.waitForLoadState('domcontentloaded');
|
||||
|
||||
await expect(async () => {
|
||||
await harness.executeStep(9, {
|
||||
await harness.executeStepWithFixtureMismatch(9, {
|
||||
carSearch: 'McLaren 720S',
|
||||
});
|
||||
}).rejects.toThrow();
|
||||
|
||||
Reference in New Issue
Block a user