Skip to content

Commit 345f8f3

Browse files
committed
Fix Pro console logging test for second component
The test page renders two ReduxSharedStoreApp components with trace: true, so both log their render messages. Update expected output to include the second component's console log. Related to CSP nonce console replay changes.
1 parent 9d204cc commit 345f8f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

react_on_rails_pro/spec/dummy/spec/requests/renderer_console_logging_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
console.log.apply(console, ["[SERVER] Script4\\"</div>\\"(/script <script>alert('WTF4')(/script>"]);
2222
console.log.apply(console, ["[SERVER] Script5:\\"</div>\\"(/script> <script>alert('WTF5')(/script>"]);
2323
console.log.apply(console, ["[SERVER] railsContext.serverSide is ","true"]);
24+
console.log.apply(console, ["[SERVER] RENDERED ReduxSharedStoreApp to dom node with id: ReduxSharedStoreApp-react-component-1"]);
2425
JS
2526

2627
expected_lines = expected.split("\n")

0 commit comments

Comments
 (0)