Fix spec failing due to duplicate component#734
Conversation
1 similar comment
1 similar comment
|
Travis failed because of a timeout. Can someone please re-run it? - https://travis-ci.org/shakacode/react_on_rails/jobs/204543891#L3795 |
|
This change does not look valid. Can we close this PR? Reviewed 2 of 2 files at r1. spec/dummy/app/views/pages/index.html.erb, line 77 at r1 (raw file):
you essentially took out the running of this test of generating some html on the server. the code directly above is in a pre block and it's not rendered per the Comments from Reviewable |
|
I was also looking at this. Thoughts: I suspect the solution is to increase the |
|
@justin808 I understand the pre block code is not rendered. But look at this line - The same id is used again, which is why the spec was failing. Removing the RenderedHtml line didn't break any test, so that suggests maybe a test is missing? As @wanyamaman suggested, we probably need another id and corresponding tests. |
|
@hrishimittal The ids shouldn't conflict. Can you put back the removed line and just change around the ids? |
|
2 similar comments
|
@justin808 I've restored the deleted line and changed ids to fix the spec. If you can give me a LGTM, I'll squash and rebase. |
|
@hrishimittal Please rebase on top of master and push force. Thanks! |
On running `rake`, the following spec fails:
```
1) Pages/Index All in one page Simple Component Without Redux changes name in message according to input
Failure/Error:
within(dom_selector) do
find("input").set new_text
within("h3") do
is_expected.to have_content new_text
end
end
Capybara::Ambiguous:
Ambiguous match, found 2 elements matching css "div#HelloWorld-react-component-4"
Shared Example Group: "React Component" called from ./spec/features/integration_spec.rb:47
```
The reason is a duplicate component with the id `HelloWorld-react-component-4` in `pages/index.html.erb`.
Fix by bumping id number.
Add entry for PR shakacode#734 to Changelog.
13b35c7 to
07d2746
Compare
On running
rake, the following spec fails:The reason is a duplicate component with the id
HelloWorld-react-component-4inpages/index.html.erb.This change is