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

[DO NOT MERGE] Update test for breadcrumb component #796

Merged
merged 1 commit into from
Jul 20, 2018

Conversation

andysellick
Copy link
Contributor

This updates collections ahead of a change to the breadcrumb component in this PR.

Do not merge this PR until a new version of the components gem is created and added to this PR (until then tests will fail anyway).

@benthorner benthorner temporarily deployed to govuk-collections-pr-796 July 19, 2018 12:11 Inactive
@@ -504,13 +504,13 @@ class OrganisationTest < ActionDispatch::IntegrationTest

it "displays breadcrumbs" do
visit "/government/organisations/prime-ministers-office-10-downing-street"
assert page.has_css?(".gem-c-breadcrumbs .gem-c-breadcrumbs--item", text: "Prime Minister's Office, 10 Downing Street")
assert page.has_css?(".gem-c-breadcrumbs .gem-c-breadcrumbs__item", text: "Prime Minister's Office, 10 Downing Street")
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can one-up this and remove the class name altogether, and test just test that the string appears in the gem-c-breadcrumbs element? That way we would have prevented this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair point, done.

- class used is about to change
@andysellick andysellick merged commit 57d3f06 into master Jul 20, 2018
@andysellick andysellick deleted the update-for-breadcrumb-component-change branch July 20, 2018 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants