Skip to content

mgr/dashboard: fix 01-hosts.e2e test error#45559

Merged
epuertat merged 1 commit intoceph:masterfrom
rhcs-dashboard:existing-host-test-fix
Mar 30, 2022
Merged

mgr/dashboard: fix 01-hosts.e2e test error#45559
epuertat merged 1 commit intoceph:masterfrom
rhcs-dashboard:existing-host-test-fix

Conversation

@nizamial09
Copy link
Member

@nizamial09 nizamial09 commented Mar 22, 2022

Its a regression introduced by BDD testing
79f8545

I accidentally introduced a back button (cd-back-button) while doing some testing with BDD and forgot to remove it. What this does is that, for a non existing host, test types the name and then immediately hits back (which cancels the form), but on the next line it check for the Submit button which is not found since the form is already cancelled.

Fixes: https://tracker.ceph.com/issues/54990
Signed-off-by: Nizamudeen A nia@redhat.com

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

Its a regression introduced by BDD testing
ceph@79f8545

Fixes: https://tracker.ceph.com/issues/54990
Signed-off-by: Nizamudeen A <nia@redhat.com>
@nizamial09 nizamial09 requested review from epuertat and yuriw March 22, 2022 12:20
@nizamial09 nizamial09 requested a review from a team as a code owner March 22, 2022 12:20
@nizamial09 nizamial09 requested review from sunilangadi2 and removed request for a team March 22, 2022 12:20
@epuertat
Copy link
Member

@nizamial09 can you please run teuthology to ensure 100% that the issue was fixed? Thanks!

Copy link
Member

@epuertat epuertat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @nizamial09 for the quick fix!

}
if (exist) {
cy.get('#hostname').should('have.class', 'ng-invalid');
cy.get('cd-back-button').click();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, but what happened to this button? It'd be great if you add some more context to the PR description:

 1) Hosts page
      when Orchestrator is available
        should not add an exsiting host:
    AssertionError: Timed out retrying after 120000ms: Expected to find element: `cd-submit-button`, but never found it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@epuertat I accidentally introduced a back button (cd-back-button) while doing some testing with BDD and forgot to remove it. What this does is that, for a non existing host, test types the name and then immediately hits back (which cancels the form), but on the next line it check for the Submit button which is not found since the form is already cancelled.
I put this in the description too now, Thanks

@nizamial09
Copy link
Member Author

nizamial09 commented Mar 22, 2022

shaman build triggered here -> 1 failure but doesnt seem related
qa run ongoing here -> PASSED

@nizamial09
Copy link
Member Author

jenkins test dashboard

@epuertat epuertat requested a review from avanthakkar March 29, 2022 08:44
@epuertat epuertat merged commit 751d3df into ceph:master Mar 30, 2022
@epuertat epuertat deleted the existing-host-test-fix branch March 30, 2022 11:00
@epuertat epuertat added the needs-quincy-backport backport required for quincy label Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants