Skip to content

Defect: NV-005: Malformed faker params message can echo a malformed example #9

Description

@eviltester

Parent testing issue: #1

Source defect report: https://github.com/eviltester/anywaydata-ai-testing/blob/main/docs/testing/20260625/issue-230-001/defects/NV-005-malformed-faker-params-example-echo.md
Testing artifact folder: https://github.com/eviltester/anywaydata-ai-testing/tree/main/docs/testing/20260625/issue-230-001
Original grid-table-editor story: eviltester/grid-table-editor#230
Original grid-table-editor PR: eviltester/grid-table-editor#247

The detailed defect report from the testing artifact is copied below.


NV-005: Malformed faker params message can echo a malformed example

Severity: Low

Status: confirmed in negative-validation lane.

Environment

Steps to Reproduce

  1. Open the deployed app and expand Test Data.
  2. Select faker and choose helpers.arrayElement from the method picker.
  3. Enter malformed params such as (["A","B".
  4. Click Generate.

Expected Result

The validation message should explain the expected wrapping/syntax without echoing an incomplete or confusing example.

Actual Result

The UI showed: params should be wrapped in parentheses, e.g. (["A","B").

The echoed example is itself incomplete/malformed, which makes it harder for users to repair the input.

Triage Decision

I'm ok with the params example, but the issue for me is - once the user does add the extra param, they do not see an issue regarding the malformed array, instead they see Row 1: invalid faker params - Invalid Faker API Call Unsafe faker rule syntax detected: requires complex argument parsing and this makes it hard to fix, because we do not treat arrayElement as an unsafe faker rule when the array is correct so we need to report that the param needs to be an array and show an example.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions