{"action":"closed","issue":{"url":"https://api.github.com/repos/hmcts/one-per-page-test-suite/issues/7","repository_url":"https://api.github.com/repos/hmcts/one-per-page-test-suite","labels_url":"https://api.github.com/repos/hmcts/one-per-page-test-suite/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/hmcts/one-per-page-test-suite/issues/7/comments","events_url":"https://api.github.com/repos/hmcts/one-per-page-test-suite/issues/7/events","html_url":"https://github.com/hmcts/one-per-page-test-suite/issues/7","id":362273358,"node_id":"MDU6SXNzdWUzNjIyNzMzNTg=","number":7,"title":"Testing content with the specificContent option doesn't work","user":{"login":"hosainnet","id":629600,"node_id":"MDQ6VXNlcjYyOTYwMA==","avatar_url":"https://avatars3.githubusercontent.com/u/629600?v=4","gravatar_id":"","url":"https://api.github.com/users/hosainnet","html_url":"https://github.com/hosainnet","followers_url":"https://api.github.com/users/hosainnet/followers","following_url":"https://api.github.com/users/hosainnet/following{/other_user}","gists_url":"https://api.github.com/users/hosainnet/gists{/gist_id}","starred_url":"https://api.github.com/users/hosainnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hosainnet/subscriptions","organizations_url":"https://api.github.com/users/hosainnet/orgs","repos_url":"https://api.github.com/users/hosainnet/repos","events_url":"https://api.github.com/users/hosainnet/events{/privacy}","received_events_url":"https://api.github.com/users/hosainnet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-20T16:47:09Z","updated_at":"2018-09-21T13:09:52Z","closed_at":"2018-09-21T13:09:52Z","author_association":"NONE","body":"## Bug reports and feature suggestions\r\n\r\n- [x] I've read the guidelines for [Contributing](CONTRIBUTING.md)\r\n- [x] This is not a personal support request\r\n\r\n---\r\n\r\n**What is the current behavior?**\r\n\r\nTesting using `src/content.js` with the specificContent option will always pass, regardless of whether the specified content is present in the view or not.\r\n\r\n**What is the expected or desired behavior?**\r\n\r\nIf an item in the specificContent option is not present in the page, the assertion should fail with the missing content.\r\n\r\n---\r\n\r\n## Bug report\r\n\r\n**Please provide steps to reproduce (include full log output if available):**\r\n\r\n* Clone any project using this lib (e.g [div-respondent-frontend](https://github.com/hmcts/div-respondent-frontend) or [div-decree-nisi-frontend](https://github.com/hmcts/div-decree-nisi-frontend))\r\n\r\n* Find a unit test that is using the `specificContent` option \r\n\r\n* Change any key in the specificContent array to be anything random ('xyz')\r\n\r\n* Run the unit tests: `yarn test:unit`\r\n\r\nTests will still pass, even though we changed the expecation\r\n\r\n**Please describe your local environment:**\r\n\r\nmacOS 10.13.6\r\n"}}
{"actor":{"display_login":"hosainnet"}}