Skip to content
Snippets Groups Projects

issue-3498485: fixed false appearing in input text fields

1 unresolved thread

Closes #3498485

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
87 89 .should('have.value', 'XB Needs This For The Time Being');
88 90
89 91 cy.get('@titleField').focus();
90 cy.get('@titleField').type('{selectall}This is a new title');
92 cy.get('@titleField').clear();
  • It looks like these tests are doing the same thing but with an explicit clear step - that seems AOK.

    Since we are fixing a problem that was specifically happening when an input was cleared but before anything was typed into it, we should add a value check after one of these calls to clear() and confirm the input is empty vs saying false etc.

  • Suggested change
    Applied
    92 cy.get('@titleField').clear();
    92 cy.get('@titleField').should('have.value', '');
    93 cy.get('@titleField').clear();
  • Please register or sign in to reply
  • added 1 commit

    • 62d2ee8a - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Lauri Timmanee resolved all threads

    resolved all threads

  • added 1 commit

    Compare with previous version

  • Lauri Timmanee added 7 commits

    added 7 commits

    • 7564a203...3dadf5ff - 3 commits from branch project:0.x
    • df5d9173 - issue-3498485: fixed false appearing in input text fields
    • 3708cbcd - Removed workaround in tests that was in place to account for false being...
    • 950573da - Apply 1 suggestion(s) to 1 file(s)
    • 60c5a027 - Fix mistake from suggestion

    Compare with previous version

  • Please register or sign in to reply
    Loading