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

Document that person image can show if JS is disabled #15582

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

octopusinvitro
Copy link
Contributor

What does this do?

It improves the image tests in the term-table page tests for Northern Ireland, documenting the fact that a person with an image shows it both when JS is and is not disabled.

It also documents that when there is no image available for a person, a placeholder image will be shown.

Why was this needed?

Because there were no tests for it.

Relevant Issue(s)

None

Implementation notes

None

Screenshots

None

Notes to Reviewer

None

Notes to Merger

None

@tmtmtmtm tmtmtmtm temporarily deployed to everypolitician-viewe-pr-15582 September 27, 2016 14:13 Inactive
@tmtmtmtm tmtmtmtm temporarily deployed to everypolitician-viewe-pr-15582 September 27, 2016 14:17 Inactive
@tmtmtmtm
Copy link
Contributor

@octopusinvitro I'm a little confused by this one. The description says that it's about documenting things, but the only thing that has changed is tests. If the issue is that we need documentation, then this doesn't seem to be addressing that. If the issue is simply that we're missing tests, then I think the description should reflect that.

@octopusinvitro
Copy link
Contributor Author

@tmtmtmtm ah, sorry, is a dialectic thing. Tests are indeed documentation of how to use your code and how it works, the features it has, etc. That doesn't mean that there aren't other types of documentation as well.

When JS is disabled, whatever is inside the noscript tag will be
shown, in this case a person's image. Also, if a person doesn't
have an image, a placeholder image will be shown. There where
no tests to document that, so this commit adds them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants