Open Bug 1736065 Opened 4 years ago Updated 4 years ago

after removing enzyme from all tests, bugfiler has a few tests which are not ported over

Categories

(Tree Management :: Treeherder, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: jmaher, Unassigned)

Details

Flags: needinfo?(aryx.bugmail)

expect(displayed).toBeInTheDocument(expected);
The documentation doesn't mention an argument for toBeInTheDocument and passing in anything doesn't let the test fail. toHaveValue (because it is an input element) and to a full match on the summary should fix it.

    const securityIssue = await screen.getByText(
      'Report this as a security issue',
    );
    expect(securityIssue).toBeTruthy();

always passed because the text element is always truthy. That one checks the checkbox state:

    const securityIssue = await screen.getByLabelText(
      'Report this as a security issue',
    );
    expect(securityIssue).toBeChecked();

should parse finding the filename when the TEST-FOO is not omitted and should strip omitted leads from thisFailure would be covered by the changes to the summary checks above.

Missing test coverage

  • crash signature set
  • bug description on submission (e.g. links to logs)
  • all failure lines in textarea which gets shown if down arrow clicked
  • character count for bug summary works, submitting bug with more than 255 characters in summary blocked
  • no cached values in bugfiler form when it gets launched
Flags: needinfo?(aryx.bugmail)
You need to log in before you can comment on or make changes to this bug.