EducationPlatform testing, invokeActionFunction added test to a promi… #248
GitHub Actions / Unit Test Results
succeeded
Mar 16, 2024 in 1s
212 passed, 0 failed and 2 skipped
Report | Passed | Failed | Skipped | Time |
---|---|---|---|---|
platform/reports/TESTS-Chrome_Headless_122.0.6261.128_(Linux_x86_64).xml | 106✅ | 1⚪ | 525ms | |
platform/reports/TESTS-Firefox_123.0_(Ubuntu_0.0.0).xml | 106✅ | 1⚪ | 1s |
✅ platform/reports/TESTS-Chrome_Headless_122.0.6261.128_(Linux_x86_64).xml
107 tests were completed in 525ms with 106 passed, 0 failed and 1 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Chrome Headless 122.0.6261.128 (Linux x86_64) | 106✅ | 1⚪ | 525ms |
✅ Chrome Headless 122.0.6261.128 (Linux x86_64)
Chrome_Headless_122_0_6261_128_(Linux_x86_64).EducationPlatform notification
✅ EducationPlatform notification displays a message with given title and text
Chrome_Headless_122_0_6261_128_(Linux_x86_64).EducationPlatform invokeActionFunction
✅ EducationPlatform invokeActionFunction returns a promise immediately after being called
✅ EducationPlatform invokeActionFunction calls functionRegistry_call with the given parameter values for matching types and returns a promise
✅ EducationPlatform invokeActionFunction calls functionRegistry_call with the converted parameter values for non-matching types including a metamodel
✅ EducationPlatform invokeActionFunction sends request to a conversion function's url with unused parameters set to undefined
✅ EducationPlatform invokeActionFunction calls functionRegistry_call with the converted parameter values for non-matching types
Chrome_Headless_122_0_6261_128_(Linux_x86_64).EducationPlatform runAction
✅ EducationPlatform runAction provides an error notification on unsuccessful function invocation result
✅ EducationPlatform runAction call handleResponseActionFunction with the current action and the invoked function's result promise
✅ EducationPlatform runAction calls invokeActionFunction with the action functions parameters and their values
✅ EducationPlatform runAction provides a notification indicating functions are executing
Chrome_Headless_122_0_6261_128_(Linux_x86_64).EducationPlatform errorNotification
✅ EducationPlatform errorNotification calls notification with the given text
Chrome_Headless_122_0_6261_128_(Linux_x86_64).EducationPlatform successNotification
✅ EducationPlatform successNotification calls notification with the given text
Chrome_Headless_122_0_6261_128_(Linux_x86_64).EducationPlatform longNotification
✅ EducationPlatform longNotification calls notification with the given text
Chrome_Headless_122_0_6261_128_(Linux_x86_64).ActionFunction
⚪ ActionFunction instance of a the return type returns the the corresponding id
✅ ActionFunction object creation - id
✅ ActionFunction instance of a parameter name returns the the corresponding id
Chrome_Headless_122_0_6261_128_(Linux_x86_64).FunctionRegistry
✅ FunctionRegistry a registered function can be looked up
✅ FunctionRegistry a registered function using wildcards can be found
✅ FunctionRegistry a single registered function using wildcards can be found
Chrome_Headless_122_0_6261_128_(Linux_x86_64).Button
✅ Button can be created
✅ Button has an hint set by a config object
✅ Button has an icon set by a config object
✅ Button has an id set by a config object
✅ Button createButtons - creates multiple buttons from an array of button objects
✅ Button getView - outputs a DOM representation for customButtons properties
Chrome_Headless_122_0_6261_128_(Linux_x86_64).ToolConfigValidator constructor
✅ ToolConfigValidator constructor can be created
Chrome_Headless_122_0_6261_128_(Linux_x86_64).ToolConfigValidator validate tool configuration
✅ ToolConfigValidator validate tool configuration returns an error if a function in the config has no returnType key
✅ ToolConfigValidator validate tool configuration returns an error if a function in the config has no path key
✅ ToolConfigValidator validate tool configuration returns an error if a function in the config has no name key
✅ ToolConfigValidator validate tool configuration returns an error if the config has no functions key
✅ ToolConfigValidator validate tool configuration returns an error if a panel definition in the config has no icon key
✅ ToolConfigValidator validate tool configuration returns an error if a panel definition in the config has no name key
✅ ToolConfigValidator validate tool configuration returns an error if a function in the config has no parameters key
✅ ToolConfigValidator validate tool configuration returns an error if a button in the config has no id key
✅ ToolConfigValidator validate tool configuration returns an error if a panel definition in the config has no id key
✅ ToolConfigValidator validate tool configuration returns an error if a parameter in the config has no type key
✅ ToolConfigValidator validate tool configuration returns an error if a parameter in the config has no name key
✅ ToolConfigValidator validate tool configuration returns an error if the config has no name key
✅ ToolConfigValidator validate tool configuration returns an error if a button in the config has no id key
✅ ToolConfigValidator validate tool configuration returns an error if a function in the config has no id key
✅ ToolConfigValidator validate tool configuration returns an error if a panel definition in the config has no panelclass key
✅ ToolConfigValidator validate tool configuration returns an error if the config has no id key
✅ ToolConfigValidator validate tool configuration reports no errors for a valid config
Chrome_Headless_122_0_6261_128_(Linux_x86_64).FileHandler
✅ FileHandler getPrivateFileRequestUrl - returns a token server request url from a raw github file url
✅ FileHandler getPrivateFileRequestUrl - returns null for an unknown file url
✅ FileHandler githubRawUrlToStoreRequest - returns an object with a token server request url member from a raw github file url
✅ FileHandler githubRawUrlToStoreRequest - returns an object with a token server requestParams member from a raw github file url
✅ FileHandler getPrivateFileUpdateParams - returns
✅ FileHandler getPrivateFileUpdateParams - returns null for an unknown file url
✅ FileHandler githubRawUrlTorequestUrl - returns a token server request url from a raw github file url
Chrome_Headless_122_0_6261_128_(Linux_x86_64).ToolManager tool grammar imports
✅ ToolManager tool grammar imports correctly loads the URL of the ace grammar for a defined tool
✅ ToolManager tool grammar imports correctly loads the ace grammar module for a defined tool
Chrome_Headless_122_0_6261_128_(Linux_x86_64).ToolManager initialisation
✅ ToolManager initialisation sets tools URLs correctly
✅ ToolManager initialisation fetches the tool configuration from the remote given by its URL
✅ ToolManager initialisation parses and stores the tool configuration
Chrome_Headless_122_0_6261_128_(Linux_x86_64).ToolManager panel definitions
✅ ToolManager panel definitions returns the correct object for an existing panel definition id
✅ ToolManager panel definitions returns null for a panel definition id that does not exist
Chrome_Headless_122_0_6261_128_(Linux_x86_64).ToolManager constructor
✅ ToolManager constructor can be created
Chrome_Headless_122_0_6261_128_(Linux_x86_64).ActivityConfigValidator constructor
✅ ActivityConfigValidator constructor can be created
Chrome_Headless_122_0_6261_128_(Linux_x86_64).ActivityConfigValidator validate activity configuration
✅ ActivityConfigValidator validate activity configuration returns an error if a config action has no sourceButton key
✅ ActivityConfigValidator validate activity configuration returns an error if the config has no id key
✅ ActivityConfigValidator validate activity configuration returns an error if the config has no panels key
✅ ActivityConfigValidator validate activity configuration returns an error if a panel button ref in config has no ref key
✅ ActivityConfigValidator validate activity configuration returns an error if the config has no title key
✅ ActivityConfigValidator validate activity configuration returns an error if a config action has no output key
✅ ActivityConfigValidator validate activity configuration returns an error if a panel button in config has no icon key
✅ ActivityConfigValidator validate activity configuration returns an error if a config action has no source key
✅ ActivityConfigValidator validate activity configuration returns an error if a panel in config has no name key
✅ ActivityConfigValidator validate activity configuration reports no errors for a valid config
✅ ActivityConfigValidator validate activity configuration returns an error if a config action has no parameters key
✅ ActivityConfigValidator validate activity configuration returns an error if a panel in config has no ref key
✅ ActivityConfigValidator validate activity configuration returns an error if a panel in config has no id key
✅ ActivityConfigValidator validate activity configuration returns an error if the config has no tools key
✅ ActivityConfigValidator validate activity configuration returns an error if a panel button in config has no id key
✅ ActivityConfigValidator validate activity configuration returns an error if the config has no actions key
✅ ActivityConfigValidator validate activity configuration returns an error if the config layout has no area key
✅ ActivityConfigValidator validate activity configuration returns an error if the config has no layout key
Chrome_Headless_122_0_6261_128_(Linux_x86_64).Utility
✅ Utility parseConfigFile - an invald json file returns an error
✅ Utility arrayEquals - arrays with matching values are the same
✅ 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 parseConfigFile - a yaml file is parsed to an object
✅ Utility parseConfigFile - an unknown file type returns null
✅ Utility arrayEquals - arrays with the same values in differing order are not the same
✅ Utility arrayEquals - when allow any is not enabled, arrays with any wildcard do not match the corresponding element
✅ Utility parseConfigFile - a json file parsed as yaml to an object
✅ Utility arrayEquals - arrays with an any wildcard always match the corresponding element
✅ Utility parseConfigFile - an invald yaml file returns an error
Chrome_Headless_122_0_6261_128_(Linux_x86_64).ActivityValidator
✅ ActivityValidator checkLayoutPanelIdsExist - layout panel ids missing panel
✅ ActivityValidator checkLayoutPanelIdsExist - layout panel ids no error
Chrome_Headless_122_0_6261_128_(Linux_x86_64).ActivityManager constructor
✅ ActivityManager constructor initialises the configValidator property
✅ ActivityManager constructor initialises the accessPanelDef property using param panelDefAccessor
✅ ActivityManager constructor uses the query string to set the activitiesUrl property
✅ ActivityManager constructor can be created
✅ ActivityManager constructor initialises the fileHandler property using param fileHandler
✅ ActivityManager constructor sets the activityId property if the current activity is provided in the url query string
Chrome_Headless_122_0_6261_128_(Linux_x86_64).ActivityManager activity initialisation
✅ ActivityManager activity initialisation no config errors empty configErrors propererty
✅ ActivityManager activity initialisation current activity activityId property is set to the activity id
✅ 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 causes the activity file to be fetched from its URL using the fileHandler
✅ ActivityManager activity initialisation the activities property has a key matching the activity id
✅ ActivityManager activity initialisation the activities actions property panel references have been resolved
✅ ActivityManager activity initialisation resolves references for a valid activity by calling resolveActionReferences with activity id
✅ ActivityManager activity initialisation an activities property's value is an object
Chrome_Headless_122_0_6261_128_(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
✅ platform/reports/TESTS-Firefox_123.0_(Ubuntu_0.0.0).xml
107 tests were completed in 1s with 106 passed, 0 failed and 1 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Firefox 123.0 (Ubuntu 0.0.0) | 106✅ | 1⚪ | 1s |
✅ Firefox 123.0 (Ubuntu 0.0.0)
Firefox_123_0_(Ubuntu_0_0_0).Button
✅ Button has an icon set by a config object
✅ Button has an hint set by a config object
✅ Button can be created
✅ Button has an id set by a config object
✅ Button getView - outputs a DOM representation for customButtons properties
✅ Button createButtons - creates multiple buttons from an array of button objects
Firefox_123_0_(Ubuntu_0_0_0).EducationPlatform errorNotification
✅ EducationPlatform errorNotification calls notification with the given text
Firefox_123_0_(Ubuntu_0_0_0).EducationPlatform longNotification
✅ EducationPlatform longNotification calls notification with the given text
Firefox_123_0_(Ubuntu_0_0_0).EducationPlatform successNotification
✅ EducationPlatform successNotification calls notification with the given text
Firefox_123_0_(Ubuntu_0_0_0).EducationPlatform invokeActionFunction
✅ EducationPlatform invokeActionFunction returns a promise immediately after being called
✅ EducationPlatform invokeActionFunction calls functionRegistry_call with the given parameter values for matching types and returns a promise
✅ EducationPlatform invokeActionFunction calls functionRegistry_call with the converted parameter values for non-matching types
✅ EducationPlatform invokeActionFunction calls functionRegistry_call with the converted parameter values for non-matching types including a metamodel
✅ EducationPlatform invokeActionFunction sends request to a conversion function's url with unused parameters set to undefined
Firefox_123_0_(Ubuntu_0_0_0).EducationPlatform notification
✅ EducationPlatform notification displays a message with given title and text
Firefox_123_0_(Ubuntu_0_0_0).EducationPlatform runAction
✅ EducationPlatform runAction provides an error notification on unsuccessful function invocation result
✅ EducationPlatform runAction calls invokeActionFunction with the action functions parameters and their values
✅ EducationPlatform runAction call handleResponseActionFunction with the current action and the invoked function's result promise
✅ EducationPlatform runAction provides a notification indicating functions are executing
Firefox_123_0_(Ubuntu_0_0_0).ToolManager constructor
✅ ToolManager constructor can be created
Firefox_123_0_(Ubuntu_0_0_0).ToolManager panel definitions
✅ ToolManager panel definitions returns null for a panel definition id that does not exist
✅ ToolManager panel definitions returns the correct object for an existing panel definition id
Firefox_123_0_(Ubuntu_0_0_0).ToolManager initialisation
✅ ToolManager initialisation fetches the tool configuration from the remote given by its URL
✅ ToolManager initialisation sets tools URLs correctly
✅ ToolManager initialisation parses and stores the tool configuration
Firefox_123_0_(Ubuntu_0_0_0).ToolManager tool grammar imports
✅ ToolManager tool grammar imports correctly loads the URL of the ace grammar for a defined tool
✅ ToolManager tool grammar imports correctly loads the ace grammar module for a defined tool
Firefox_123_0_(Ubuntu_0_0_0).ActionFunction
⚪ ActionFunction instance of a the return type returns the the corresponding id
✅ ActionFunction object creation - id
✅ ActionFunction instance of a parameter name returns the the corresponding id
Firefox_123_0_(Ubuntu_0_0_0).ActivityConfigValidator validate activity configuration
✅ ActivityConfigValidator validate activity configuration returns an error if the config has no id key
✅ ActivityConfigValidator validate activity configuration returns an error if the config has no title key
✅ ActivityConfigValidator validate activity configuration reports no errors for a valid config
✅ ActivityConfigValidator validate activity configuration returns an error if a panel in config has no ref key
✅ ActivityConfigValidator validate activity configuration returns an error if the config has no panels key
✅ ActivityConfigValidator validate activity configuration returns an error if a panel button in config has no icon key
✅ ActivityConfigValidator validate activity configuration returns an error if the config layout has no area key
✅ ActivityConfigValidator validate activity configuration returns an error if a panel button ref in config has no ref key
✅ ActivityConfigValidator validate activity configuration returns an error if the config has no layout key
✅ ActivityConfigValidator validate activity configuration returns an error if a config action has no source key
✅ ActivityConfigValidator validate activity configuration returns an error if the config has no actions key
✅ ActivityConfigValidator validate activity configuration returns an error if a config action has no sourceButton key
✅ ActivityConfigValidator validate activity configuration returns an error if the config has no tools key
✅ ActivityConfigValidator validate activity configuration returns an error if a config action has no parameters key
✅ ActivityConfigValidator validate activity configuration returns an error if a config action has no output key
✅ ActivityConfigValidator validate activity configuration returns an error if a panel in config has no name key
✅ ActivityConfigValidator validate activity configuration returns an error if a panel button in config has no id key
✅ ActivityConfigValidator validate activity configuration returns an error if a panel in config has no id key
Firefox_123_0_(Ubuntu_0_0_0).ActivityConfigValidator constructor
✅ ActivityConfigValidator constructor can be created
Firefox_123_0_(Ubuntu_0_0_0).ActivityManager activity initialisation
✅ ActivityManager activity initialisation current activity activityId property is set to the activity id
✅ ActivityManager activity initialisation causes the activity file to be fetched from its URL using the fileHandler
✅ ActivityManager activity initialisation no config errors empty configErrors propererty
✅ ActivityManager activity initialisation the activities property has a key matching the activity id
✅ ActivityManager activity initialisation an activities property's value is an object
✅ ActivityManager activity initialisation the activities property is an object that has required keys
✅ ActivityManager activity initialisation the activities actions property panel references have been resolved
✅ ActivityManager activity initialisation resolves references for a valid activity by calling resolveActionReferences with activity id
✅ ActivityManager activity initialisation the panel definitions the current activity references are unresolved
Firefox_123_0_(Ubuntu_0_0_0).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
Firefox_123_0_(Ubuntu_0_0_0).ActivityManager constructor
✅ 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
✅ ActivityManager constructor initialises the accessPanelDef property using param panelDefAccessor
✅ ActivityManager constructor initialises the fileHandler property using param fileHandler
✅ ActivityManager constructor initialises the configValidator property
✅ ActivityManager constructor can be created
Firefox_123_0_(Ubuntu_0_0_0).ToolConfigValidator validate tool configuration
✅ ToolConfigValidator validate tool configuration reports no errors for a valid config
✅ ToolConfigValidator validate tool configuration returns an error if a button in the config has no id key
✅ ToolConfigValidator validate tool configuration returns an error if a function in the config has no path key
✅ ToolConfigValidator validate tool configuration returns an error if the config has no name key
✅ ToolConfigValidator validate tool configuration returns an error if a parameter in the config has no name key
✅ ToolConfigValidator validate tool configuration returns an error if the config has no id key
✅ ToolConfigValidator validate tool configuration returns an error if a button in the config has no id key
✅ ToolConfigValidator validate tool configuration returns an error if the config has no functions key
✅ ToolConfigValidator validate tool configuration returns an error if a panel definition in the config has no name key
✅ ToolConfigValidator validate tool configuration returns an error if a function in the config has no name key
✅ ToolConfigValidator validate tool configuration returns an error if a parameter in the config has no type key
✅ ToolConfigValidator validate tool configuration returns an error if a panel definition in the config has no icon key
✅ ToolConfigValidator validate tool configuration returns an error if a function in the config has no returnType key
✅ ToolConfigValidator validate tool configuration returns an error if a panel definition in the config has no id key
✅ ToolConfigValidator validate tool configuration returns an error if a function in the config has no id key
✅ ToolConfigValidator validate tool configuration returns an error if a function in the config has no parameters key
✅ ToolConfigValidator validate tool configuration returns an error if a panel definition in the config has no panelclass key
Firefox_123_0_(Ubuntu_0_0_0).ToolConfigValidator constructor
✅ ToolConfigValidator constructor can be created
Firefox_123_0_(Ubuntu_0_0_0).FileHandler
✅ FileHandler getPrivateFileUpdateParams - returns null for an unknown file url
✅ FileHandler getPrivateFileUpdateParams - returns
✅ 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
✅ FileHandler getPrivateFileRequestUrl - returns null for an unknown file url
✅ 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
Firefox_123_0_(Ubuntu_0_0_0).ActivityValidator
✅ ActivityValidator checkLayoutPanelIdsExist - layout panel ids missing panel
✅ ActivityValidator checkLayoutPanelIdsExist - layout panel ids no error
Firefox_123_0_(Ubuntu_0_0_0).FunctionRegistry
✅ FunctionRegistry a registered function can be looked up
✅ FunctionRegistry a registered function using wildcards can be found
✅ FunctionRegistry a single registered function using wildcards can be found
Firefox_123_0_(Ubuntu_0_0_0).Utility
✅ Utility parseConfigFile - a json file is parsed to an object
✅ Utility arrayEquals - arrays with a wildcard and non matchng other element are not the same
✅ Utility parseConfigFile - a yaml file is parsed to an object
✅ Utility parseConfigFile - an unknown file type returns null
✅ Utility parseConfigFile - a json file parsed as yaml to an object
✅ Utility parseConfigFile - an invald yaml file returns an error
✅ Utility parseConfigFile - an invald json file returns an error
✅ Utility arrayEquals - arrays with matching values are the same
✅ Utility arrayEquals - arrays with an any wildcard always match the corresponding element
✅ Utility arrayEquals - arrays with the same values in differing order are not the same
✅ Utility arrayEquals - when allow any is not enabled, arrays with any wildcard do not match the corresponding element
Loading