@cucumber/react-components 24.1.2 → 24.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/src/CucumberQueryContext.d.ts +1 -2
- package/dist/src/CucumberQueryContext.d.ts.map +1 -1
- package/dist/src/CucumberQueryContext.js +2 -2
- package/dist/src/CucumberQueryContext.js.map +1 -1
- package/dist/src/GherkinQueryContext.d.ts +1 -2
- package/dist/src/GherkinQueryContext.d.ts.map +1 -1
- package/dist/src/GherkinQueryContext.js +2 -2
- package/dist/src/GherkinQueryContext.js.map +1 -1
- package/dist/src/SearchContext.d.ts +11 -5
- package/dist/src/SearchContext.d.ts.map +1 -1
- package/dist/src/SearchContext.js +4 -2
- package/dist/src/SearchContext.js.map +1 -1
- package/dist/src/ciCommitLink.d.ts +1 -1
- package/dist/src/ciCommitLink.d.ts.map +1 -1
- package/dist/src/ciCommitLink.js +1 -1
- package/dist/src/ciCommitLink.js.map +1 -1
- package/dist/src/components/app/CICommitLink.d.ts +2 -2
- package/dist/src/components/app/CICommitLink.d.ts.map +1 -1
- package/dist/src/components/app/CICommitLink.js +3 -8
- package/dist/src/components/app/CICommitLink.js.map +1 -1
- package/dist/src/components/app/CIJobLink.d.ts +2 -2
- package/dist/src/components/app/CIJobLink.d.ts.map +1 -1
- package/dist/src/components/app/CIJobLink.js +3 -7
- package/dist/src/components/app/CIJobLink.js.map +1 -1
- package/dist/src/components/app/ControlledSearchProvider.d.ts +2 -2
- package/dist/src/components/app/ControlledSearchProvider.d.ts.map +1 -1
- package/dist/src/components/app/ControlledSearchProvider.js +24 -2
- package/dist/src/components/app/ControlledSearchProvider.js.map +1 -1
- package/dist/src/components/app/CopyButton.d.ts +2 -1
- package/dist/src/components/app/CopyButton.d.ts.map +1 -1
- package/dist/src/components/app/CopyButton.js +4 -4
- package/dist/src/components/app/CopyButton.js.map +1 -1
- package/dist/src/components/app/DocumentAccordion.d.ts +3 -3
- package/dist/src/components/app/DocumentAccordion.d.ts.map +1 -1
- package/dist/src/components/app/DocumentAccordion.js +12 -20
- package/dist/src/components/app/DocumentAccordion.js.map +1 -1
- package/dist/src/components/app/DocumentAccordion.module.scss +15 -7
- package/dist/src/components/app/EnvelopesProvider.d.ts +2 -2
- package/dist/src/components/app/EnvelopesProvider.d.ts.map +1 -1
- package/dist/src/components/app/EnvelopesProvider.js +3 -2
- package/dist/src/components/app/EnvelopesProvider.js.map +1 -1
- package/dist/src/components/app/ExecutionSummary.d.ts +1 -1
- package/dist/src/components/app/ExecutionSummary.d.ts.map +1 -1
- package/dist/src/components/app/ExecutionSummary.js +3 -49
- package/dist/src/components/app/ExecutionSummary.js.map +1 -1
- package/dist/src/components/app/FilteredDocuments.d.ts +1 -1
- package/dist/src/components/app/FilteredDocuments.d.ts.map +1 -1
- package/dist/src/components/app/FilteredDocuments.js +4 -4
- package/dist/src/components/app/FilteredDocuments.js.map +1 -1
- package/dist/src/components/app/GherkinDocumentList.d.ts +3 -3
- package/dist/src/components/app/GherkinDocumentList.d.ts.map +1 -1
- package/dist/src/components/app/GherkinDocumentList.js +8 -9
- package/dist/src/components/app/GherkinDocumentList.js.map +1 -1
- package/dist/src/components/app/Header.d.ts +1 -1
- package/dist/src/components/app/Header.d.ts.map +1 -1
- package/dist/src/components/app/Header.js +4 -4
- package/dist/src/components/app/Header.js.map +1 -1
- package/dist/src/components/app/HealthChart.d.ts +1 -1
- package/dist/src/components/app/HealthChart.d.ts.map +1 -1
- package/dist/src/components/app/HealthChart.js +6 -7
- package/dist/src/components/app/HealthChart.js.map +1 -1
- package/dist/src/components/app/HighLight.d.ts +2 -2
- package/dist/src/components/app/HighLight.d.ts.map +1 -1
- package/dist/src/components/app/HighLight.js +15 -9
- package/dist/src/components/app/HighLight.js.map +1 -1
- package/dist/src/components/app/ImplementationIcon.d.ts +2 -2
- package/dist/src/components/app/ImplementationIcon.d.ts.map +1 -1
- package/dist/src/components/app/ImplementationIcon.js +2 -2
- package/dist/src/components/app/ImplementationIcon.js.map +1 -1
- package/dist/src/components/app/InMemorySearchProvider.d.ts +2 -2
- package/dist/src/components/app/InMemorySearchProvider.d.ts.map +1 -1
- package/dist/src/components/app/InMemorySearchProvider.js +3 -2
- package/dist/src/components/app/InMemorySearchProvider.js.map +1 -1
- package/dist/src/components/app/NavigationButton.d.ts +1 -1
- package/dist/src/components/app/NavigationButton.d.ts.map +1 -1
- package/dist/src/components/app/NavigationButton.js +2 -2
- package/dist/src/components/app/NavigationButton.js.map +1 -1
- package/dist/src/components/app/OSIcon.d.ts +2 -2
- package/dist/src/components/app/OSIcon.d.ts.map +1 -1
- package/dist/src/components/app/OSIcon.js +4 -4
- package/dist/src/components/app/OSIcon.js.map +1 -1
- package/dist/src/components/app/QueriesProvider.d.ts +3 -3
- package/dist/src/components/app/QueriesProvider.d.ts.map +1 -1
- package/dist/src/components/app/QueriesProvider.js +4 -3
- package/dist/src/components/app/QueriesProvider.js.map +1 -1
- package/dist/src/components/app/Report.d.ts +1 -1
- package/dist/src/components/app/Report.d.ts.map +1 -1
- package/dist/src/components/app/Report.js +2 -11
- package/dist/src/components/app/Report.js.map +1 -1
- package/dist/src/components/app/RuntimeIcon.d.ts +2 -2
- package/dist/src/components/app/RuntimeIcon.d.ts.map +1 -1
- package/dist/src/components/app/RuntimeIcon.js +4 -4
- package/dist/src/components/app/RuntimeIcon.js.map +1 -1
- package/dist/src/components/app/SearchBar.d.ts +1 -1
- package/dist/src/components/app/SearchBar.d.ts.map +1 -1
- package/dist/src/components/app/SearchBar.js +9 -24
- package/dist/src/components/app/SearchBar.js.map +1 -1
- package/dist/src/components/app/StatusesSummary.d.ts +1 -1
- package/dist/src/components/app/StatusesSummary.d.ts.map +1 -1
- package/dist/src/components/app/StatusesSummary.js +8 -11
- package/dist/src/components/app/StatusesSummary.js.map +1 -1
- package/dist/src/components/app/TestRunHooks.d.ts +1 -1
- package/dist/src/components/app/TestRunHooks.d.ts.map +1 -1
- package/dist/src/components/app/TestRunHooks.js +5 -5
- package/dist/src/components/app/TestRunHooks.js.map +1 -1
- package/dist/src/components/app/UrlSearchProvider.d.ts +1 -1
- package/dist/src/components/app/UrlSearchProvider.d.ts.map +1 -1
- package/dist/src/components/app/UrlSearchProvider.js +6 -3
- package/dist/src/components/app/UrlSearchProvider.js.map +1 -1
- package/dist/src/components/app/icons/CucumberLogo.d.ts +1 -1
- package/dist/src/components/app/icons/CucumberLogo.d.ts.map +1 -1
- package/dist/src/components/app/icons/CucumberLogo.js +2 -6
- package/dist/src/components/app/icons/CucumberLogo.js.map +1 -1
- package/dist/src/components/app/icons/Jvm.d.ts +1 -1
- package/dist/src/components/app/icons/Jvm.d.ts.map +1 -1
- package/dist/src/components/app/icons/Jvm.js +2 -7
- package/dist/src/components/app/icons/Jvm.js.map +1 -1
- package/dist/src/components/app/icons/Linux.d.ts +1 -1
- package/dist/src/components/app/icons/Linux.d.ts.map +1 -1
- package/dist/src/components/app/icons/Linux.js +2 -17
- package/dist/src/components/app/icons/Linux.js.map +1 -1
- package/dist/src/components/app/icons/MacOS.d.ts +1 -1
- package/dist/src/components/app/icons/MacOS.d.ts.map +1 -1
- package/dist/src/components/app/icons/MacOS.js +2 -3
- package/dist/src/components/app/icons/MacOS.js.map +1 -1
- package/dist/src/components/app/icons/NodeJs.d.ts +1 -1
- package/dist/src/components/app/icons/NodeJs.d.ts.map +1 -1
- package/dist/src/components/app/icons/NodeJs.js +2 -5
- package/dist/src/components/app/icons/NodeJs.js.map +1 -1
- package/dist/src/components/app/icons/Ruby.d.ts +1 -1
- package/dist/src/components/app/icons/Ruby.d.ts.map +1 -1
- package/dist/src/components/app/icons/Ruby.js +2 -3
- package/dist/src/components/app/icons/Ruby.js.map +1 -1
- package/dist/src/components/app/icons/Windows.d.ts +1 -1
- package/dist/src/components/app/icons/Windows.d.ts.map +1 -1
- package/dist/src/components/app/icons/Windows.js +2 -3
- package/dist/src/components/app/icons/Windows.js.map +1 -1
- package/dist/src/components/app/makeSetupString.d.ts +1 -1
- package/dist/src/components/app/makeSetupString.d.ts.map +1 -1
- package/dist/src/components/app/makeSetupString.js.map +1 -1
- package/dist/src/components/app/markdownComponents.d.ts +9 -0
- package/dist/src/components/app/markdownComponents.d.ts.map +1 -0
- package/dist/src/components/app/markdownComponents.js +6 -0
- package/dist/src/components/app/markdownComponents.js.map +1 -0
- package/dist/src/components/app/rehypePlugins.d.ts +2 -2
- package/dist/src/components/app/rehypePlugins.d.ts.map +1 -1
- package/dist/src/components/app/rehypePlugins.js.map +1 -1
- package/dist/src/components/app/remarkPlugins.d.ts +2 -2
- package/dist/src/components/app/remarkPlugins.d.ts.map +1 -1
- package/dist/src/components/app/remarkPlugins.js.map +1 -1
- package/dist/src/components/customise/CustomRendering.d.ts +18 -18
- package/dist/src/components/customise/CustomRendering.d.ts.map +1 -1
- package/dist/src/components/customise/CustomRendering.js +10 -9
- package/dist/src/components/customise/CustomRendering.js.map +1 -1
- package/dist/src/components/customise/CustomRendering.stories.scss +0 -17
- package/dist/src/components/gherkin/Anchor.d.ts +3 -3
- package/dist/src/components/gherkin/Anchor.d.ts.map +1 -1
- package/dist/src/components/gherkin/Anchor.js +3 -6
- package/dist/src/components/gherkin/Anchor.js.map +1 -1
- package/dist/src/components/gherkin/Background.d.ts +3 -3
- package/dist/src/components/gherkin/Background.d.ts.map +1 -1
- package/dist/src/components/gherkin/Background.js +4 -10
- package/dist/src/components/gherkin/Background.js.map +1 -1
- package/dist/src/components/gherkin/Children.d.ts +3 -3
- package/dist/src/components/gherkin/Children.d.ts.map +1 -1
- package/dist/src/components/gherkin/Children.js +3 -3
- package/dist/src/components/gherkin/Children.js.map +1 -1
- package/dist/src/components/gherkin/DataTable.d.ts +3 -3
- package/dist/src/components/gherkin/DataTable.d.ts.map +1 -1
- package/dist/src/components/gherkin/DataTable.js +4 -6
- package/dist/src/components/gherkin/DataTable.js.map +1 -1
- package/dist/src/components/gherkin/Description.d.ts +3 -3
- package/dist/src/components/gherkin/Description.d.ts.map +1 -1
- package/dist/src/components/gherkin/Description.js +3 -4
- package/dist/src/components/gherkin/Description.js.map +1 -1
- package/dist/src/components/gherkin/DocString.d.ts +3 -3
- package/dist/src/components/gherkin/DocString.d.ts.map +1 -1
- package/dist/src/components/gherkin/DocString.js +3 -4
- package/dist/src/components/gherkin/DocString.js.map +1 -1
- package/dist/src/components/gherkin/ErrorMessage.d.ts +2 -2
- package/dist/src/components/gherkin/ErrorMessage.d.ts.map +1 -1
- package/dist/src/components/gherkin/ErrorMessage.js +5 -3
- package/dist/src/components/gherkin/ErrorMessage.js.map +1 -1
- package/dist/src/components/gherkin/ErrorMessage.module.scss +17 -5
- package/dist/src/components/gherkin/Examples.d.ts +3 -3
- package/dist/src/components/gherkin/Examples.d.ts.map +1 -1
- package/dist/src/components/gherkin/Examples.js +7 -18
- package/dist/src/components/gherkin/Examples.js.map +1 -1
- package/dist/src/components/gherkin/Feature.d.ts +3 -3
- package/dist/src/components/gherkin/Feature.d.ts.map +1 -1
- package/dist/src/components/gherkin/Feature.js +14 -24
- package/dist/src/components/gherkin/Feature.js.map +1 -1
- package/dist/src/components/gherkin/GherkinDocument.d.ts +3 -3
- package/dist/src/components/gherkin/GherkinDocument.d.ts.map +1 -1
- package/dist/src/components/gherkin/GherkinDocument.js +3 -3
- package/dist/src/components/gherkin/GherkinDocument.js.map +1 -1
- package/dist/src/components/gherkin/Keyword.d.ts +2 -2
- package/dist/src/components/gherkin/Keyword.d.ts.map +1 -1
- package/dist/src/components/gherkin/Keyword.js +3 -3
- package/dist/src/components/gherkin/Keyword.js.map +1 -1
- package/dist/src/components/gherkin/Keyword.module.scss +0 -1
- package/dist/src/components/gherkin/Parameter.d.ts +3 -3
- package/dist/src/components/gherkin/Parameter.d.ts.map +1 -1
- package/dist/src/components/gherkin/Parameter.js +4 -4
- package/dist/src/components/gherkin/Parameter.js.map +1 -1
- package/dist/src/components/gherkin/Rule.d.ts +3 -3
- package/dist/src/components/gherkin/Rule.d.ts.map +1 -1
- package/dist/src/components/gherkin/Rule.js +11 -21
- package/dist/src/components/gherkin/Rule.js.map +1 -1
- package/dist/src/components/gherkin/Scenario.d.ts +3 -3
- package/dist/src/components/gherkin/Scenario.d.ts.map +1 -1
- package/dist/src/components/gherkin/Scenario.js +5 -14
- package/dist/src/components/gherkin/Scenario.js.map +1 -1
- package/dist/src/components/gherkin/StatusIcon.d.ts +2 -2
- package/dist/src/components/gherkin/StatusIcon.d.ts.map +1 -1
- package/dist/src/components/gherkin/StatusIcon.js +10 -10
- package/dist/src/components/gherkin/StatusIcon.js.map +1 -1
- package/dist/src/components/gherkin/StepsList.d.ts +1 -1
- package/dist/src/components/gherkin/StepsList.d.ts.map +1 -1
- package/dist/src/components/gherkin/StepsList.js +2 -2
- package/dist/src/components/gherkin/StepsList.js.map +1 -1
- package/dist/src/components/gherkin/Tags.d.ts +3 -3
- package/dist/src/components/gherkin/Tags.d.ts.map +1 -1
- package/dist/src/components/gherkin/Tags.js +4 -5
- package/dist/src/components/gherkin/Tags.js.map +1 -1
- package/dist/src/components/gherkin/Title.d.ts +3 -3
- package/dist/src/components/gherkin/Title.d.ts.map +1 -1
- package/dist/src/components/gherkin/Title.js +3 -4
- package/dist/src/components/gherkin/Title.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Attachment.d.ts +3 -3
- package/dist/src/components/gherkin/attachment/Attachment.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Attachment.js +14 -17
- package/dist/src/components/gherkin/attachment/Attachment.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Attachment.module.scss +15 -5
- package/dist/src/components/gherkin/attachment/Image.d.ts +4 -4
- package/dist/src/components/gherkin/attachment/Image.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Image.js +6 -8
- package/dist/src/components/gherkin/attachment/Image.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Links.d.ts +3 -3
- package/dist/src/components/gherkin/attachment/Links.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Links.js +7 -10
- package/dist/src/components/gherkin/attachment/Links.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Log.d.ts +3 -3
- package/dist/src/components/gherkin/attachment/Log.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Log.js +3 -3
- package/dist/src/components/gherkin/attachment/Log.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Text.d.ts +3 -3
- package/dist/src/components/gherkin/attachment/Text.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Text.js +4 -6
- package/dist/src/components/gherkin/attachment/Text.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Unknown.d.ts +2 -2
- package/dist/src/components/gherkin/attachment/Unknown.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Unknown.js +9 -17
- package/dist/src/components/gherkin/attachment/Unknown.js.map +1 -1
- package/dist/src/components/gherkin/attachment/Video.d.ts +3 -3
- package/dist/src/components/gherkin/attachment/Video.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/Video.js +6 -10
- package/dist/src/components/gherkin/attachment/Video.js.map +1 -1
- package/dist/src/components/gherkin/attachment/attachmentFilename.d.ts +1 -1
- package/dist/src/components/gherkin/attachment/attachmentFilename.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/attachmentFilename.js.map +1 -1
- package/dist/src/components/gherkin/attachment/base64Decode.d.ts +9 -1
- package/dist/src/components/gherkin/attachment/base64Decode.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/base64Decode.js +17 -3
- package/dist/src/components/gherkin/attachment/base64Decode.js.map +1 -1
- package/dist/src/components/gherkin/attachment/useText.d.ts +1 -1
- package/dist/src/components/gherkin/attachment/useText.d.ts.map +1 -1
- package/dist/src/components/gherkin/attachment/useText.js +3 -3
- package/dist/src/components/gherkin/attachment/useText.js.map +1 -1
- package/dist/src/components/gherkin/composeHookStepTitle.d.ts +1 -1
- package/dist/src/components/gherkin/composeHookStepTitle.d.ts.map +1 -1
- package/dist/src/components/gherkin/composeHookStepTitle.js +1 -1
- package/dist/src/components/gherkin/composeHookStepTitle.js.map +1 -1
- package/dist/src/components/gherkin/composePickleStepTitle.d.ts +1 -1
- package/dist/src/components/gherkin/composePickleStepTitle.d.ts.map +1 -1
- package/dist/src/components/gherkin/composePickleStepTitle.js +2 -2
- package/dist/src/components/gherkin/composePickleStepTitle.js.map +1 -1
- package/dist/src/components/gherkin/statusName.d.ts +2 -2
- package/dist/src/components/gherkin/statusName.d.ts.map +1 -1
- package/dist/src/components/gherkin/statusName.js.map +1 -1
- package/dist/src/components/results/AmbiguousResult.d.ts +8 -0
- package/dist/src/components/results/AmbiguousResult.d.ts.map +1 -0
- package/dist/src/components/results/AmbiguousResult.js +11 -0
- package/dist/src/components/results/AmbiguousResult.js.map +1 -0
- package/dist/src/components/results/AmbiguousResult.module.scss +22 -0
- package/dist/src/components/results/FailedResult.d.ts +8 -0
- package/dist/src/components/results/FailedResult.d.ts.map +1 -0
- package/dist/src/components/results/FailedResult.js +15 -0
- package/dist/src/components/results/FailedResult.js.map +1 -0
- package/dist/src/components/results/PendingResult.d.ts +8 -0
- package/dist/src/components/results/PendingResult.d.ts.map +1 -0
- package/dist/src/components/results/PendingResult.js +12 -0
- package/dist/src/components/results/PendingResult.js.map +1 -0
- package/dist/src/components/results/ResultNote.d.ts +3 -0
- package/dist/src/components/results/ResultNote.d.ts.map +1 -0
- package/dist/src/components/results/ResultNote.js +6 -0
- package/dist/src/components/results/ResultNote.js.map +1 -0
- package/dist/src/components/results/ResultNote.module.scss +6 -0
- package/dist/src/components/results/SkippedResult.d.ts +8 -0
- package/dist/src/components/results/SkippedResult.d.ts.map +1 -0
- package/dist/src/components/results/SkippedResult.js +12 -0
- package/dist/src/components/results/SkippedResult.js.map +1 -0
- package/dist/src/components/results/SourceReference.d.ts +8 -0
- package/dist/src/components/results/SourceReference.d.ts.map +1 -0
- package/dist/src/components/results/SourceReference.js +13 -0
- package/dist/src/components/results/SourceReference.js.map +1 -0
- package/dist/src/components/results/SourceReference.module.scss +10 -0
- package/dist/src/components/results/TestCaseOutcome.d.ts +2 -2
- package/dist/src/components/results/TestCaseOutcome.d.ts.map +1 -1
- package/dist/src/components/results/TestCaseOutcome.js +5 -9
- package/dist/src/components/results/TestCaseOutcome.js.map +1 -1
- package/dist/src/components/results/TestRunHookOutcome.d.ts +2 -2
- package/dist/src/components/results/TestRunHookOutcome.d.ts.map +1 -1
- package/dist/src/components/results/TestRunHookOutcome.js +4 -13
- package/dist/src/components/results/TestRunHookOutcome.js.map +1 -1
- package/dist/src/components/results/TestStepAttachments.d.ts +2 -2
- package/dist/src/components/results/TestStepAttachments.d.ts.map +1 -1
- package/dist/src/components/results/TestStepAttachments.js +4 -5
- package/dist/src/components/results/TestStepAttachments.js.map +1 -1
- package/dist/src/components/results/TestStepDuration.d.ts +2 -2
- package/dist/src/components/results/TestStepDuration.d.ts.map +1 -1
- package/dist/src/components/results/TestStepDuration.js +4 -2
- package/dist/src/components/results/TestStepDuration.js.map +1 -1
- package/dist/src/components/results/TestStepOutcome.d.ts +2 -2
- package/dist/src/components/results/TestStepOutcome.d.ts.map +1 -1
- package/dist/src/components/results/TestStepOutcome.js +18 -27
- package/dist/src/components/results/TestStepOutcome.js.map +1 -1
- package/dist/src/components/results/TestStepOutcome.module.scss +1 -1
- package/dist/src/components/results/UndefinedResult.d.ts +8 -0
- package/dist/src/components/results/UndefinedResult.d.ts.map +1 -0
- package/dist/src/components/results/UndefinedResult.js +18 -0
- package/dist/src/components/results/UndefinedResult.js.map +1 -0
- package/dist/src/components/results/UndefinedResult.module.scss +14 -0
- package/dist/src/components/results/index.d.ts +1 -1
- package/dist/src/components/results/index.d.ts.map +1 -1
- package/dist/src/components/results/index.js +1 -1
- package/dist/src/components/results/index.js.map +1 -1
- package/dist/src/formatExecutionDuration.js.map +1 -1
- package/dist/src/hooks/helpers.js.map +1 -1
- package/dist/src/hooks/useFilteredDocuments.d.ts +2 -2
- package/dist/src/hooks/useFilteredDocuments.d.ts.map +1 -1
- package/dist/src/hooks/useFilteredDocuments.js +70 -18
- package/dist/src/hooks/useFilteredDocuments.js.map +1 -1
- package/dist/src/hooks/useMostSevereStatusByUri.js.map +1 -1
- package/dist/src/hooks/useQueries.d.ts +2 -2
- package/dist/src/hooks/useQueries.d.ts.map +1 -1
- package/dist/src/hooks/useQueries.js.map +1 -1
- package/dist/src/hooks/useResultStatistics.d.ts +3 -2
- package/dist/src/hooks/useResultStatistics.d.ts.map +1 -1
- package/dist/src/hooks/useResultStatistics.js +19 -2
- package/dist/src/hooks/useResultStatistics.js.map +1 -1
- package/dist/src/hooks/useSearch.d.ts +1 -1
- package/dist/src/hooks/useSearch.d.ts.map +1 -1
- package/dist/src/hooks/useSearch.js.map +1 -1
- package/dist/src/hooks/useTestCaseStarted.d.ts +6 -1
- package/dist/src/hooks/useTestCaseStarted.d.ts.map +1 -1
- package/dist/src/hooks/useTestCaseStarted.js +13 -10
- package/dist/src/hooks/useTestCaseStarted.js.map +1 -1
- package/dist/src/hooks/useTestRunHooks.d.ts +1 -1
- package/dist/src/hooks/useTestRunHooks.d.ts.map +1 -1
- package/dist/src/hooks/useTestRunHooks.js.map +1 -1
- package/dist/src/search/FeatureSearch.d.ts +12 -3
- package/dist/src/search/FeatureSearch.d.ts.map +1 -1
- package/dist/src/search/FeatureSearch.js +9 -17
- package/dist/src/search/FeatureSearch.js.map +1 -1
- package/dist/src/search/ScenarioLikeSearch.d.ts +8 -13
- package/dist/src/search/ScenarioLikeSearch.d.ts.map +1 -1
- package/dist/src/search/ScenarioLikeSearch.js +13 -17
- package/dist/src/search/ScenarioLikeSearch.js.map +1 -1
- package/dist/src/search/StepSearch.d.ts +9 -16
- package/dist/src/search/StepSearch.d.ts.map +1 -1
- package/dist/src/search/StepSearch.js +13 -17
- package/dist/src/search/StepSearch.js.map +1 -1
- package/dist/src/search/TextSearch.d.ts +11 -2
- package/dist/src/search/TextSearch.d.ts.map +1 -1
- package/dist/src/search/TextSearch.js +59 -52
- package/dist/src/search/TextSearch.js.map +1 -1
- package/dist/src/search/createSearchIndex.d.ts +7 -0
- package/dist/src/search/createSearchIndex.d.ts.map +1 -0
- package/dist/src/search/createSearchIndex.js +10 -0
- package/dist/src/search/createSearchIndex.js.map +1 -0
- package/dist/src/search/deriveLineageConstraints.d.ts +8 -0
- package/dist/src/search/deriveLineageConstraints.d.ts.map +1 -0
- package/dist/src/search/deriveLineageConstraints.js +38 -0
- package/dist/src/search/deriveLineageConstraints.js.map +1 -0
- package/dist/src/search/index.d.ts +3 -1
- package/dist/src/search/index.d.ts.map +1 -1
- package/dist/src/search/index.js +3 -1
- package/dist/src/search/index.js.map +1 -1
- package/dist/src/search/pruneGherkinDocuments.d.ts +24 -0
- package/dist/src/search/pruneGherkinDocuments.d.ts.map +1 -0
- package/dist/src/search/pruneGherkinDocuments.js +180 -0
- package/dist/src/search/pruneGherkinDocuments.js.map +1 -0
- package/dist/src/search/types.d.ts +39 -8
- package/dist/src/search/types.d.ts.map +1 -1
- package/dist/src/search/types.js +1 -1
- package/dist/src/search/types.js.map +1 -1
- package/dist/src/styles/statuses.scss +7 -13
- package/dist/src/toRepositoryId.d.ts +1 -1
- package/dist/src/toRepositoryId.d.ts.map +1 -1
- package/dist/src/toRepositoryId.js +7 -6
- package/dist/src/toRepositoryId.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +56 -71
- package/dist/src/components/results/TestStepResultDetails.d.ts +0 -4
- package/dist/src/components/results/TestStepResultDetails.d.ts.map +0 -1
- package/dist/src/components/results/TestStepResultDetails.js +0 -16
- package/dist/src/components/results/TestStepResultDetails.js.map +0 -1
- package/dist/src/countScenariosByStatuses.d.ts +0 -8
- package/dist/src/countScenariosByStatuses.d.ts.map +0 -1
- package/dist/src/countScenariosByStatuses.js +0 -22
- package/dist/src/countScenariosByStatuses.js.map +0 -1
- package/dist/src/filter/filterByStatus.d.ts +0 -5
- package/dist/src/filter/filterByStatus.d.ts.map +0 -1
- package/dist/src/filter/filterByStatus.js +0 -23
- package/dist/src/filter/filterByStatus.js.map +0 -1
- package/dist/src/search/Search.d.ts +0 -11
- package/dist/src/search/Search.d.ts.map +0 -1
- package/dist/src/search/Search.js +0 -46
- package/dist/src/search/Search.js.map +0 -1
- package/dist/src/search/TagSearch.d.ts +0 -4
- package/dist/src/search/TagSearch.d.ts.map +0 -1
- package/dist/src/search/TagSearch.js +0 -57
- package/dist/src/search/TagSearch.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useText.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/useText.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useText.js","sourceRoot":"","sources":["../../../../../src/components/gherkin/attachment/useText.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEpD,MAAM,UAAU,OAAO,CAAC,UAAsB;IAC5C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC7C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CACpC,UAAU,CAAC,eAAe,KAAK,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAC9F,CAAA;IACD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAkB,CAAA;IACpD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,UAAU,CAAC,GAAG,EAAE,CAAC;YACnB,UAAU,CAAC,IAAI,CAAC,CAAA;YAChB,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC;iBAClB,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACjB,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;oBAC5B,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAA;gBAChE,CAAC;gBACD,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;YACzD,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;iBACzB,OAAO,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAA;QACrC,CAAC;IACH,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAA;IAChB,OAAO;QACL,KAAK,EAAE,UAAU,CAAC,QAAQ,IAAI,kBAAkB,UAAU,CAAC,SAAS,GAAG;QACvE,OAAO;QACP,OAAO;QACP,KAAK;KACN,CAAA;AACH,CAAC","sourcesContent":["import type { Attachment } from '@cucumber/messages'\nimport { useEffect, useState } from 'react'\n\nimport { base64DecodeText } from './base64Decode.js'\n\nexport function useText(attachment: Attachment) {\n const [loading, setLoading] = useState(false)\n const [content, setContent] = useState(\n attachment.contentEncoding === 'BASE64' ? base64DecodeText(attachment.body) : attachment.body\n )\n const [error, setError] = useState<Error | string>()\n useEffect(() => {\n if (attachment.url) {\n setLoading(true)\n fetch(attachment.url)\n .then((response) => {\n if (response.status !== 200) {\n throw new Error('HTTP error when fetching attachment content')\n }\n return response.text().then((text) => setContent(text))\n })\n .catch((e) => setError(e))\n .finally(() => setLoading(false))\n }\n }, [attachment])\n return {\n title: attachment.fileName ?? `Attached Text (${attachment.mediaType})`,\n loading,\n content,\n error,\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeHookStepTitle.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/composeHookStepTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAY,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"composeHookStepTitle.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/composeHookStepTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAY,MAAM,oBAAoB,CAAA;AAWxD,wBAAgB,oBAAoB,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAcxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeHookStepTitle.js","sourceRoot":"","sources":["../../../../src/components/gherkin/composeHookStepTitle.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"composeHookStepTitle.js","sourceRoot":"","sources":["../../../../src/components/gherkin/composeHookStepTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAExD,MAAM,MAAM,GAA6B;IACvC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,WAAW;IACvC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,QAAQ;IACrC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,YAAY;IACzC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,WAAW;IACvC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO;IACnC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,UAAU;CACtC,CAAA;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAW;IAC9C,IAAI,MAAM,GAAG,EAAE,CAAA;IAEf,IAAI,IAAI,EAAE,IAAI,EAAE,CAAC;QACf,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC5B,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,MAAM,CAAA;IAClB,CAAC;IAED,IAAI,IAAI,EAAE,IAAI,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,IAAI,CAAC,IAAI,EAAE,CAAA;IAC5B,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC","sourcesContent":["import { type Hook, HookType } from '@cucumber/messages'\n\nconst labels: Record<HookType, string> = {\n [HookType.BEFORE_TEST_RUN]: 'BeforeAll',\n [HookType.BEFORE_TEST_CASE]: 'Before',\n [HookType.BEFORE_TEST_STEP]: 'BeforeStep',\n [HookType.AFTER_TEST_STEP]: 'AfterStep',\n [HookType.AFTER_TEST_CASE]: 'After',\n [HookType.AFTER_TEST_RUN]: 'AfterAll',\n}\n\nexport function composeHookStepTitle(hook?: Hook): string {\n let result = ''\n\n if (hook?.type) {\n result = labels[hook.type]\n } else {\n result += 'Hook'\n }\n\n if (hook?.name) {\n result += `: ${hook.name}`\n }\n\n return result\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composePickleStepTitle.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/composePickleStepTitle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"composePickleStepTitle.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/composePickleStepTitle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAEhE,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,EACZ,uBAAuB,CAAC,EAAE,aAAa,CAAC,sBAAsB,CAAC,GAC9D,aAAa,CAAC,aAAa,CAAC,CAkC9B"}
|
|
@@ -4,7 +4,7 @@ export function composePickleStepTitle(text, stepMatchArgumentsLists) {
|
|
|
4
4
|
let offset = 0;
|
|
5
5
|
let plain;
|
|
6
6
|
const fragments = [];
|
|
7
|
-
|
|
7
|
+
for (const argument of stepMatchArguments) {
|
|
8
8
|
plain = text.slice(offset, argument.group.start);
|
|
9
9
|
if (plain.length > 0) {
|
|
10
10
|
fragments.push({ value: plain });
|
|
@@ -19,7 +19,7 @@ export function composePickleStepTitle(text, stepMatchArgumentsLists) {
|
|
|
19
19
|
}
|
|
20
20
|
offset += plain.length + arg.length;
|
|
21
21
|
}
|
|
22
|
-
}
|
|
22
|
+
}
|
|
23
23
|
plain = text.slice(offset);
|
|
24
24
|
if (plain.length > 0) {
|
|
25
25
|
fragments.push({ value: plain });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composePickleStepTitle.js","sourceRoot":"","sources":["../../../../src/components/gherkin/composePickleStepTitle.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,sBAAsB,CACpC,IAAY,EACZ,uBAA+D;IAE/D,IAAI,uBAAuB,EAAE,MAAM,KAAK,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"composePickleStepTitle.js","sourceRoot":"","sources":["../../../../src/components/gherkin/composePickleStepTitle.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,sBAAsB,CACpC,IAAY,EACZ,uBAA+D;IAE/D,IAAI,uBAAuB,EAAE,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1C,MAAM,kBAAkB,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAA;QACxE,IAAI,MAAM,GAAG,CAAC,CAAA;QACd,IAAI,KAAa,CAAA;QACjB,MAAM,SAAS,GAAoB,EAAE,CAAA;QACrC,KAAK,MAAM,QAAQ,IAAI,kBAAkB,EAAE,CAAC;YAC1C,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YAChD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACrB,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;YAClC,CAAC;YACD,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAA;YAChC,IAAI,GAAG,EAAE,CAAC;gBACR,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACnB,SAAS,CAAC,IAAI,CAAC;wBACb,KAAK,EAAE,GAAG;wBACV,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB,IAAI,WAAW;qBAC7D,CAAC,CAAA;gBACJ,CAAC;gBACD,MAAM,IAAI,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAA;YACrC,CAAC;QACH,CAAC;QACD,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAC1B,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACrB,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;QAClC,CAAC;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;IACD,iDAAiD;IACjD,OAAO;QACL;YACE,KAAK,EAAE,IAAI;SACZ;KACF,CAAA;AACH,CAAC","sourcesContent":["import type { StepMatchArgumentsList } from '@cucumber/messages'\n\ninterface TitleFragment {\n value: string\n parameterTypeName?: string\n}\n\nexport function composePickleStepTitle(\n text: string,\n stepMatchArgumentsLists?: ReadonlyArray<StepMatchArgumentsList>\n): ReadonlyArray<TitleFragment> {\n if (stepMatchArgumentsLists?.length === 1) {\n const stepMatchArguments = stepMatchArgumentsLists[0].stepMatchArguments\n let offset = 0\n let plain: string\n const fragments: TitleFragment[] = []\n for (const argument of stepMatchArguments) {\n plain = text.slice(offset, argument.group.start)\n if (plain.length > 0) {\n fragments.push({ value: plain })\n }\n const arg = argument.group.value\n if (arg) {\n if (arg.length > 0) {\n fragments.push({\n value: arg,\n parameterTypeName: argument.parameterTypeName || 'anonymous',\n })\n }\n offset += plain.length + arg.length\n }\n }\n plain = text.slice(offset)\n if (plain.length > 0) {\n fragments.push({ value: plain })\n }\n return fragments\n }\n // no argument matching, just a single text value\n return [\n {\n value: text,\n },\n ]\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const _default: (status:
|
|
1
|
+
import type { TestStepResultStatus } from '@cucumber/messages';
|
|
2
|
+
declare const _default: (status: TestStepResultStatus) => string;
|
|
3
3
|
export default _default;
|
|
4
4
|
//# sourceMappingURL=statusName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statusName.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/statusName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"statusName.d.ts","sourceRoot":"","sources":["../../../../src/components/gherkin/statusName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;yBAE9C,QAAQ,oBAAoB,KAAG,MAAM;AAArD,wBAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statusName.js","sourceRoot":"","sources":["../../../../src/components/gherkin/statusName.ts"],"names":[],"mappings":"AAEA,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"statusName.js","sourceRoot":"","sources":["../../../../src/components/gherkin/statusName.ts"],"names":[],"mappings":"AAEA,eAAe,CAAC,MAA4B,EAAU,EAAE;IACtD,OAAO,MAAM,CAAC,WAAW,EAAE,CAAA;AAC7B,CAAC,CAAA","sourcesContent":["import type { TestStepResultStatus } from '@cucumber/messages'\n\nexport default (status: TestStepResultStatus): string => {\n return status.toLowerCase()\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmbiguousResult.d.ts","sourceRoot":"","sources":["../../../../src/components/results/AmbiguousResult.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAO/B,UAAU,KAAK;IACb,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,KAAK,CAgBrC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useQueries } from '../../hooks/index.js';
|
|
3
|
+
import styles from './AmbiguousResult.module.scss';
|
|
4
|
+
import { ResultNote } from './ResultNote.js';
|
|
5
|
+
import { SourceReference } from './SourceReference.js';
|
|
6
|
+
export const AmbiguousResult = ({ testStep }) => {
|
|
7
|
+
const { cucumberQuery } = useQueries();
|
|
8
|
+
const stepDefinitions = cucumberQuery.findStepDefinitionsBy(testStep);
|
|
9
|
+
return (_jsxs(_Fragment, { children: [_jsx(ResultNote, { children: "Multiple matching step definitions found:" }), _jsx("ul", { className: styles.definitions, children: stepDefinitions.map((stepDefinition) => (_jsxs("li", { className: styles.definition, children: [_jsx("code", { className: styles.pattern, children: stepDefinition.pattern.source }), _jsx(SourceReference, { sourceReference: stepDefinition.sourceReference })] }, stepDefinition.id))) })] }));
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=AmbiguousResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmbiguousResult.js","sourceRoot":"","sources":["../../../../src/components/results/AmbiguousResult.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,MAAM,MAAM,+BAA+B,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAMtD,MAAM,CAAC,MAAM,eAAe,GAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACzD,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAA;IACtC,MAAM,eAAe,GAAG,aAAa,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAA;IACrE,OAAO,CACL,8BACE,KAAC,UAAU,4DAAuD,EAClE,aAAI,SAAS,EAAE,MAAM,CAAC,WAAW,YAC9B,eAAe,CAAC,GAAG,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,CACvC,cAA4B,SAAS,EAAE,MAAM,CAAC,UAAU,aACtD,eAAM,SAAS,EAAE,MAAM,CAAC,OAAO,YAAG,cAAc,CAAC,OAAO,CAAC,MAAM,GAAQ,EACvE,KAAC,eAAe,IAAC,eAAe,EAAE,cAAc,CAAC,eAAe,GAAI,KAF7D,cAAc,CAAC,EAAE,CAGrB,CACN,CAAC,GACC,IACJ,CACJ,CAAA;AACH,CAAC,CAAA","sourcesContent":["import type { TestStep } from '@cucumber/messages'\nimport type { FC } from 'react'\n\nimport { useQueries } from '../../hooks/index.js'\nimport styles from './AmbiguousResult.module.scss'\nimport { ResultNote } from './ResultNote.js'\nimport { SourceReference } from './SourceReference.js'\n\ninterface Props {\n testStep: TestStep\n}\n\nexport const AmbiguousResult: FC<Props> = ({ testStep }) => {\n const { cucumberQuery } = useQueries()\n const stepDefinitions = cucumberQuery.findStepDefinitionsBy(testStep)\n return (\n <>\n <ResultNote>Multiple matching step definitions found:</ResultNote>\n <ul className={styles.definitions}>\n {stepDefinitions.map((stepDefinition) => (\n <li key={stepDefinition.id} className={styles.definition}>\n <code className={styles.pattern}>{stepDefinition.pattern.source}</code>\n <SourceReference sourceReference={stepDefinition.sourceReference} />\n </li>\n ))}\n </ul>\n </>\n )\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use '../../styles/theming';
|
|
2
|
+
|
|
3
|
+
.definitions {
|
|
4
|
+
padding: 0;
|
|
5
|
+
margin: 0;
|
|
6
|
+
list-style: none;
|
|
7
|
+
|
|
8
|
+
> * + * {
|
|
9
|
+
margin-top: 0.25em;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.definition {
|
|
14
|
+
> * + * {
|
|
15
|
+
margin-left: 0.5em;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.pattern {
|
|
20
|
+
color: theming.$parameterColor;
|
|
21
|
+
font-size: inherit;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FailedResult.d.ts","sourceRoot":"","sources":["../../../../src/components/results/FailedResult.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAI/B,UAAU,KAAK;IACb,MAAM,EAAE,cAAc,CAAA;CACvB;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,CAelC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ErrorMessage } from '../gherkin/index.js';
|
|
3
|
+
export const FailedResult = ({ result: { exception, message } }) => {
|
|
4
|
+
if (exception?.stackTrace) {
|
|
5
|
+
return _jsx(ErrorMessage, { children: exception.stackTrace });
|
|
6
|
+
}
|
|
7
|
+
if (exception) {
|
|
8
|
+
return (_jsxs(ErrorMessage, { children: [_jsx("strong", { children: exception.type }), " ", exception.message] }));
|
|
9
|
+
}
|
|
10
|
+
if (message) {
|
|
11
|
+
return _jsx(ErrorMessage, { children: message });
|
|
12
|
+
}
|
|
13
|
+
return null;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=FailedResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FailedResult.js","sourceRoot":"","sources":["../../../../src/components/results/FailedResult.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAMlD,MAAM,CAAC,MAAM,YAAY,GAAc,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;IAC5E,IAAI,SAAS,EAAE,UAAU,EAAE,CAAC;QAC1B,OAAO,KAAC,YAAY,cAAE,SAAS,CAAC,UAAU,GAAgB,CAAA;IAC5D,CAAC;IACD,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,CACL,MAAC,YAAY,eACX,2BAAS,SAAS,CAAC,IAAI,GAAU,OAAE,SAAS,CAAC,OAAO,IACvC,CAChB,CAAA;IACH,CAAC;IACD,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,KAAC,YAAY,cAAE,OAAO,GAAgB,CAAA;IAC/C,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["import type { TestStepResult } from '@cucumber/messages'\nimport type { FC } from 'react'\n\nimport { ErrorMessage } from '../gherkin/index.js'\n\ninterface Props {\n result: TestStepResult\n}\n\nexport const FailedResult: FC<Props> = ({ result: { exception, message } }) => {\n if (exception?.stackTrace) {\n return <ErrorMessage>{exception.stackTrace}</ErrorMessage>\n }\n if (exception) {\n return (\n <ErrorMessage>\n <strong>{exception.type}</strong> {exception.message}\n </ErrorMessage>\n )\n }\n if (message) {\n return <ErrorMessage>{message}</ErrorMessage>\n }\n return null\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PendingResult.d.ts","sourceRoot":"","sources":["../../../../src/components/results/PendingResult.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAI/B,UAAU,KAAK;IACb,MAAM,EAAE,cAAc,CAAA;CACvB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CAQnC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ResultNote } from './ResultNote.js';
|
|
3
|
+
export const PendingResult = ({ result: { exception, message } }) => {
|
|
4
|
+
if (exception?.message) {
|
|
5
|
+
return _jsx(ResultNote, { children: exception.message });
|
|
6
|
+
}
|
|
7
|
+
if (message) {
|
|
8
|
+
return _jsx(ResultNote, { children: message });
|
|
9
|
+
}
|
|
10
|
+
return null;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=PendingResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PendingResult.js","sourceRoot":"","sources":["../../../../src/components/results/PendingResult.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAM5C,MAAM,CAAC,MAAM,aAAa,GAAc,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;IAC7E,IAAI,SAAS,EAAE,OAAO,EAAE,CAAC;QACvB,OAAO,KAAC,UAAU,cAAE,SAAS,CAAC,OAAO,GAAc,CAAA;IACrD,CAAC;IACD,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,KAAC,UAAU,cAAE,OAAO,GAAc,CAAA;IAC3C,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["import type { TestStepResult } from '@cucumber/messages'\nimport type { FC } from 'react'\n\nimport { ResultNote } from './ResultNote.js'\n\ninterface Props {\n result: TestStepResult\n}\n\nexport const PendingResult: FC<Props> = ({ result: { exception, message } }) => {\n if (exception?.message) {\n return <ResultNote>{exception.message}</ResultNote>\n }\n if (message) {\n return <ResultNote>{message}</ResultNote>\n }\n return null\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResultNote.d.ts","sourceRoot":"","sources":["../../../../src/components/results/ResultNote.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAIlD,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,iBAAiB,CAE5C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResultNote.js","sourceRoot":"","sources":["../../../../src/components/results/ResultNote.tsx"],"names":[],"mappings":";AAEA,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAE7C,MAAM,CAAC,MAAM,UAAU,GAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAChE,OAAO,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,QAAQ,GAAK,CAAA;AAClD,CAAC,CAAA","sourcesContent":["import type { FC, PropsWithChildren } from 'react'\n\nimport styles from './ResultNote.module.scss'\n\nexport const ResultNote: FC<PropsWithChildren> = ({ children }) => {\n return <p className={styles.note}>{children}</p>\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkippedResult.d.ts","sourceRoot":"","sources":["../../../../src/components/results/SkippedResult.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAI/B,UAAU,KAAK;IACb,MAAM,EAAE,cAAc,CAAA;CACvB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CAQnC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ResultNote } from './ResultNote.js';
|
|
3
|
+
export const SkippedResult = ({ result: { exception, message } }) => {
|
|
4
|
+
if (exception?.message) {
|
|
5
|
+
return _jsx(ResultNote, { children: exception.message });
|
|
6
|
+
}
|
|
7
|
+
if (message) {
|
|
8
|
+
return _jsx(ResultNote, { children: message });
|
|
9
|
+
}
|
|
10
|
+
return null;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=SkippedResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkippedResult.js","sourceRoot":"","sources":["../../../../src/components/results/SkippedResult.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAM5C,MAAM,CAAC,MAAM,aAAa,GAAc,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;IAC7E,IAAI,SAAS,EAAE,OAAO,EAAE,CAAC;QACvB,OAAO,KAAC,UAAU,cAAE,SAAS,CAAC,OAAO,GAAc,CAAA;IACrD,CAAC;IACD,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,KAAC,UAAU,cAAE,OAAO,GAAc,CAAA;IAC3C,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["import type { TestStepResult } from '@cucumber/messages'\nimport type { FC } from 'react'\n\nimport { ResultNote } from './ResultNote.js'\n\ninterface Props {\n result: TestStepResult\n}\n\nexport const SkippedResult: FC<Props> = ({ result: { exception, message } }) => {\n if (exception?.message) {\n return <ResultNote>{exception.message}</ResultNote>\n }\n if (message) {\n return <ResultNote>{message}</ResultNote>\n }\n return null\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SourceReference as SourceReferenceMessage } from '@cucumber/messages';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
interface Props {
|
|
4
|
+
sourceReference: SourceReferenceMessage;
|
|
5
|
+
}
|
|
6
|
+
export declare const SourceReference: FC<Props>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=SourceReference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceReference.d.ts","sourceRoot":"","sources":["../../../../src/components/results/SourceReference.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AACnF,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAI/B,UAAU,KAAK;IACb,eAAe,EAAE,sBAAsB,CAAA;CACxC;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,KAAK,CASrC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styles from './SourceReference.module.scss';
|
|
3
|
+
export const SourceReference = ({ sourceReference }) => {
|
|
4
|
+
if (sourceReference.uri) {
|
|
5
|
+
let stringified = sourceReference.uri;
|
|
6
|
+
if (sourceReference.location) {
|
|
7
|
+
stringified += `:${sourceReference.location.line}`;
|
|
8
|
+
}
|
|
9
|
+
return _jsx("code", { className: styles.sourceReference, children: stringified });
|
|
10
|
+
}
|
|
11
|
+
return null;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=SourceReference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceReference.js","sourceRoot":"","sources":["../../../../src/components/results/SourceReference.tsx"],"names":[],"mappings":";AAGA,OAAO,MAAM,MAAM,+BAA+B,CAAA;AAMlD,MAAM,CAAC,MAAM,eAAe,GAAc,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE;IAChE,IAAI,eAAe,CAAC,GAAG,EAAE,CAAC;QACxB,IAAI,WAAW,GAAG,eAAe,CAAC,GAAG,CAAA;QACrC,IAAI,eAAe,CAAC,QAAQ,EAAE,CAAC;YAC7B,WAAW,IAAI,IAAI,eAAe,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAA;QACpD,CAAC;QACD,OAAO,eAAM,SAAS,EAAE,MAAM,CAAC,eAAe,YAAG,WAAW,GAAQ,CAAA;IACtE,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["import type { SourceReference as SourceReferenceMessage } from '@cucumber/messages'\nimport type { FC } from 'react'\n\nimport styles from './SourceReference.module.scss'\n\ninterface Props {\n sourceReference: SourceReferenceMessage\n}\n\nexport const SourceReference: FC<Props> = ({ sourceReference }) => {\n if (sourceReference.uri) {\n let stringified = sourceReference.uri\n if (sourceReference.location) {\n stringified += `:${sourceReference.location.line}`\n }\n return <code className={styles.sourceReference}>{stringified}</code>\n }\n return null\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestCaseOutcome.d.ts","sourceRoot":"","sources":["../../../../src/components/results/TestCaseOutcome.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,
|
|
1
|
+
{"version":3,"file":"TestCaseOutcome.d.ts","sourceRoot":"","sources":["../../../../src/components/results/TestCaseOutcome.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAIrB,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAA;AAMzC,UAAU,KAAK;IACb,eAAe,EAAE,eAAe,CAAA;CACjC;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,KAAK,CA2BrC,CAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { TestStepResultStatus, } from '@cucumber/messages';
|
|
2
3
|
import { faCirclePlus } from '@fortawesome/free-solid-svg-icons';
|
|
3
4
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
4
|
-
import
|
|
5
|
+
import { useState } from 'react';
|
|
5
6
|
import { useQueries } from '../../hooks/index.js';
|
|
6
7
|
import styles from './TestCaseOutcome.module.scss';
|
|
7
8
|
import { TestStepOutcome } from './TestStepOutcome.js';
|
|
@@ -11,14 +12,9 @@ export const TestCaseOutcome = ({ testCaseStarted }) => {
|
|
|
11
12
|
const allSteps = cucumberQuery.findTestStepFinishedAndTestStepBy(testCaseStarted);
|
|
12
13
|
const filteredSteps = showAllSteps ? allSteps : filterSteps(allSteps);
|
|
13
14
|
const hiddenSteps = allSteps.length - filteredSteps.length;
|
|
14
|
-
return (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})),
|
|
18
|
-
hiddenSteps > 0 && (React.createElement("button", { className: styles.expandButton, onClick: () => setShowAllSteps(true) },
|
|
19
|
-
React.createElement(FontAwesomeIcon, { "aria-hidden": "true", icon: faCirclePlus }),
|
|
20
|
-
hiddenSteps,
|
|
21
|
-
" hooks"))));
|
|
15
|
+
return (_jsxs("article", { className: styles.container, children: [_jsx("ol", { className: styles.steps, children: filteredSteps.map(([testStepFinished, testStep]) => {
|
|
16
|
+
return (_jsx(TestStepOutcome, { testStep: testStep, testStepFinished: testStepFinished }, testStep.id));
|
|
17
|
+
}) }), hiddenSteps > 0 && (_jsxs("button", { type: "button", className: styles.expandButton, onClick: () => setShowAllSteps(true), children: [_jsx(FontAwesomeIcon, { "aria-hidden": "true", icon: faCirclePlus }), hiddenSteps, " hooks"] }))] }));
|
|
22
18
|
};
|
|
23
19
|
function filterSteps(allSteps) {
|
|
24
20
|
const statuses = allSteps.map(([testStepFinished]) => testStepFinished.testStepResult.status);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestCaseOutcome.js","sourceRoot":"","sources":["../../../../src/components/results/TestCaseOutcome.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,oBAAoB,GACrB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,
|
|
1
|
+
{"version":3,"file":"TestCaseOutcome.js","sourceRoot":"","sources":["../../../../src/components/results/TestCaseOutcome.tsx"],"names":[],"mappings":";AAAA,OAAO,EAIL,oBAAoB,GACrB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAW,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,MAAM,MAAM,+BAA+B,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAMtD,MAAM,CAAC,MAAM,eAAe,GAAc,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE;IAChE,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACvD,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAA;IACtC,MAAM,QAAQ,GAAG,aAAa,CAAC,iCAAiC,CAAC,eAAe,CAAC,CAAA;IACjF,MAAM,aAAa,GAAG,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;IACrE,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,GAAG,aAAa,CAAC,MAAM,CAAA;IAC1D,OAAO,CACL,mBAAS,SAAS,EAAE,MAAM,CAAC,SAAS,aAClC,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YACxB,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,gBAAgB,EAAE,QAAQ,CAAC,EAAE,EAAE;oBAClD,OAAO,CACL,KAAC,eAAe,IAEd,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,gBAAgB,IAF7B,QAAQ,CAAC,EAAE,CAGhB,CACH,CAAA;gBACH,CAAC,CAAC,GACC,EACJ,WAAW,GAAG,CAAC,IAAI,CAClB,kBAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,MAAM,CAAC,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,aACxF,KAAC,eAAe,mBAAa,MAAM,EAAC,IAAI,EAAE,YAAY,GAAI,EACzD,WAAW,cACL,CACV,IACO,CACX,CAAA;AACH,CAAC,CAAA;AAED,SAAS,WAAW,CAAC,QAAqD;IACxE,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;IAC7F,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,gBAAgB,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE;QAC7D,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YACrB,OAAO,IAAI,CAAA;QACb,CAAC;QACD,IAAI,gBAAgB,CAAC,cAAc,CAAC,MAAM,KAAK,oBAAoB,CAAC,OAAO,EAAE,CAAC;YAC5E,MAAM,cAAc,GAAG,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,oBAAoB,CAAC,MAAM,CAAA;YACzE,OAAO,cAAc,KAAK,oBAAoB,CAAC,MAAM,CAAA;QACvD,CAAC;QACD,OAAO,gBAAgB,CAAC,cAAc,CAAC,MAAM,KAAK,oBAAoB,CAAC,MAAM,CAAA;IAC/E,CAAC,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import {\n type TestCaseStarted,\n type TestStep,\n type TestStepFinished,\n TestStepResultStatus,\n} from '@cucumber/messages'\nimport { faCirclePlus } from '@fortawesome/free-solid-svg-icons'\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome'\nimport { type FC, useState } from 'react'\n\nimport { useQueries } from '../../hooks/index.js'\nimport styles from './TestCaseOutcome.module.scss'\nimport { TestStepOutcome } from './TestStepOutcome.js'\n\ninterface Props {\n testCaseStarted: TestCaseStarted\n}\n\nexport const TestCaseOutcome: FC<Props> = ({ testCaseStarted }) => {\n const [showAllSteps, setShowAllSteps] = useState(false)\n const { cucumberQuery } = useQueries()\n const allSteps = cucumberQuery.findTestStepFinishedAndTestStepBy(testCaseStarted)\n const filteredSteps = showAllSteps ? allSteps : filterSteps(allSteps)\n const hiddenSteps = allSteps.length - filteredSteps.length\n return (\n <article className={styles.container}>\n <ol className={styles.steps}>\n {filteredSteps.map(([testStepFinished, testStep]) => {\n return (\n <TestStepOutcome\n key={testStep.id}\n testStep={testStep}\n testStepFinished={testStepFinished}\n />\n )\n })}\n </ol>\n {hiddenSteps > 0 && (\n <button type=\"button\" className={styles.expandButton} onClick={() => setShowAllSteps(true)}>\n <FontAwesomeIcon aria-hidden=\"true\" icon={faCirclePlus} />\n {hiddenSteps} hooks\n </button>\n )}\n </article>\n )\n}\n\nfunction filterSteps(allSteps: ReadonlyArray<[TestStepFinished, TestStep]>) {\n const statuses = allSteps.map(([testStepFinished]) => testStepFinished.testStepResult.status)\n return allSteps.filter(([testStepFinished, testStep], index) => {\n if (!testStep.hookId) {\n return true\n }\n if (testStepFinished.testStepResult.status === TestStepResultStatus.SKIPPED) {\n const previousStatus = statuses[index - 1] ?? TestStepResultStatus.PASSED\n return previousStatus === TestStepResultStatus.PASSED\n }\n return testStepFinished.testStepResult.status !== TestStepResultStatus.PASSED\n })\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Hook, TestRunHookFinished } from '@cucumber/messages';
|
|
2
|
-
import { FC } from 'react';
|
|
1
|
+
import { type Hook, type TestRunHookFinished } from '@cucumber/messages';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
3
|
interface Props {
|
|
4
4
|
hook: Hook;
|
|
5
5
|
testRunHookFinished: TestRunHookFinished;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestRunHookOutcome.d.ts","sourceRoot":"","sources":["../../../../src/components/results/TestRunHookOutcome.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"TestRunHookOutcome.d.ts","sourceRoot":"","sources":["../../../../src/components/results/TestRunHookOutcome.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAET,KAAK,mBAAmB,EAEzB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAQ/B,UAAU,KAAK;IACb,IAAI,EAAE,IAAI,CAAA;IACV,mBAAmB,EAAE,mBAAmB,CAAA;CACzC;AAED,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,KAAK,CAsBxC,CAAA"}
|
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { HookType, TestStepResultStatus, } from '@cucumber/messages';
|
|
3
3
|
import { StatusIcon } from '../gherkin/index.js';
|
|
4
|
+
import { FailedResult } from './FailedResult.js';
|
|
4
5
|
import styles from './TestRunHookOutcome.module.scss';
|
|
5
6
|
import { TestStepAttachments } from './TestStepAttachments.js';
|
|
6
7
|
import { TestStepDuration } from './TestStepDuration.js';
|
|
7
|
-
import { TestStepResultDetails } from './TestStepResultDetails.js';
|
|
8
8
|
export const TestRunHookOutcome = ({ hook, testRunHookFinished }) => {
|
|
9
|
-
return (
|
|
10
|
-
React.createElement("div", { className: styles.header },
|
|
11
|
-
React.createElement("div", { className: styles.status },
|
|
12
|
-
React.createElement(StatusIcon, { status: testRunHookFinished.result.status })),
|
|
13
|
-
React.createElement("div", { className: styles.title },
|
|
14
|
-
React.createElement("h3", { className: styles.name }, hook.name ?? (hook.type === HookType.BEFORE_TEST_RUN ? 'BeforeAll' : 'AfterAll')),
|
|
15
|
-
React.createElement(TestStepDuration, { duration: testRunHookFinished.result.duration }))),
|
|
16
|
-
React.createElement("div", { className: styles.content },
|
|
17
|
-
React.createElement(TestStepResultDetails, { ...testRunHookFinished.result }),
|
|
18
|
-
React.createElement(TestStepAttachments, { testStepOrHookFinished: testRunHookFinished }))));
|
|
9
|
+
return (_jsxs("li", { "data-status": testRunHookFinished.result.status, children: [_jsxs("div", { className: styles.header, children: [_jsx("div", { className: styles.status, children: _jsx(StatusIcon, { status: testRunHookFinished.result.status }) }), _jsxs("div", { className: styles.title, children: [_jsx("h3", { className: styles.name, children: hook.name ?? (hook.type === HookType.BEFORE_TEST_RUN ? 'BeforeAll' : 'AfterAll') }), _jsx(TestStepDuration, { duration: testRunHookFinished.result.duration })] })] }), _jsxs("div", { className: styles.content, children: [testRunHookFinished.result.status === TestStepResultStatus.FAILED && (_jsx(FailedResult, { result: testRunHookFinished.result })), _jsx(TestStepAttachments, { testStepOrHookFinished: testRunHookFinished })] })] }));
|
|
19
10
|
};
|
|
20
11
|
//# sourceMappingURL=TestRunHookOutcome.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestRunHookOutcome.js","sourceRoot":"","sources":["../../../../src/components/results/TestRunHookOutcome.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"TestRunHookOutcome.js","sourceRoot":"","sources":["../../../../src/components/results/TestRunHookOutcome.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,QAAQ,EAER,oBAAoB,GACrB,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,MAAM,MAAM,kCAAkC,CAAA;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAOxD,MAAM,CAAC,MAAM,kBAAkB,GAAc,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,EAAE,EAAE;IAC7E,OAAO,CACL,6BAAiB,mBAAmB,CAAC,MAAM,CAAC,MAAM,aAChD,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC3B,KAAC,UAAU,IAAC,MAAM,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,GAAI,GACrD,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,aAAI,SAAS,EAAE,MAAM,CAAC,IAAI,YACvB,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,GAC9E,EACL,KAAC,gBAAgB,IAAC,QAAQ,EAAE,mBAAmB,CAAC,MAAM,CAAC,QAAQ,GAAI,IAC/D,IACF,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,aAC3B,mBAAmB,CAAC,MAAM,CAAC,MAAM,KAAK,oBAAoB,CAAC,MAAM,IAAI,CACpE,KAAC,YAAY,IAAC,MAAM,EAAE,mBAAmB,CAAC,MAAM,GAAI,CACrD,EACD,KAAC,mBAAmB,IAAC,sBAAsB,EAAE,mBAAmB,GAAI,IAChE,IACH,CACN,CAAA;AACH,CAAC,CAAA","sourcesContent":["import {\n type Hook,\n HookType,\n type TestRunHookFinished,\n TestStepResultStatus,\n} from '@cucumber/messages'\nimport type { FC } from 'react'\n\nimport { StatusIcon } from '../gherkin/index.js'\nimport { FailedResult } from './FailedResult.js'\nimport styles from './TestRunHookOutcome.module.scss'\nimport { TestStepAttachments } from './TestStepAttachments.js'\nimport { TestStepDuration } from './TestStepDuration.js'\n\ninterface Props {\n hook: Hook\n testRunHookFinished: TestRunHookFinished\n}\n\nexport const TestRunHookOutcome: FC<Props> = ({ hook, testRunHookFinished }) => {\n return (\n <li data-status={testRunHookFinished.result.status}>\n <div className={styles.header}>\n <div className={styles.status}>\n <StatusIcon status={testRunHookFinished.result.status} />\n </div>\n <div className={styles.title}>\n <h3 className={styles.name}>\n {hook.name ?? (hook.type === HookType.BEFORE_TEST_RUN ? 'BeforeAll' : 'AfterAll')}\n </h3>\n <TestStepDuration duration={testRunHookFinished.result.duration} />\n </div>\n </div>\n <div className={styles.content}>\n {testRunHookFinished.result.status === TestStepResultStatus.FAILED && (\n <FailedResult result={testRunHookFinished.result} />\n )}\n <TestStepAttachments testStepOrHookFinished={testRunHookFinished} />\n </div>\n </li>\n )\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TestRunHookFinished, TestStepFinished } from '@cucumber/messages';
|
|
2
|
-
import { FC } from 'react';
|
|
1
|
+
import type { TestRunHookFinished, TestStepFinished } from '@cucumber/messages';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
3
|
interface Props {
|
|
4
4
|
testStepOrHookFinished: TestStepFinished | TestRunHookFinished;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestStepAttachments.d.ts","sourceRoot":"","sources":["../../../../src/components/results/TestStepAttachments.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"TestStepAttachments.d.ts","sourceRoot":"","sources":["../../../../src/components/results/TestStepAttachments.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC/E,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAM/B,UAAU,KAAK;IACb,sBAAsB,EAAE,gBAAgB,GAAG,mBAAmB,CAAA;CAC/D;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,KAAK,CAczC,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useQueries } from '../../hooks/index.js';
|
|
3
3
|
import { Attachment } from '../gherkin/index.js';
|
|
4
4
|
import styles from './TestStepAttachments.module.scss';
|
|
5
5
|
export const TestStepAttachments = ({ testStepOrHookFinished }) => {
|
|
6
6
|
const { cucumberQuery } = useQueries();
|
|
7
7
|
const attachments = cucumberQuery.findAttachmentsBy(testStepOrHookFinished);
|
|
8
|
-
return (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})));
|
|
8
|
+
return (_jsx("ol", { className: styles.attachments, children: attachments.map((attachment, index) => {
|
|
9
|
+
return (_jsx("li", { children: _jsx(Attachment, { attachment: attachment }) }, index));
|
|
10
|
+
}) }));
|
|
12
11
|
};
|
|
13
12
|
//# sourceMappingURL=TestStepAttachments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestStepAttachments.js","sourceRoot":"","sources":["../../../../src/components/results/TestStepAttachments.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TestStepAttachments.js","sourceRoot":"","sources":["../../../../src/components/results/TestStepAttachments.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,MAAM,MAAM,mCAAmC,CAAA;AAMtD,MAAM,CAAC,MAAM,mBAAmB,GAAc,CAAC,EAAE,sBAAsB,EAAE,EAAE,EAAE;IAC3E,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,EAAE,CAAA;IACtC,MAAM,WAAW,GAAG,aAAa,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAA;IAC3E,OAAO,CACL,aAAI,SAAS,EAAE,MAAM,CAAC,WAAW,YAC9B,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE;YACrC,OAAO,CACL,uBACE,KAAC,UAAU,IAAC,UAAU,EAAE,UAAU,GAAI,IAD/B,KAAK,CAET,CACN,CAAA;QACH,CAAC,CAAC,GACC,CACN,CAAA;AACH,CAAC,CAAA","sourcesContent":["import type { TestRunHookFinished, TestStepFinished } from '@cucumber/messages'\nimport type { FC } from 'react'\n\nimport { useQueries } from '../../hooks/index.js'\nimport { Attachment } from '../gherkin/index.js'\nimport styles from './TestStepAttachments.module.scss'\n\ninterface Props {\n testStepOrHookFinished: TestStepFinished | TestRunHookFinished\n}\n\nexport const TestStepAttachments: FC<Props> = ({ testStepOrHookFinished }) => {\n const { cucumberQuery } = useQueries()\n const attachments = cucumberQuery.findAttachmentsBy(testStepOrHookFinished)\n return (\n <ol className={styles.attachments}>\n {attachments.map((attachment, index) => {\n return (\n <li key={index}>\n <Attachment attachment={attachment} />\n </li>\n )\n })}\n </ol>\n )\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestStepDuration.d.ts","sourceRoot":"","sources":["../../../../src/components/results/TestStepDuration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAkB,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"TestStepDuration.d.ts","sourceRoot":"","sources":["../../../../src/components/results/TestStepDuration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,oBAAoB,CAAA;AAClE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAY/B,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAYvD,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { TimeConversion } from '@cucumber/messages';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
import styles from './TestStepDuration.module.scss';
|
|
4
4
|
const subSecondFormat = new Intl.NumberFormat(undefined, {
|
|
5
5
|
maximumFractionDigits: 0,
|
|
@@ -12,6 +12,8 @@ export const TestStepDuration = ({ duration }) => {
|
|
|
12
12
|
if (millis < 1) {
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
|
-
return (
|
|
15
|
+
return (_jsx("span", { className: styles.duration, children: millis < 1000
|
|
16
|
+
? `${subSecondFormat.format(millis)}ms`
|
|
17
|
+
: `${secondPlusFormat.format(millis / 1000)}s` }));
|
|
16
18
|
};
|
|
17
19
|
//# sourceMappingURL=TestStepDuration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestStepDuration.js","sourceRoot":"","sources":["../../../../src/components/results/TestStepDuration.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"TestStepDuration.js","sourceRoot":"","sources":["../../../../src/components/results/TestStepDuration.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAGlE,OAAO,MAAM,MAAM,gCAAgC,CAAA;AAEnD,MAAM,eAAe,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE;IACvD,qBAAqB,EAAE,CAAC;CACzB,CAAC,CAAA;AAEF,MAAM,gBAAgB,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE;IACxD,qBAAqB,EAAE,CAAC;CACzB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAA+B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3E,MAAM,MAAM,GAAG,cAAc,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAA;IAC9D,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;QACf,OAAO,IAAI,CAAA;IACb,CAAC;IACD,OAAO,CACL,eAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,YAC7B,MAAM,GAAG,IAAI;YACZ,CAAC,CAAC,GAAG,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI;YACvC,CAAC,CAAC,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,GAC3C,CACR,CAAA;AACH,CAAC,CAAA","sourcesContent":["import { type Duration, TimeConversion } from '@cucumber/messages'\nimport type { FC } from 'react'\n\nimport styles from './TestStepDuration.module.scss'\n\nconst subSecondFormat = new Intl.NumberFormat(undefined, {\n maximumFractionDigits: 0,\n})\n\nconst secondPlusFormat = new Intl.NumberFormat(undefined, {\n maximumFractionDigits: 3,\n})\n\nexport const TestStepDuration: FC<{ duration: Duration }> = ({ duration }) => {\n const millis = TimeConversion.durationToMilliseconds(duration)\n if (millis < 1) {\n return null\n }\n return (\n <span className={styles.duration}>\n {millis < 1000\n ? `${subSecondFormat.format(millis)}ms`\n : `${secondPlusFormat.format(millis / 1000)}s`}\n </span>\n )\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TestStep, TestStepFinished } from '@cucumber/messages';
|
|
2
|
-
import { FC } from 'react';
|
|
1
|
+
import { type TestStep, type TestStepFinished } from '@cucumber/messages';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
3
|
interface Props {
|
|
4
4
|
testStep: TestStep;
|
|
5
5
|
testStepFinished: TestStepFinished;
|