Skip to content

fix: scope wdio metadata to its test and read all Cucumber tags - #1042

Merged
gibiw merged 1 commit into
mainfrom
fix/wdio-metadata
Oct 30, 2026
Merged

gibiw merged 1 commit into
mainfrom
fix/wdio-metadata

Conversation

@gibiw

@gibiw gibiw commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Summary

wdio-qase-reporter 1.8.0 — the wdio part of the 2026-10-30 audit.

Bugs

  • qase.ignore() / qase.comment() were reset only at suite end → one ignore dropped every later test of the describe/feature, a comment leaked into every later result. Now reset on test start.
  • Cucumber read only @QaseID=, @Title=, @Suite=, @Tags=, @QaseMuted. Now the same set as cucumberjs: @QaseTitle, @QaseSuite, @QaseTags, @QaseFields, @QaseParameters, @QaseGroupParameters, @QaseIgnore, @Q-N, @qaseid.PROJ(ids); old spellings kept; values may contain =.
  • Nested suites via tab or literal \t.
  • Screenshot outside a test (e.g. in before) threw There isn't any active test! and failed the whole spec with no results.
  • attach({ paths: 'file' }) iterated the string's characters.
  • attachJSON MIME types were swapped; empty command responses attached as undefined.

Docs / examples

  • Tag examples contained spaces — Gherkin rejects the whole feature file (A tag may not contain whitespace). Full tag list, valid severity values, useCucumber is not auto-detected, mode: 'testops'.
  • it(qase.ignore(), ...) crashed Mocha (Test argument "title" should be a string); WebdriverIO 9 removed toHaveTextContaining and changed $$().map(); saucedemo cart state leaked between tests.

Test plan

  • Unit: 120 pass (new tests for every fix)
  • Live WDIO 9 + Chrome, old (main) vs new build, report mode: old mocha run dies on the before screenshot (no results), new reports 6/6; old Cucumber ignores most tags, new applies all
  • Qase TestOps, project DEVX, verified via Qase MCP:
    • run 910 (mocha): ignored test absent, comment only on its test, nested suite Outer > Inner, single-path attachment uploaded
    • run 912 (Cucumber): @QaseID=1 @Q-2 → cases 1 and 2, params/group params/tags applied, @QaseIgnore scenario absent
    • run 913 (examples/single/wdio): 16/16 passed

- qase.ignore() and qase.comment() were reset only when a suite ended,
  so one ignore dropped every later test of the describe or feature.
  They are now reset when a test starts.
- Cucumber tags: read the same set as cucumberjs-qase-reporter
  (@QaseTitle, @QaseSuite, @QaseTags, @QaseFields, @QaseParameters,
  @QaseGroupParameters, @QaseIgnore, @Q-N, @qaseid.PROJ(ids)); keep the
  documented @title=/@suite=/@tags=; values may contain "=".
- Nested suites from a tab or a literal \t (Gherkin tags cannot hold a
  tab).
- A screenshot outside a test no longer throws and fails the spec.
- attach({ paths }) accepts a single string.
- attachJSON MIME types were swapped; empty command responses are no
  longer attached as "undefined".
- Docs: tag examples without whitespace (Gherkin rejects them), full tag
  list, valid severity values, useCucumber is not auto-detected.
- Examples: it(qase.ignore(), ...) crashed Mocha; WebdriverIO 9 removed
  toHaveTextContaining and changed $$().map(); cart state leaked between
  saucedemo tests.
@gibiw
gibiw merged commit 71fd6e2 into main Oct 30, 2026
56 checks passed
@gibiw
gibiw deleted the fix/wdio-metadata branch October 30, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants