The breadcrumbs in the Search module currently use 'Node' and 'User' as the text for the breadcrumbs, but should use 'Content' and 'Users' to match the terminology used in the tabs.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Good catch, thanks for reporting it!

larowlan’s picture

Will need a _title entry in the routing defaults

jhodgdon’s picture

Category: task » bug
Issue tags: +D8UX usability

Actually, this text mismatch is a UI bug.

dawehner’s picture

FileSize
706 bytes

Note: this does retranslate the titles twice.

geodaniel’s picture

Issue summary: View changes
Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 4: 2099391.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
FileSize
694 bytes

Rerolled.

Status: Needs review » Needs work

The last submitted patch, 7: 2099391.patch, failed testing.

marthinal’s picture

Status: Needs work » Needs review

7: 2099391.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 7: 2099391.patch, failed testing.

jhodgdon’s picture

Those look like real test failures (SearchPageText title fails)

marthinal’s picture

Status: Needs work » Needs review
FileSize
2.37 KB

Test added.

marthinal’s picture

Upps without debug()

jhodgdon’s picture

Can you please post a screen shot of what the Search pages for Node and User look like, with the browser title bar and breadcrumbs included, before and after the patch? Because it looks like the test was changed so that it is not expecting the word "Search" in the page title. That is not right -- I think we still want the page title to say "Search" somewhere in it, not "Content"? The only thing that should be changing is the breadcrumbs, right?

marthinal’s picture

Status: Needs review » Needs work
FileSize
123.86 KB
126.78 KB

@jhodgdon Absolutely, you have the reason. So the problem is the patch and not the test.

Screenshots attached.

I'll take a look at this...

Thanks

dawehner’s picture

Status: Needs work » Needs review
FileSize
690 bytes
1.35 KB

We can indeed fix that without having to work on the tests.

jhodgdon’s picture

Can we have another before/after screen shot please?

marthinal’s picture

FileSize
269.67 KB
236 KB

This is exactly what I was searching for :)

getTitle() method at TitleResolver.php was adding the same title for the breadcrumb and for the page title...

Screenshots attached.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

OK then. It looks like this latest patch passes all the tests without any test modifications, and the before/after screen shots show that it does solve the issue that was reported here. Let's get it in.

Thanks!

Xano’s picture

16: 2099391.patch queued for re-testing.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 71d9179 and pushed to 8.x. Thanks!

tim.plunkett’s picture

Status: Fixed » Needs work
Issue tags: +Needs tests

I almost accidentally reverted this in another issue that I was rebasing. Why wasn't test coverage added here? This was a regression after all.

If someone wants to open a follow-up, that's fine.

jhodgdon’s picture

Status: Needs work » Needs review
FileSize
857 bytes
2.28 KB

I guess we should have a test that verifies the word "Node" does not appear on the screen when you go to the search page?

I think this should do it. I've uploaded both a patch with a new test, and a second patch that also comments out the new lines added in this issue, which should fail if this is a valid new test.

Status: Needs review » Needs work

The last submitted patch, 23: 2099391-add-test-23-without-previous-patch-should-fail.patch, failed testing.

jhodgdon’s picture

That test did not fail on the right lines. :( Perhaps breadcrumbs are not visible during the test. We should probably open a new issue and I don't have time to work on it today.

marthinal’s picture

Status: Needs work » Needs review
marthinal’s picture

I have no fails at the views test...

Changed the place for the assertions.

Let's take a look at the test.

The last submitted patch, 27: 2099391-add-test-27-without-previous-patch-should-fail.patch, failed testing.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Perfect!

jhodgdon’s picture

Thanks for fixing that marthinal! :) I agree, this test is working as we hoped and should be committed.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.