Skip to content

MMT-3903: Update MMT to the new UMM-C schema #1093

MMT-3903: Update MMT to the new UMM-C schema

MMT-3903: Update MMT to the new UMM-C schema #1093

Triggered via pull request November 14, 2024 20:36
@mandyparsonmandyparson
synchronize #1321
MMT-3903
Status Failure
Total duration 4m 25s
Artifacts

ci.yml

on: pull_request
Matrix: eslint
Matrix: stylelint
Matrix: vitest
tests-passed
0s
tests-passed
Fit to window
Zoom out
Zoom in

Annotations

3 errors
static/src/js/components/MetadataForm/__tests__/MetadataForm.test.jsx > MetadataForm > when the page is loaded with a fieldName in the URL > sets the focus field and calls navigate to remove the fieldName from the URL: static/src/js/components/MetadataForm/__tests__/MetadataForm.test.jsx#L980
AssertionError: expected "spy" to be called with arguments: [ ObjectContaining{…}, {} ] Received: 1st spy call: Array [ - ObjectContaining { - "formContext": ObjectContaining { - "focusField": "Name", + Object { + "children": <React.Fragment />, + "fields": Object { + "BoundingRectangle": [Function BoundingRectangleField], + "OneOfField": [Function OneOfField], + "TitleField": [Function CustomTitleField], + "keywordPicker": [Function KeywordPicker], + "layout": [Function GridLayout], + "streetAddresses": [Function StreetAddressField], + }, + "formContext": Object { + "focusField": null, + "setFocusField": [Function bound dispatchSetState], + }, + "formData": Object {}, + "onBlur": [Function handleBlur], + "onChange": [Function handleChange], + "schema": Object { + "$id": undefined, + "$schema": "http://json-schema.org/draft-07/schema#", + "definitions": Object { + "AccessConstraintsType": Object { + "description": "Information about any constraints for accessing the downloadable tool or web user interface.", + "maxLength": 4000, + "minLength": 1, + "type": "string", + }, + "ActionTargetType": Object { + "additionalProperties": false, + "description": "The definition of the tool's HTTP API.", + "properties": Object { + "Description": Object { + "description": "Human readable text that answers the question of what this API can do", + "type": "string", + }, + "HttpMethod": Object { + "description": "The accepted HTTP methods for this API.", + "items": Object { + "$ref": "#/definitions/HttpMethodEnum", + }, + "minItems": 1, + "type": "array", + }, + "ResponseContentType": Object { + "description": "The supported MIME type(s) of the response from the HTTP API.", + "items": Object { + "type": "string", + }, + "minItems": 1, + "type": "array", + }, + "Type": Object { + "$ref": "#/definitions/TargetTypeEnum", + "description": "The type of target. For example, is it an entry point into the application this record describes?", + }, + "UrlTemplate": Object { + "description": "An url template (RFC6570) that will be used to construct the target of the execution of the action.", + "maxLength": 4094, + "minLength": 1, + "type": "string", + }, + }, + "required": Array [ + "Type", + "UrlTemplate", + "HttpMethod", + ], + "type": "object", + }, + "ActionTypeEnum": Object { + "description": "The intent of action this tool supports. Does this tool provide a search? Does it create a resource? Does it consume a resource?", + "enum": Array [ + "SearchAction", + "CreateAction", + "ConsumeAction", + ], + "type": "string", + }, + "AddressType": Object { + "additionalProperties": false, + "description": "This entity contains the physical address details for the contact.", + "properties": Object { + "City": Object { + "description": "The city portion of the physical address.", + "maxLength": 100, + "minLength": 1, + "type": "string", + }, + "Country": Object { + "description": "The country of the physical address.", + "maxLength": 100, + "minLength": 1, + "type": "string", + }, + "PostalCode": Object { + "description": "The zip or other postal cod
vitest (lts/hydrogen)
Process completed with exit code 1.