Skip to content

Commit 94496e5

Browse files
committed
feat: Add @expected-failure tag and failure indication for contract tests
1 parent 3cad71c commit 94496e5

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

specs/openapi/execute-contract-tests/execute-contract-tests-filter.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ test.describe("API Contract Testing - Filtering", () => {
2727

2828
test(
2929
"Verify filtering by header",
30-
{ tag: ["@test", "@filterTest", "@eyes"] },
30+
{ tag: ["@test", "@filterTest", "@eyes", "@expected-failure"] },
3131
async () => {
32+
test.fail(true, "Needs fixing by the devs");
3233
await test.step("Enter service URL and run contract tests", async () => {
3334
await contractPage.enterServiceUrl(ORDER_BFF_SERVICE_URL);
3435
await contractPage.setGenerativeMode(false);

specs/openapi/execute-contract-tests/execute-contract-tests-generative.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ import {
1212
test.describe(
1313
"Generative Test Suite - Include/Exclude Combinations",
1414
{
15-
tag: ["@test", "@generativeTests", "@eyes"],
15+
tag: ["@test", "@generativeTests", "@eyes", "@expected-failure"],
1616
},
1717
() => {
18+
test.fail(true, "Needs fixing by the devs");
1819
let contractPage: ApiContractPage;
1920

2021
test.beforeEach(async ({ page, eyes }, testInfo) => {

specs/openapi/execute-contract-tests/execute-contract-tests-main.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ test.describe("API Contract Testing", () => {
3131

3232
test(
3333
"Run contract tests for openapi spec product_search_bff_v5.yaml with default settings",
34-
{ tag: ["@test", "@runContractTests", "@eyes"] },
34+
{ tag: ["@test", "@runContractTests", "@eyes", "@expected-failure"] },
3535
async () => {
36+
test.fail(true, "Needs fixing by the devs");
3637
await test.step("Enter service URL and run contract tests", async () => {
3738
await contractPage.enterServiceUrl(ORDER_BFF_SERVICE_URL);
3839
await contractPage.clickRunContractTests();

0 commit comments

Comments
 (0)