Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Playwright + Cucumber-JS] Failed tests are displayed as broken. #1155

Copy link
Copy link
Closed
@Zychkov

Description

@Zychkov
Issue body actions

This bug is only relevant when using expect from Playwright.

To Reproduce
Scenario:

Feature: Allure
  Feature's description

  @example @tms=ABC-222 @issue=ABC-333
  Scenario Outline: Allure Tests
    Given The sum of the numbers <a> and <b> must be equal to <c>

    Examples:
      | a | b | c |
      | 1 | 2 | 3 |
      | 2 | 2 | 4 |

    Examples:
      | a | b | c |
      | 3 | 2 | 5 |
      | 4 | 2 | 7 |

implementation:

import {Given} from "@cucumber/cucumber";
import {expect} from "@playwright/test";

Given(/^The sum of the numbers (.*) and (.*) must be equal to (.*)$/,
    async (a, b, c) => {
        expect(Number(a) + Number(b)).toEqual(Number(c));
    });

Dependencies:

    "@cucumber/cucumber": "^10.9.0",
    "@cucumber/messages": "^24.1.0",
    "@playwright/test": "^1.47.2",
    "allure-commandline": "^2.30.0",
    "allure-cucumberjs": "^3.0.2",
    "allure-js-commons": "^3.0.2"

Expected behavior
The status of the fallen test should be - Failed. Actual - Broken.

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.