Skip to content

Commit

Permalink
Fix interactive mode render issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxuan-ms committed Aug 22, 2023
1 parent 331ace2 commit af986e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix interactive mode table rendered with every poll (Bad UX scroll/highlight not maintained)
7 changes: 5 additions & 2 deletions testplan/common/utils/comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,11 @@ def serialize(cls, obj):

@classmethod
def match(cls, regex, value):

return Match.from_bool(bool(regex.match(value)))
try:
ret = bool(regex.match(value))
except TypeError:
ret = False
return Match.from_bool(ret)

@staticmethod
def compare(lhs, rhs):
Expand Down
4 changes: 3 additions & 1 deletion testplan/web_ui/testing/src/Report/InteractiveReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ class InteractiveReportComponent extends BaseReport {
response.data.runtime_status === "finished" ||
response.data.runtime_status === "not_run"
) {
this.setState({ resetting: false });
if (this.state.resetting){
this.setState({ resetting: false });
}
}
if (
!this.state.report ||
Expand Down

0 comments on commit af986e0

Please sign in to comment.