Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements: Fixes and changes on TestScenarioRunner #4901

Merged
merged 7 commits into from
Oct 20, 2023

Fix / by zero

2073cea
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Improvements: Fixes and changes on TestScenarioRunner #4901

Fix / by zero
2073cea
Select commit
Loading
Failed to load commit list.
GitHub Actions / REPORT-FrontendTests succeeded Oct 20, 2023 in 0s

REPORT-FrontendTests ✅

Tests passed successfully

✅ junit.xml

152 tests were completed in 19s with 152 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
CommentContent#newContent 4✅ 896ms
CountsRangesButtons tests 4✅ 2s
edgeType retrieved 12✅ 1s
fragment schema aligner test 2✅ 330ms
getComponentGroupsInCategory 5✅ 360ms
json utils 4✅ 318ms
PlainStyleLink 14✅ 489ms
process available variables finder 11✅ 2s
ProcessAttachments suite 1✅ 2s
ProcessHistory suite 1✅ 2s
ProcessStateIcon tests 5✅ 2s
Reducer suite 5✅ 2s
SpelQuotesUtils 71✅ 835ms
test validation labels 2✅ 1s
validating url counts extractors 4✅ 343ms
Validator 7✅ 286ms

✅ CommentContent#newContent

CommentContent#newContent replaces matched expressions with links
  ✅ CommentContent#newContent replaces matched expressions with links
CommentContent#newContent replaces multiple matched expressions with links
  ✅ CommentContent#newContent replaces multiple matched expressions with links
CommentContent#newContent leaves content unchanged when it does not match with expression
  ✅ CommentContent#newContent leaves content unchanged when it does not match with expression
CommentContent#newContent leaves content unchanged when settings are not provided
  ✅ CommentContent#newContent leaves content unchanged when settings are not provided

✅ CountsRangesButtons tests

CountsRangesButtons tests should render buttons
  ✅ CountsRangesButtons tests should render buttons
CountsRangesButtons tests should handle click
  ✅ CountsRangesButtons tests should handle click
CountsRangesButtons tests should collapse buttons
  ✅ CountsRangesButtons tests should collapse buttons
CountsRangesButtons tests should hide expand button when not needed
  ✅ CountsRangesButtons tests should hide expand button when not needed

✅ edgeType retrieved

edgeType retrieved should choose unused edge type
  ✅ edgeType retrieved should choose unused edge type
edgeType retrieved should get edge types for node
  ✅ edgeType retrieved should get edge types for node
edgeType retrieved should get empty types for defaultNode
  ✅ edgeType retrieved should get empty types for defaultNode
can make link cannot make link from non-last node to sink
  ✅ can make link cannot make link from non-last node to sink
can make link cannot connect from sink to any node
  ✅ can make link cannot connect from sink to any node
can make link can connect from variable to sink
  ✅ can make link can connect from variable to sink
can make link cannot connect to source
  ✅ can make link cannot connect to source
can make link cannot make more than 2 links for Filter
  ✅ can make link cannot make more than 2 links for Filter
can make link can edit link if Filter if fully linked
  ✅ can make link can edit link if Filter if fully linked
isAvailable should be available
  ✅ isAvailable should be available
isAvailable should not be available for node in other category
  ✅ isAvailable should not be available for node in other category
isAvailable should not be available for unknown node
  ✅ isAvailable should not be available for unknown node

✅ fragment schema aligner test

fragment schema aligner test should remove redundant and add missing parameters according to schema
  ✅ fragment schema aligner test should remove redundant and add missing parameters according to schema
fragment schema aligner test should not change anything if fragment is valid with schema
  ✅ fragment schema aligner test should not change anything if fragment is valid with schema

✅ getComponentGroupsInCategory

getComponentGroupsInCategory should return all nodes available in category
  ✅ getComponentGroupsInCategory should return all nodes available in category
getComponentGroupsInCategory should filter out unavailable nodes in category
  ✅ getComponentGroupsInCategory should filter out unavailable nodes in category
getComponentGroupsInCategory should leave empty group if no nodes are available
  ✅ getComponentGroupsInCategory should leave empty group if no nodes are available
getFlatCategoryComponentGroups should return all flat nodes available in category
  ✅ getFlatCategoryComponentGroups should return all flat nodes available in category
getFlatCategoryComponentGroups should filter out unavailable nodes in category
  ✅ getFlatCategoryComponentGroups should filter out unavailable nodes in category

✅ json utils

json utils should flatten object #1
  ✅ json utils should flatten object #1
json utils should flatten object #2
  ✅ json utils should flatten object #2
json utils should diff objects
  ✅ json utils should diff objects
json utils should work with empty objects/properties
  ✅ json utils should work with empty objects/properties

✅ PlainStyleLink

PlainStyleLink isExternalUrl should pass http://
  ✅ PlainStyleLink isExternalUrl should pass http://
PlainStyleLink isExternalUrl should pass https://
  ✅ PlainStyleLink isExternalUrl should pass https://
PlainStyleLink isExternalUrl should pass //
  ✅ PlainStyleLink isExternalUrl should pass //
PlainStyleLink isExternalUrl should drop /
  ✅ PlainStyleLink isExternalUrl should drop /
PlainStyleLink isExternalUrl should drop ?
  ✅ PlainStyleLink isExternalUrl should drop ?
PlainStyleLink isExternalUrl should drop #
  ✅ PlainStyleLink isExternalUrl should drop #
PlainStyleLink isExternalUrl should drop other
  ✅ PlainStyleLink isExternalUrl should drop other
PlainStyleLink should support http://
  ✅ PlainStyleLink should support http://
PlainStyleLink should support https://
  ✅ PlainStyleLink should support https://
PlainStyleLink should support //
  ✅ PlainStyleLink should support //
PlainStyleLink should support /
  ✅ PlainStyleLink should support /
PlainStyleLink should support ?
  ✅ PlainStyleLink should support ?
PlainStyleLink should support #
  ✅ PlainStyleLink should support #
PlainStyleLink should support plain string
  ✅ PlainStyleLink should support plain string

✅ process available variables finder

process available variables finder should find available variables with its types in process at the beginning of the process
  ✅ process available variables finder should find available variables with its types in process at the beginning of the process
process available variables finder should find available variables with its types in process in the end of the process
  ✅ process available variables finder should find available variables with its types in process in the end of the process
process available variables finder should find fragment parameters as variables with its types
  ✅ process available variables finder should find fragment parameters as variables with its types
process available variables finder should return only global variables for dangling node
  ✅ process available variables finder should return only global variables for dangling node
process available variables finder should use variables from validation results if exist
  ✅ process available variables finder should use variables from validation results if exist
process available variables finder should fallback to variables decoded from graph if typing via validation fails
  ✅ process available variables finder should fallback to variables decoded from graph if typing via validation fails
process available variables finder should filter globalVariables by Category3
  ✅ process available variables finder should filter globalVariables by Category3
process available variables finder should not fetch globalVariables for no defined category
  ✅ process available variables finder should not fetch globalVariables for no defined category
process available variables finder add additional variables to node if defined
  ✅ process available variables finder add additional variables to node if defined
process available variables finder hide variables in parameter if defined
  ✅ process available variables finder hide variables in parameter if defined
process utils should convert to readable type
  ✅ process utils should convert to readable type

✅ ProcessAttachments suite

ProcessAttachments suite should render with no problems
  ✅ ProcessAttachments suite should render with no problems

✅ ProcessHistory suite

ProcessHistory suite should mark latest history entry as current and other as past
  ✅ ProcessHistory suite should mark latest history entry as current and other as past

✅ ProcessStateIcon tests

ProcessStateIcon tests should show defaults for missing process.state and stateProcess
  ✅ ProcessStateIcon tests should show defaults for missing process.state and stateProcess
ProcessStateIcon tests should show defaults for loaded process.state without data
  ✅ ProcessStateIcon tests should show defaults for loaded process.state without data
ProcessStateIcon tests should show data from loaded process.state
  ✅ ProcessStateIcon tests should show data from loaded process.state
ProcessStateIcon tests should show defaults if loadedProcess is empty
  ✅ ProcessStateIcon tests should show defaults if loadedProcess is empty
ProcessStateIcon tests should show loadedProcess data
  ✅ ProcessStateIcon tests should show loadedProcess data

✅ Reducer suite

Reducer suite Display process
  ✅ Reducer suite Display process
Nodes added should add single node
  ✅ Nodes added should add single node
Nodes added should add single node with unique id
  ✅ Nodes added should add single node with unique id
Nodes added should add multiple nodes with unique id
  ✅ Nodes added should add multiple nodes with unique id
Nodes added should add nodes with edges
  ✅ Nodes added should add nodes with edges

✅ SpelQuotesUtils

SpelQuotesUtils escapeQuotes should return escaped text
  ✅ SpelQuotesUtils escapeQuotes should return escaped text
SpelQuotesUtils escapeQuotes should use replaceAll when available
  ✅ SpelQuotesUtils escapeQuotes should use replaceAll when available
SpelQuotesUtils unescapeQuotes should return unescaped text
  ✅ SpelQuotesUtils unescapeQuotes should return unescaped text
SpelQuotesUtils unescapeQuotes should ignore QuotationMark.double marks
  ✅ SpelQuotesUtils unescapeQuotes should ignore QuotationMark.double marks
SpelQuotesUtils unescapeQuotes should use replaceAll when available
  ✅ SpelQuotesUtils unescapeQuotes should use replaceAll when available
SpelQuotesUtils quote should return wrapped text
  ✅ SpelQuotesUtils quote should return wrapped text
SpelQuotesUtils quote should ignore unknown marks
  ✅ SpelQuotesUtils quote should ignore unknown marks
SpelQuotesUtils unquote should return unwrapped text
  ✅ SpelQuotesUtils unquote should return unwrapped text
SpelQuotesUtils unquote should ignore wrong quotes
  ✅ SpelQuotesUtils unquote should ignore wrong quotes
SpelQuotesUtils unquote should ignore unknown marks
  ✅ SpelQuotesUtils unquote should ignore unknown marks
SpelQuotesUtils isQuoted should not match ## ## ##
  ✅ SpelQuotesUtils isQuoted should not match ## ## ##
SpelQuotesUtils isQuoted should not match '## ## ##"
  ✅ SpelQuotesUtils isQuoted should not match '## ## ##"
SpelQuotesUtils isQuoted should not match "## ## ##'
  ✅ SpelQuotesUtils isQuoted should not match "## ## ##'
SpelQuotesUtils isQuoted should not match '##'##'##'
  ✅ SpelQuotesUtils isQuoted should not match '##'##'##'
SpelQuotesUtils isQuoted should not match ''## ## ##''
  ✅ SpelQuotesUtils isQuoted should not match ''## ## ##''
SpelQuotesUtils isQuoted should not match '''##'##'##'''
  ✅ SpelQuotesUtils isQuoted should not match '''##'##'##'''
SpelQuotesUtils isQuoted should not match ""##'##'##""
  ✅ SpelQuotesUtils isQuoted should not match ""##'##'##""
SpelQuotesUtils isQuoted should not match "##"##"##"
  ✅ SpelQuotesUtils isQuoted should not match "##"##"##"
SpelQuotesUtils isQuoted should not match """##"##"##"""
  ✅ SpelQuotesUtils isQuoted should not match """##"##"##"""
SpelQuotesUtils isQuoted should match '##''##''##'
  ✅ SpelQuotesUtils isQuoted should match '##''##''##'
SpelQuotesUtils isQuoted should match '''##''##''##'''
  ✅ SpelQuotesUtils isQuoted should match '''##''##''##'''
SpelQuotesUtils isQuoted should match '''##"##"##'''
  ✅ SpelQuotesUtils isQuoted should match '''##"##"##'''
SpelQuotesUtils isQuoted should match "##'##'##"
  ✅ SpelQuotesUtils isQuoted should match "##'##'##"
SpelQuotesUtils isQuoted should match "##""##""##"
  ✅ SpelQuotesUtils isQuoted should match "##""##""##"
SpelQuotesUtils isQuoted should match """##'##'##"""
  ✅ SpelQuotesUtils isQuoted should match """##'##'##"""
SpelQuotesUtils isQuoted should match """##""##""##"""
  ✅ SpelQuotesUtils isQuoted should match """##""##""##"""
SpelQuotesUtils getQuotationMark should return current quotation mark
  ✅ SpelQuotesUtils getQuotationMark should return current quotation mark
SpelQuotesUtils getQuotationMark should return default quotation mark when none
  ✅ SpelQuotesUtils getQuotationMark should return default quotation mark when none
SpelQuotesUtils getQuotationMark should return default quotation mark when wrong used
  ✅ SpelQuotesUtils getQuotationMark should return default quotation mark when wrong used
stringSpelFormatter should decode encoded value ###
  ✅ stringSpelFormatter should decode encoded value ###
stringSpelFormatter should decode encoded value "###"
  ✅ stringSpelFormatter should decode encoded value "###"
stringSpelFormatter should decode encoded value '###'
  ✅ stringSpelFormatter should decode encoded value '###'
stringSpelFormatter should decode encoded value '###"
  ✅ stringSpelFormatter should decode encoded value '###"
stringSpelFormatter should decode encoded value "###
  ✅ stringSpelFormatter should decode encoded value "###
stringSpelFormatter should decode encoded value '###
  ✅ stringSpelFormatter should decode encoded value '###
stringSpelFormatter should decode encoded value ###'###
  ✅ stringSpelFormatter should decode encoded value ###'###
stringSpelFormatter should decode encoded value ###"###
  ✅ stringSpelFormatter should decode encoded value ###"###
stringSpelFormatter should decode encoded value #{123}#aaa
  ✅ stringSpelFormatter should decode encoded value #{123}#aaa
stringSpelFormatter should decode encoded value aaa#{123}#bbb
  ✅ stringSpelFormatter should decode encoded value aaa#{123}#bbb
stringSpelFormatter encoder should encode value ###
  ✅ stringSpelFormatter encoder should encode value ###
stringSpelFormatter encoder should encode value "###"
  ✅ stringSpelFormatter encoder should encode value "###"
stringSpelFormatter encoder should encode value '###'
  ✅ stringSpelFormatter encoder should encode value '###'
stringSpelFormatter encoder should encode value '###"
  ✅ stringSpelFormatter encoder should encode value '###"
stringSpelFormatter encoder should encode value "###
  ✅ stringSpelFormatter encoder should encode value "###
stringSpelFormatter encoder should encode value '###
  ✅ stringSpelFormatter encoder should encode value '###
stringSpelFormatter encoder should encode value ###'###
  ✅ stringSpelFormatter encoder should encode value ###'###
stringSpelFormatter encoder should encode value ###"###
  ✅ stringSpelFormatter encoder should encode value ###"###
stringSpelFormatter encoder should encode value #{123}#aaa
  ✅ stringSpelFormatter encoder should encode value #{123}#aaa
stringSpelFormatter encoder should encode value aaa#{123}#bbb
  ✅ stringSpelFormatter encoder should encode value aaa#{123}#bbb
stringSpelFormatter decoder should decode value '###'
  ✅ stringSpelFormatter decoder should decode value '###'
stringSpelFormatter decoder should decode value "###"
  ✅ stringSpelFormatter decoder should decode value "###"
stringSpelFormatter decoder should decode value ""###""
  ✅ stringSpelFormatter decoder should decode value ""###""
  ✅ stringSpelFormatter decoder should decode value ""###""
stringSpelFormatter decoder should decode value ''###''
  ✅ stringSpelFormatter decoder should decode value ''###''
  ✅ stringSpelFormatter decoder should decode value ''###''
stringSpelFormatter decoder should decode value ''###"'
  ✅ stringSpelFormatter decoder should decode value ''###"'
  ✅ stringSpelFormatter decoder should decode value ''###"'
stringSpelFormatter decoder should decode value ""###"
  ✅ stringSpelFormatter decoder should decode value ""###"
  ✅ stringSpelFormatter decoder should decode value ""###"
stringSpelFormatter decoder should decode value ''###'
  ✅ stringSpelFormatter decoder should decode value ''###'
  ✅ stringSpelFormatter decoder should decode value ''###'
stringSpelFormatter decoder should decode value '###'###'
  ✅ stringSpelFormatter decoder should decode value '###'###'
stringSpelFormatter decoder should decode value "###'###"
  ✅ stringSpelFormatter decoder should decode value "###'###"
stringSpelFormatter decoder should decode value '###"###'
  ✅ stringSpelFormatter decoder should decode value '###"###'
stringSpelFormatter decoder should decode value "###"###"
  ✅ stringSpelFormatter decoder should decode value "###"###"
stringSpelFormatter decoder should decode value '#{123}#aaa'
  ✅ stringSpelFormatter decoder should decode value '#{123}#aaa'
stringSpelFormatter decoder should decode value 'aaa#{123}#bbb'
  ✅ stringSpelFormatter decoder should decode value 'aaa#{123}#bbb'
  ✅ stringSpelFormatter decoder should decode value 'aaa#{123}#bbb'
stringSpelFormatter decoder should decode value "aaa#{123}#bbb"
  ✅ stringSpelFormatter decoder should decode value "aaa#{123}#bbb"
stringSpelFormatter decoder should decode value "aaa#{123}#bbb'
  ✅ stringSpelFormatter decoder should decode value "aaa#{123}#bbb'
stringSpelFormatter decoder should decode value 'aaa#{123}#bbb"
  ✅ stringSpelFormatter decoder should decode value 'aaa#{123}#bbb"

✅ test validation labels

test validation labels display only fe validation label when both be and fe validators available for the same error type
  ✅ test validation labels display only fe validation label when both be and fe validators available for the same error type
test validation labels display both validation labels for different error type
  ✅ test validation labels display both validation labels for different error type

✅ validating url counts extractors

validating url counts extractors extract time from string timestamps (from)
  ✅ validating url counts extractors extract time from string timestamps (from)
validating url counts extractors extract time from string timestamps (to)
  ✅ validating url counts extractors extract time from string timestamps (to)
validating url counts extractors extract time from string date (from)
  ✅ validating url counts extractors extract time from string date (from)
validating url counts extractors extract time from string date (to)
  ✅ validating url counts extractors extract time from string date (to)

✅ Validator

Validator notBlankValueValidator for expression: [''] isValid should be false
  ✅ Validator notBlankValueValidator for expression: [''] isValid should be false
Validator notBlankValueValidator for expression: [ '' ] isValid should be false
  ✅ Validator notBlankValueValidator for expression: [ '' ] isValid should be false
Validator notBlankValueValidator for expression: [""] isValid should be false
  ✅ Validator notBlankValueValidator for expression: [""] isValid should be false
Validator notBlankValueValidator for expression: [ "" ] isValid should be false
  ✅ Validator notBlankValueValidator for expression: [ "" ] isValid should be false
Validator notBlankValueValidator for expression: ['someString' ] isValid should be true
  ✅ Validator notBlankValueValidator for expression: ['someString' ] isValid should be true
Validator notBlankValueValidator for expression: ["someString" ] isValid should be true
  ✅ Validator notBlankValueValidator for expression: ["someString" ] isValid should be true
Validator notBlankValueValidator for expression: ["someString" + ""] isValid should be true
  ✅ Validator notBlankValueValidator for expression: ["someString" + ""] isValid should be true