Skip to content

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

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

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

Triggered via pull request November 14, 2024 20:26
Status Failure
Total duration 4m 11s
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

4 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
static/src/js/components/TemplatePreview/__tests__/TemplatePreview.test.jsx > TemplatePreview > Create Collection Draft button > when clicking on create button results in a success > should ingest a collectionDraft and navigate to collection draft: static/src/js/components/TemplatePreview/__tests__/TemplatePreview.test.jsx#L386
AssertionError: expected "spy" to be called with arguments: [ '/drafts/collections/CD1000000-MMT' ] Received: Number of calls: 0 Ignored nodes: comments, script, style <html> <head /> <body class="" style="padding-right: 1024px;" > <div> <div class="page flex-grow-0 w-100 overflow-y-auto overflow-x-hidden" > <div class="mx-0 mb-5 container-fluid" > <div class="py-3 mb-0 row" > <div class="px-4 px-md-5 pt-2 pt-md-4 col" > <header class="d-flex flex-column align-items-start " > <div class="mx-0 container-fluid" > <div class="row" > <div class="p-0 col" > <nav aria-label="breadcrumb" > <ol class="breadcrumb" > <li class="breadcrumb-item" > <a href="/templates/collections" > Collection Templates </a> </li> <li aria-current="page" class="breadcrumb-item active" > &lt;Blank Name&gt; </li> </ol> </nav> </div> </div> <div class="row" > <div class="p-0 d-flex col" > <div class="d-flex align-items-center" > <h2 class="m-0 text-gray-200 fs-4" style="font-weight: 700; letter-spacing: -0.015rem;" > &lt;Blank Name&gt; </h2> <span class="ms-2 badge bg-light-dark text-secondary" > MMT_2 </span> </div> <div class="d-flex flex-row flex-grow-1 justify-content-end ms-4" > <div> <button class="align-items-center text-nowrap d-flex ms-2 btn btn-success" title="" type="button" > <svg aria-label="A copy/paste icon" class="me-2" fill="currentColor" height="1em" role="img" stroke="currentColor" stroke-width="0" viewBox="0 0 448 512" width="1em" xmlns="http://www.w3.org/2000/svg" > <path d="M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z" /> </svg> Create Draft
vitest (lts/hydrogen)
Process completed with exit code 1.