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

Extract the error_summary component from government-frontend #138

Merged
merged 1 commit into from
Jan 10, 2018

Conversation

tuzz
Copy link
Contributor

@tuzz tuzz commented Jan 10, 2018

We’d like to use this in email-alert-frontend

https://trello.com/c/HSre7K10/453-style-the-mvp-email-collection-page-needed-by-jan

Screenshot demonstrating the focus on page load:

screen shot 2018-01-10 at 10 45 50

beforeEach(function () {
element = $(
'<div ' +
'class="app-c-error-summary" ' +
Copy link
Contributor

Choose a reason for hiding this comment

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

These tests should be failing

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually nevermind, it'd be nice to be consistent but they are just JavaScript so make sense to be passing.

Copy link
Contributor

Choose a reason for hiding this comment

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

Everything other than the old app-c stuff here looks good 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

The JavaScript tests weren't failing because the module is bound to the js-error-summary__link and isn't app- or gem- dependent.

We should use gem- here anyway for consistency.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good example of not binding to presentational classes 👍

@tuzz tuzz merged commit 1c3e7b1 into master Jan 10, 2018
@tuzz tuzz deleted the extract-error-summary branch January 10, 2018 15:42
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.

3 participants