UNPKG

@atlassian/johnson

Version:

A frontend module for Johnson framework

205 lines 22.3 kB
<?xml version="1.0" encoding="UTF-8"?> <testsuites name="jest tests" tests="77" failures="0" errors="0" time="2.994"> <testsuite name="Module: johnson-events" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:20" time="0.478" tests="16"> <testcase classname="Module: johnson-events Function: sortByEvent no input returns an object containing the keys &quot;events&quot; and &quot;oldEvents&quot; with empty arrays as values" name="Module: johnson-events Function: sortByEvent no input returns an object containing the keys &quot;events&quot; and &quot;oldEvents&quot; with empty arrays as values" time="0.002"> </testcase> <testcase classname="Module: johnson-events Function: sortByEvent given an empty array returns an object containing the keys &quot;events&quot; and &quot;oldEvents&quot; with empty arrays as values" name="Module: johnson-events Function: sortByEvent given an empty array returns an object containing the keys &quot;events&quot; and &quot;oldEvents&quot; with empty arrays as values" time="0.001"> </testcase> <testcase classname="Module: johnson-events Function: sortByEvent given an array with events returns an object sorting old events into the oldEvents array" name="Module: johnson-events Function: sortByEvent given an array with events returns an object sorting old events into the oldEvents array" time="0"> </testcase> <testcase classname="Module: johnson-events Function: sortByEvent given an array with events other events should end up in the event bucket" name="Module: johnson-events Function: sortByEvent given an array with events other events should end up in the event bucket" time="0"> </testcase> <testcase classname="Module: johnson-events Function: sortByEvent given unexpected input explodes" name="Module: johnson-events Function: sortByEvent given unexpected input explodes" time="0.006"> </testcase> <testcase classname="Module: johnson-events Function: sortByLevel returns an object containing the keys &quot;error&quot; and &quot;warning&quot; with empty arrays as values" name="Module: johnson-events Function: sortByLevel returns an object containing the keys &quot;error&quot; and &quot;warning&quot; with empty arrays as values" time="0"> </testcase> <testcase classname="Module: johnson-events Function: sortByLevel sorts events based on event level" name="Module: johnson-events Function: sortByLevel sorts events based on event level" time="0"> </testcase> <testcase classname="Module: johnson-events Function: sortByLevel explodes, given unexpected input" name="Module: johnson-events Function: sortByLevel explodes, given unexpected input" time="0.001"> </testcase> <testcase classname="Module: johnson-events Function: sort no input returns null" name="Module: johnson-events Function: sort no input returns null" time="0"> </testcase> <testcase classname="Module: johnson-events Function: sort given input and all event containers are empty return the amount of error events" name="Module: johnson-events Function: sort given input and all event containers are empty return the amount of error events" time="0"> </testcase> <testcase classname="Module: johnson-events Function: sort given input and all event containers are empty return the amount of warnings" name="Module: johnson-events Function: sort given input and all event containers are empty return the amount of warnings" time="0"> </testcase> <testcase classname="Module: johnson-events Function: sort given input and the input contains errors return the amount of error events" name="Module: johnson-events Function: sort given input and the input contains errors return the amount of error events" time="0"> </testcase> <testcase classname="Module: johnson-events Function: sort given input and the input contains warning events return the amount of warnings" name="Module: johnson-events Function: sort given input and the input contains warning events return the amount of warnings" time="0.001"> </testcase> <testcase classname="Module: johnson-events Function: sort given input and the input contains a bit of all return the amount of warnings" name="Module: johnson-events Function: sort given input and the input contains a bit of all return the amount of warnings" time="0"> </testcase> <testcase classname="Module: johnson-events Function: sort given input and the input contains a bit of all return the amount of error events" name="Module: johnson-events Function: sort given input and the input contains a bit of all return the amount of error events" time="0"> </testcase> <testcase classname="Module: johnson-events Function: sort given input and the input contains a bit of all return the number of total events" name="Module: johnson-events Function: sort given input and the input contains a bit of all return the number of total events" time="0"> </testcase> </testsuite> <testsuite name="Module: translate" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:21" time="0.047" tests="9"> <testcase classname="Module: translate Function: translate with no translation map available returns the given key without any alteration" name="Module: translate Function: translate with no translation map available returns the given key without any alteration" time="0"> </testcase> <testcase classname="Module: translate Function: translate with no translation for the required key returns the given key without any alteration" name="Module: translate Function: translate with no translation for the required key returns the given key without any alteration" time="0"> </testcase> <testcase classname="Module: translate Function: translate with a translation available and no further arguments success returns the translated value for the given key" name="Module: translate Function: translate with a translation available and no further arguments success returns the translated value for the given key" time="0"> </testcase> <testcase classname="Module: translate Function: translate with a translation available and further arguments success but the translation value not expecting any further arguments returns the translated value for the given key" name="Module: translate Function: translate with a translation available and further arguments success but the translation value not expecting any further arguments returns the translated value for the given key" time="0"> </testcase> <testcase classname="Module: translate Function: translate with a translation available and further arguments success and the translation value expecting further arguments given one extra argument render the given argument into the translation value" name="Module: translate Function: translate with a translation available and further arguments success and the translation value expecting further arguments given one extra argument render the given argument into the translation value" time="0.001"> </testcase> <testcase classname="Module: translate Function: translate with a translation available and further arguments success and the translation value expecting further arguments given &quot;n&quot; extra arguments render the given argument into the translation value" name="Module: translate Function: translate with a translation available and further arguments success and the translation value expecting further arguments given &quot;n&quot; extra arguments render the given argument into the translation value" time="0"> </testcase> <testcase classname="Module: translate Function: translate with a translation available and further arguments success and the translation value expecting further arguments given &quot;n&quot; extra arguments with mixed up order in the value string render the given argument in whatever order given" name="Module: translate Function: translate with a translation available and further arguments success and the translation value expecting further arguments given &quot;n&quot; extra arguments with mixed up order in the value string render the given argument in whatever order given" time="0"> </testcase> <testcase classname="Module: translate Function: translate with a translation available and further arguments success and the translation value expecting further arguments given &quot;n&quot; extra arguments with arguments missing render and empty string as a fallback" name="Module: translate Function: translate with a translation available and further arguments success and the translation value expecting further arguments given &quot;n&quot; extra arguments with arguments missing render and empty string as a fallback" time="0"> </testcase> <testcase classname="Module: translate Function: translate with a translation available and further arguments success and the translation value expecting further arguments given &quot;n&quot; extra arguments with &quot;falsy&quot; arguments renders the argument &quot;correctly&quot; as strings" name="Module: translate Function: translate with a translation available and further arguments success and the translation value expecting further arguments given &quot;n&quot; extra arguments with &quot;falsy&quot; arguments renders the argument &quot;correctly&quot; as strings" time="0"> </testcase> </testsuite> <testsuite name="AcknowledgeButton" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:21" time="0.305" tests="7"> <testcase classname="AcknowledgeButton should render nothing when canAuthoriseUsers is not provided" name="AcknowledgeButton should render nothing when canAuthoriseUsers is not provided" time="0.012"> </testcase> <testcase classname="AcknowledgeButton should render nothing when canAuthoriseUsers is false" name="AcknowledgeButton should render nothing when canAuthoriseUsers is false" time="0.001"> </testcase> <testcase classname="AcknowledgeButton should render nothing when canAuthoriseUsers is true, but dismissiblesOnly is false" name="AcknowledgeButton should render nothing when canAuthoriseUsers is true, but dismissiblesOnly is false" time="0.002"> </testcase> <testcase classname="AcknowledgeButton should render nothing when dismissiblesOnly is true, but canAuthoriseUsers is false" name="AcknowledgeButton should render nothing when dismissiblesOnly is true, but canAuthoriseUsers is false" time="0.002"> </testcase> <testcase classname="AcknowledgeButton should render component when canAuthoriseUsers and dismissiblesOnly are true" name="AcknowledgeButton should render component when canAuthoriseUsers and dismissiblesOnly are true" time="0.021"> </testcase> <testcase classname="AcknowledgeButton should redirect to dismissEvents page on button click" name="AcknowledgeButton should redirect to dismissEvents page on button click" time="0.008"> </testcase> <testcase classname="AcknowledgeButton should render nothing when window.location.hash is #no-admin" name="AcknowledgeButton should render nothing when window.location.hash is #no-admin" time="0.001"> </testcase> </testsuite> <testsuite name="App" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:21" time="0.418" tests="4"> <testcase classname="App should render app" name="App should render app" time="0.012"> </testcase> <testcase classname="App should pass translate func to context" name="App should pass translate func to context" time="0.001"> </testcase> <testcase classname="App should define initial data" name="App should define initial data" time="0.004"> </testcase> <testcase classname="App should execute getData after timeout" name="App should execute getData after timeout" time="0.004"> </testcase> </testsuite> <testsuite name="Footer" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:22" time="0.082" tests="5"> <testcase classname="Footer should render KB link when errorsPresentButHidden is true" name="Footer should render KB link when errorsPresentButHidden is true" time="0.005"> </testcase> <testcase classname="Footer should send analytics on link click" name="Footer should send analytics on link click" time="0.004"> </testcase> <testcase classname="Footer should render nothing if errorsPresentButHidden is false and stats.total === 0 and oldEvents.length === 0" name="Footer should render nothing if errorsPresentButHidden is false and stats.total === 0 and oldEvents.length === 0" time="0.001"> </testcase> <testcase classname="Footer should render nothing if props are not provided" name="Footer should render nothing if props are not provided" time="0"> </testcase> <testcase classname="Footer should render footer if errorsPresentButHidden is false and stats.total or oldEvents.length is not zero" name="Footer should render footer if errorsPresentButHidden is false and stats.total or oldEvents.length is not zero" time="0.002"> </testcase> </testsuite> <testsuite name="SubHeader" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:22" time="0.059" tests="6"> <testcase classname="SubHeader should render neutral message when no props provided" name="SubHeader should render neutral message when no props provided" time="0.006"> </testcase> <testcase classname="SubHeader should render error message when errorsPresentButHidden is true" name="SubHeader should render error message when errorsPresentButHidden is true" time="0.003"> </testcase> <testcase classname="SubHeader should render error message when stats.total is greater than 0" name="SubHeader should render error message when stats.total is greater than 0" time="0.002"> </testcase> <testcase classname="SubHeader should render error message when oldEvents.length is greater than 0" name="SubHeader should render error message when oldEvents.length is greater than 0" time="0.002"> </testcase> <testcase classname="SubHeader should render warning message when dismissibles only" name="SubHeader should render warning message when dismissibles only" time="0.002"> </testcase> <testcase classname="SubHeader should render warning message when warnings only" name="SubHeader should render warning message when warnings only" time="0.002"> </testcase> </testsuite> <testsuite name="ConfigCustomisation template" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:22" time="0.12" tests="2"> <testcase classname="ConfigCustomisation template should render event" name="ConfigCustomisation template should render event" time="0.018"> </testcase> <testcase classname="ConfigCustomisation template should render ConfigCustomisationReadOnly event when canAuthoriseUsers is false" name="ConfigCustomisation template should render ConfigCustomisationReadOnly event when canAuthoriseUsers is false" time="0.004"> </testcase> </testsuite> <testsuite name="ConfigCustomisationReadOnly template" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:22" time="0.055" tests="2"> <testcase classname="ConfigCustomisationReadOnly template should render event" name="ConfigCustomisationReadOnly template should render event" time="0.007"> </testcase> <testcase classname="ConfigCustomisationReadOnly template should also render restart notice when the event is non-dismissible" name="ConfigCustomisationReadOnly template should also render restart notice when the event is non-dismissible" time="0.004"> </testcase> </testsuite> <testsuite name="Module: api" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:22" time="0.047" tests="2"> <testcase classname="Module: api Method: getData should call a transporter function with the passed route" name="Module: api Method: getData should call a transporter function with the passed route" time="0.001"> </testcase> <testcase classname="Module: api Method: getData should respond with the json result of the response" name="Module: api Method: getData should respond with the json result of the response" time="0"> </testcase> </testsuite> <testsuite name="Index" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:22" time="0.134" tests="1"> <testcase classname="Index should render app" name="Index should render app" time="0.01"> </testcase> </testsuite> <testsuite name="analytics actions" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:22" time="0.022" tests="2"> <testcase classname="analytics actions sendEventKbArticleClick should send fetch request" name="analytics actions sendEventKbArticleClick should send fetch request" time="0.001"> </testcase> <testcase classname="analytics actions sendGeneralKbArticleClick should send fetch request" name="analytics actions sendGeneralKbArticleClick should send fetch request" time="0"> </testcase> </testsuite> <testsuite name="events reducer" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:22" time="0.028" tests="2"> <testcase classname="events reducer should return the initial state" name="events reducer should return the initial state" time="0"> </testcase> <testcase classname="events reducer should handle setData" name="events reducer should handle setData" time="0.001"> </testcase> </testsuite> <testsuite name="IgnoreWarningsHint" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:22" time="0.049" tests="3"> <testcase classname="IgnoreWarningsHint should render nothing when canAuthoriseUsers is not provided" name="IgnoreWarningsHint should render nothing when canAuthoriseUsers is not provided" time="0.003"> </testcase> <testcase classname="IgnoreWarningsHint should render nothing when canAuthoriseUsers is false" name="IgnoreWarningsHint should render nothing when canAuthoriseUsers is false" time="0.001"> </testcase> <testcase classname="IgnoreWarningsHint should render component when canAuthoriseUsers is true" name="IgnoreWarningsHint should render component when canAuthoriseUsers is true" time="0.001"> </testcase> </testsuite> <testsuite name="NewEventsTable" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:22" time="0.137" tests="2"> <testcase classname="NewEventsTable should render nothing when totalStats is not defined" name="NewEventsTable should render nothing when totalStats is not defined" time="0.003"> </testcase> <testcase classname="NewEventsTable should render errors and warnings when provided" name="NewEventsTable should render errors and warnings when provided" time="0.022"> </testcase> </testsuite> <testsuite name="Header" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:22" time="0.039" tests="2"> <testcase classname="Header should render header for Confluence" name="Header should render header for Confluence" time="0.003"> </testcase> <testcase classname="Header should render header for Jira" name="Header should render header for Jira" time="0.001"> </testcase> </testsuite> <testsuite name="ConfigCustomisationSuccess template" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:22" time="0.05" tests="1"> <testcase classname="ConfigCustomisationSuccess template should render event" name="ConfigCustomisationSuccess template should render event" time="0.006"> </testcase> </testsuite> <testsuite name="KbLink component" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:23" time="0.045" tests="2"> <testcase classname="KbLink component should render nothing when kbLink is empty" name="KbLink component should render nothing when kbLink is empty" time="0.003"> </testcase> <testcase classname="KbLink component should render kb link" name="KbLink component should render kb link" time="0.003"> </testcase> </testsuite> <testsuite name="Spinner" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:23" time="0.049" tests="2"> <testcase classname="Spinner should render nothing if checksComplete is true" name="Spinner should render nothing if checksComplete is true" time="0.002"> </testcase> <testcase classname="Spinner should render spinner if checksComplete is false" name="Spinner should render spinner if checksComplete is false" time="0.003"> </testcase> </testsuite> <testsuite name="Old Event Table" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:23" time="0.045" tests="2"> <testcase classname="Old Event Table should render nothing when no events provided" name="Old Event Table should render nothing when no events provided" time="0.002"> </testcase> <testcase classname="Old Event Table should render component" name="Old Event Table should render component" time="0.003"> </testcase> </testsuite> <testsuite name="WarningDefault template" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:23" time="0.046" tests="1"> <testcase classname="WarningDefault template should render event" name="WarningDefault template should render event" time="0.005"> </testcase> </testsuite> <testsuite name="ErrorDefault template" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:23" time="0.106" tests="1"> <testcase classname="ErrorDefault template should render event" name="ErrorDefault template should render event" time="0.012"> </testcase> </testsuite> <testsuite name="events actions" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:23" time="0.021" tests="1"> <testcase classname="events actions should create an action to set events" name="events actions should create an action to set events" time="0.001"> </testcase> </testsuite> <testsuite name="Body" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:23" time="0.114" tests="1"> <testcase classname="Body should render component" name="Body should render component" time="0.007"> </testcase> </testsuite> <testsuite name="Loader" errors="0" failures="0" skipped="0" timestamp="2026-05-20T20:31:23" time="0.037" tests="1"> <testcase classname="Loader should render component" name="Loader should render component" time="0.004"> </testcase> </testsuite> </testsuites>