Skip to content

Merge pull request #187 from mdenet/fix/unitests-activitymanager #206

Merge pull request #187 from mdenet/fix/unitests-activitymanager

Merge pull request #187 from mdenet/fix/unitests-activitymanager #206

GitHub Actions / Unit Test Results succeeded Mar 5, 2024 in 1s

49 passed, 0 failed and 1 skipped

Tests passed successfully

✅ platform/reports/TESTS-Chrome_Headless_122.0.6261.94_(Linux_x86_64).xml

50 tests were completed in 260ms with 49 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
Chrome Headless 122.0.6261.94 (Linux x86_64) 49✅ 1⚪ 260ms

✅ Chrome Headless 122.0.6261.94 (Linux x86_64)

Chrome_Headless_122_0_6261_94_(Linux_x86_64).Utility
  ✅ Utility arrayEquals - arrays with the same values in differing order are not the same
  ✅ Utility arrayEquals - arrays with an any wildcard always match the corresponding element
  ✅ Utility parseConfigFile - a json file parsed as yaml to an object
  ✅ Utility arrayEquals - when allow any is not enabled, arrays with any wildcard do not match the corresponding element
  ✅ Utility parseConfigFile - an invald yaml file returns an error
  ✅ Utility arrayEquals - arrays with a wildcard and non matchng other element are not the same
  ✅ Utility parseConfigFile - a json file is parsed to an object
  ✅ Utility arrayEquals - arrays with matching values are the same
  ✅ Utility parseConfigFile - a yaml file is parsed to an object
  ✅ Utility parseConfigFile - an unknown file type returns null
  ✅ Utility parseConfigFile - an invald json file returns an error
Chrome_Headless_122_0_6261_94_(Linux_x86_64).ActivityManager getting current activity
  ✅ ActivityManager getting current activity the panel definitions for the current activity references are resolved
  ✅ ActivityManager getting current activity the activity files are fetched using FileHandler
Chrome_Headless_122_0_6261_94_(Linux_x86_64).ActivityManager activity initialisation
  ✅ ActivityManager activity initialisation causes the activity file to be fetched from its URL using the fileHandler
  ✅ ActivityManager activity initialisation the activities actions property panel references have been resolved
  ✅ ActivityManager activity initialisation the panel definitions the current activity references are unresolved
  ✅ ActivityManager activity initialisation the activities property is an object that has required keys
  ✅ ActivityManager activity initialisation the activities property has a key matching the activity id
  ✅ ActivityManager activity initialisation current activity activityId property is set to the activity id
  ✅ ActivityManager activity initialisation an activities property's value is an object
  ✅ ActivityManager activity initialisation no config errors empty configErrors propererty
  ✅ ActivityManager activity initialisation resolves references for a valid activity by  calling resolveActionReferences with activity id
Chrome_Headless_122_0_6261_94_(Linux_x86_64).ActivityManager constructor
  ✅ ActivityManager constructor initialises the configValidator property
  ✅ ActivityManager constructor can be created
  ✅ ActivityManager constructor initialises the fileHandler property  using param fileHandler
  ✅ ActivityManager constructor initialises the accessPanelDef property using param panelDefAccessor
  ✅ ActivityManager constructor sets the activityId property if the current activity is provided in the url query string
  ✅ ActivityManager constructor uses the query string to set the activitiesUrl property
Chrome_Headless_122_0_6261_94_(Linux_x86_64).ToolManager
  ✅ ToolManager can be created
Chrome_Headless_122_0_6261_94_(Linux_x86_64).ActionFunction
  ✅ ActionFunction object creation - id
  ⚪ ActionFunction instance of a the return type returns the the corresponding id
  ✅ ActionFunction instance of a parameter name returns the the corresponding id
Chrome_Headless_122_0_6261_94_(Linux_x86_64).ActivityValidator
  ✅ ActivityValidator checkLayoutPanelIdsExist - layout panel ids no error
  ✅ ActivityValidator checkLayoutPanelIdsExist - layout panel ids missing panel
Chrome_Headless_122_0_6261_94_(Linux_x86_64).FunctionRegistry
  ✅ FunctionRegistry a single registered function using wildcards can be found
  ✅ FunctionRegistry a registered function using wildcards can be found
  ✅ FunctionRegistry a registered function can be looked up
Chrome_Headless_122_0_6261_94_(Linux_x86_64).Button
  ✅ Button has an id set by a config object
  ✅ Button has an icon set by a config object
  ✅ Button createButtons - creates multiple buttons from  an array of button objects
  ✅ Button can be created
  ✅ Button has an hint set by a config object
  ✅ Button getView - outputs a DOM representation for customButtons properties
Chrome_Headless_122_0_6261_94_(Linux_x86_64).FileHandler
  ✅ FileHandler githubRawUrlToStoreRequest - returns an object with a token server request url member from a raw github file url
  ✅ FileHandler githubRawUrlTorequestUrl - returns a token server request url from a raw github file url
  ✅ FileHandler getPrivateFileUpdateParams - returns null for an unknown file url
  ✅ FileHandler getPrivateFileUpdateParams - returns
  ✅ FileHandler getPrivateFileRequestUrl - returns null for an unknown file url
  ✅ FileHandler getPrivateFileRequestUrl - returns a token server request url from a raw github file url
  ✅ FileHandler githubRawUrlToStoreRequest - returns an object with a token server requestParams member from a raw github file url