Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix breadcrumb last element #3723

Merged
merged 7 commits into from
Jul 2, 2020
Merged

Fix breadcrumb last element #3723

merged 7 commits into from
Jul 2, 2020

Conversation

kulmann
Copy link
Member

@kulmann kulmann commented Jul 1, 2020

Description

This PR removes the anchor on the last breadcrumb segment.

Related Issue

Motivation and Context

Comply with common sense

How Has This Been Tested?

  • locally in chrome and firefox
  • drone

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@kulmann kulmann added the Status:Needs-Review Needs review from a maintainer label Jul 1, 2020
@kulmann kulmann requested a review from LukasHirt July 1, 2020 10:45
@kulmann kulmann self-assigned this Jul 1, 2020
@kulmann
Copy link
Member Author

kulmann commented Jul 1, 2020

cc @refs

@refs
Copy link
Member

refs commented Jul 1, 2020

👏 if everyone is okay with this and it doesn't suppose an integrity problem with styles I'm cool with it

@kulmann
Copy link
Member Author

kulmann commented Jul 1, 2020

👏 if everyone is okay with this and it doesn't suppose an integrity problem with styles I'm cool with it

Maybe there are tests related to it.. let's wait for drone.

@kulmann
Copy link
Member Author

kulmann commented Jul 1, 2020

Test failures 😅 looking into it after lunch...

@kulmann
Copy link
Member Author

kulmann commented Jul 1, 2020

Was just an xpath selector issue. Didn't find the last breadcrumb segment anymore. That is fixed now (CI currently running).

Since the last breadcrumb segment is not a link anymore, it is either an
a-tag or a span-tag in the DOM. So we have to check for both possible
types instead of just a-tags.
@kulmann kulmann force-pushed the fix-breadcrumb-last-element branch from b1594a5 to bfefd7e Compare July 1, 2020 15:25
Because of a recent change, breadcrumb segments can now be spans or
anchors. Attempts to navigate by breadcrumb in tests should not
happen on spans, only on anchors, to catch failures early. This
commit fixes that.
Need to navigate to a subfolder to have the breadcrumb segment for a
test clickable again.
@kulmann kulmann force-pushed the fix-breadcrumb-last-element branch from 1b53597 to c0c2aa8 Compare July 2, 2020 07:00
@kulmann kulmann force-pushed the fix-breadcrumb-last-element branch from bc3efe7 to 3c44eaa Compare July 2, 2020 14:01
@kulmann kulmann merged commit 2e66286 into master Jul 2, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-breadcrumb-last-element branch July 2, 2020 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status:Needs-Review Needs review from a maintainer
Projects
None yet
3 participants