refactor(match2): Widgetify dota2's match summary #17163
GitHub Actions / Test Report
failed
Oct 21, 2024 in 0s
274 tests run, 273 passed, 0 skipped, 1 failed.
Annotations
Check failure on line 1 in lua:118
github-actions / Test Report
lua:118.match2 matchlist dota2 smoketest
spec/test_helper.lua:149: Expected objects to be the same.
Passed in:
Raw output
spec/test_helper.lua:149: Expected objects to be the same.
Passed in:
(string) '<div class="brkts-matchlist brkts-matchlist-collapsible" style="width:300px"><div class="brkts-matchlist-title" style="overflow-wrap:break-word;white-space:normal">Match List</div><div class="brkts-matchlist-match brkts-match-has-details brkts-match-popup-wrapper"><div class="brkts-matchlist-cell brkts-matchlist-opponent brkts-matchlist-slot-winner brkts-opponent-hover" aria-label="abc"><div class="block-players-wrapper brkts-matchlist-cell-content"><div class="block-player flipped"><span class="name" style="overflow:hidden;text-overflow:ellipsis;white-space:pre">A</span></div></div></div><div class="brkts-matchlist-cell brkts-matchlist-score brkts-matchlist-slot-bold brkts-opponent-hover" aria-label="abc"><div class="brkts-matchlist-cell-content">3</div></div><div class="brkts-match-info-icon"></div><div class="brkts-matchlist-cell brkts-matchlist-score brkts-opponent-hover" aria-label="B"><div class="brkts-matchlist-cell-content">2</div></div><div class="brkts-matchlist-cell brkts-matchlist-opponent brkts-opponent-hover" aria-label="B"><div class="block-players-wrapper brkts-matchlist-cell-content"><div class="block-player"><span class="name" style="overflow:hidden;text-overflow:ellipsis;white-space:pre">B</span></div></div></div><div class="error-details brkts-match-info-popup"><div class="error-details-text error" style="font-weight:bold">Error occured in display component: (caught by DisplayUtil.TryPureComponent)components/match2/wikis/dota2/match_summary.lua:60: attempt to index a nil value</div><div class="error-details-stacks">stack traceback:
standard/result_or_error.lua:159: in function <standard/result_or_error.lua:144>
components/match2/wikis/dota2/match_summary.lua:60: in function 'createBody'
components/match2/commons/match_summary_base.lua:761: in function <components/match2/commons/match_summary_base.lua:751>
(tail call): ?
components/match2/commons/match_summary_base.lua:805: in function <components/match2/commons/match_summary_base.lua:780>
(tail call): ?
(tail call): ?
(tail call): ?
standard/result_or_error.lua:138: in function <standard/result_or_error.lua:137>
[C]: in function 'xpcall'
standard/result_or_error.lua:136: in function <standard/result_or_error.lua:134>
...
...Lua-Modules/.luarocks/share/lua/5.1/busted/block.lua:155: in function 'execute'
.../Lua-Modules/.luarocks/share/lua/5.1/busted/init.lua:7: in function 'executor'
.../Lua-Modules/.luarocks/share/lua/5.1/busted/core.lua:314: in function <.../Lua-Modules/.luarocks/share/lua/5.1/busted/core.lua:314>
[C]: in function 'xpcall'
.../Lua-Modules/.luarocks/share/lua/5.1/busted/core.lua:178: in function 'safe'
.../Lua-Modules/.luarocks/share/lua/5.1/busted/core.lua:314: in function 'execute'
...a-Modules/.luarocks/share/lua/5.1/busted/execute.lua:58: in function 'execute'
...ua-Modules/.luarocks/share/lua/5.1/busted/runner.lua:210: in function <...ua-Modules/.luarocks/share/lua/5.1/busted/runner.lua:11>
...cks/lib/luarocks/rocks-5.1/busted/2.2.0-1/bin/busted:3: in main chunk
[C]: ?</div></div></div></div>'
Expected:
(string) '<div class="brkts-matchlist brkts-matchlist-collapsible" style="width:300px"><div class="brkts-matchlist-title" style="overflow-wrap:break-word;white-space:normal">Match List</div><div class="brkts-matchlist-match brkts-match-has-details brkts-match-popup-wrapper"><div class="brkts-matchlist-cell brkts-matchlist-opponent brkts-matchlist-slot-winner brkts-opponent-hover" aria-label="abc"><div class="block-players-wrapper brkts-matchlist-cell-content"><div class="block-player flipped"><span class="name" style="overflow:hidden;text-overflow:ellipsis;white-space:pre">A</span></div></div></div><div class="brkts-matchlist-cell brkts-matchlist-score brkts-matchlist-slot-bold brkts-opponent-hover" aria-label="abc"><div class="brkts-matchlist-cell-content">3</div></div><div class="brkts-match-info-icon"></div><div class="brkts-matchlist-cell brkts-matchlist-score brkts-opponent-hover" aria-label="B"><div class="brkts-matchlist-cell-content">2</div></div><div class="brkts-matchlist-cell brkts-matchlist-opponent brkts-opponent-hover" aria-label="B"><div class="block-players-wrapper brkts-matchlist-cell-content"><div class="block-player"><span class="name" style="overflow:hidden;text-overflow:ellipsis;white-space:pre">B</span></div></div></div><div class="brkts-popup brkts-match-info-popup" style="width:400px"><div class="brkts-popup-header-dev" style="justify-content:center"><div class="brkts-popup-header-opponent brkts-popup-header-opponent-left"><div class="block-players-wrapper"><div class="block-player flipped"><span class="name" style="overflow:hidden;text-overflow:ellipsis;white-space:pre">[[abc|A]]</span></div></div><div class="brkts-popup-header-opponent-score-left"><b>3</b></div></div><div class="brkts-popup-header-opponent brkts-popup-header-opponent-right"><div class="brkts-popup-header-opponent-score-right">2</div><div class="block-players-wrapper"><div class="block-player"><span class="name" style="overflow:hidden;text-overflow:ellipsis;white-space:pre">[[B|B]]</span></div></div></div></div><div class="brkts-popup-break"></div><div class="brkts-popup-body"><div class="brkts-popup-body-element"><div class="match-countdown-block" style="text-align:center;display:block"></div></div></div><div class="brkts-popup-break"></div><div class="brkts-popup-comment" style="white-space:normal;font-size:85%">A Match Comment<div class="brkts-popup-break"></div></div><div class="brkts-popup-break"></div></div></div></div>'
stack traceback:
spec/test_helper.lua:149: in function 'GoldenTest'
spec/match2_spec.lua:68: in function 'funcToRun'
spec/test_helper.lua:120: in function <spec/test_helper.lua:118>
Loading