Skip to content

Feature 479076: Advanced Search #2442

Feature 479076: Advanced Search

Feature 479076: Advanced Search #2442

Triggered via pull request January 27, 2025 18:34
Status Failure
Total duration 1m 58s
Artifacts 1

check-pull-request.yml

on: pull_request
Matrix: tasks
Matrix: lint
Analysis
6s
Analysis
Fit to window
Zoom out
Zoom in

Annotations

5 errors
EditorConfig
Process completed with exit code 1.
Search Component › With search data › Standard search › should render the button group: designer/server/src/common/components/search/template.test.js#L69
TestingLibraryElementError: Found multiple elements with the role "button" and name "Apply filters" Here are the matching elements: Ignored nodes: comments, script, style <button class="govuk-button app-search-form__submit" data-module="govuk-button" type="submit" > Apply filters </button> Ignored nodes: comments, script, style <button class="govuk-button app-search-form__submit" data-module="govuk-button" type="submit" > Apply filters </button> (If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)). Ignored nodes: comments, script, style <form action="/library" aria-labelledby="search-form-heading" class="app-search-form" method="get" > <h2 class="govuk-heading-m" id="search-form-heading" > Search </h2> <input name="sort" type="hidden" value="updatedDesc" /> <div class="govuk-form-group" > <label class="govuk-label" for="form-title" > Form name </label> <input class="govuk-input govuk-!-width-full" id="form-title" name="title" type="text" value="Some Form" /> </div> <div aria-labelledby="applied-filters-heading" class="govuk-inset-text govuk-!-margin-bottom-4" > <h3 class="govuk-heading-s" id="applied-filters-heading" > Applied filters: </h3> <ul class="govuk-list govuk-list--bullet govuk-list--spaced" > <li> <strong> Name: </strong> Some Form </li> <li> <strong> Author: </strong> all </li> </ul> </div> <div class="govuk-button-group govuk-!-margin-bottom-4" > <button class="govuk-button app-search-form__submit" data-module="govuk-button" type="submit" > Apply filters </button> <a class="govuk-button govuk-button--secondary" data-module="govuk-button" draggable="false" href="/library" role="button" > Clear filters </a> </div> <h3 class="govuk-heading-m govuk-!-margin-bottom-1" > Advanced search </h3> <p class="govuk-body" > Apply additional filters </p> <div class="govuk-accordion" data-module="govuk-accordion" data-remember-expanded="false" id="search-filters-advanced" > <div class="govuk-accordion__section govuk-accordion__section--expanded" > <div class="govuk-accordion__section-header" > <h2 class="govuk-accordion__section-heading" > <span class="govuk-accordion__section-button" id="search-filters-advanced-heading-1" > Authors </span> </h2> </div> <div class="govuk-accordion__section-content" id="search-filters-advanced-content-1" > <div class="govuk-form-group" > <fieldset class="govuk-fieldset" > <legend class="govuk-fieldset__legend" > Select all authors that apply </legend> <div class="govuk-radios govuk-radios--small" data-module="govuk-radios" > <div class="govuk-radios__item" > <input checked="" class="govuk-radios__input"
Search Component › With search data › With different base URL › should use the correct base URL for clear filters button: designer/server/src/common/components/search/template.test.js#L130
TestingLibraryElementError: Found multiple elements with the role "button" and name "Clear filters" Here are the matching elements: Ignored nodes: comments, script, style <a class="govuk-button govuk-button--secondary" data-module="govuk-button" draggable="false" href="/different-path" role="button" > Clear filters </a> Ignored nodes: comments, script, style <a class="govuk-button govuk-button--secondary" data-module="govuk-button" draggable="false" href="/different-path" role="button" > Clear filters </a> (If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)). Ignored nodes: comments, script, style <form action="/library" aria-labelledby="search-form-heading" class="app-search-form" method="get" > <h2 class="govuk-heading-m" id="search-form-heading" > Search </h2> <input name="sort" type="hidden" value="updatedDesc" /> <div class="govuk-form-group" > <label class="govuk-label" for="form-title" > Form name </label> <input class="govuk-input govuk-!-width-full" id="form-title" name="title" type="text" value="Test Form" /> </div> <div aria-labelledby="applied-filters-heading" class="govuk-inset-text govuk-!-margin-bottom-4" > <h3 class="govuk-heading-s" id="applied-filters-heading" > Applied filters: </h3> <ul class="govuk-list govuk-list--bullet govuk-list--spaced" > <li> <strong> Name: </strong> Test Form </li> <li> <strong> Author: </strong> all </li> </ul> </div> <div class="govuk-button-group govuk-!-margin-bottom-4" > <button class="govuk-button app-search-form__submit" data-module="govuk-button" type="submit" > Apply filters </button> <a class="govuk-button govuk-button--secondary" data-module="govuk-button" draggable="false" href="/different-path" role="button" > Clear filters </a> </div> <h3 class="govuk-heading-m govuk-!-margin-bottom-1" > Advanced search </h3> <p class="govuk-body" > Apply additional filters </p> <div class="govuk-accordion" data-module="govuk-accordion" data-remember-expanded="false" id="search-filters-advanced" > <div class="govuk-accordion__section govuk-accordion__section--expanded" > <div class="govuk-accordion__section-header" > <h2 class="govuk-accordion__section-heading" > <span class="govuk-accordion__section-button" id="search-filters-advanced-heading-1" > Authors </span> </h2> </div> <div class="govuk-accordion__section-content" id="search-filters-advanced-content-1" > <div class="govuk-form-group" > <fieldset class="govuk-fieldset" > <legend class="govuk-fieldset__legend" > Select all authors that apply </legend> <div class="govuk-radios govuk-radios--small" data-module="govuk-radios" > <div class="govuk-radios__item" > <input
Unit tests
Process completed with exit code 1.
Analysis
Failed to restore cache entry. Exiting as fail-on-cache-miss is set. Input key: test-unit-Linux-2fa7fbc66ecf8ad9a31a931abef74b0f8a2bf38b

Artifacts

Produced during runtime
Name Size
Unit tests coverage
819 KB