Created on 13 May 2025, 2 days ago

Problem/Motivation

Module partial_datelist needs functional tests in order to check it works as intended, and to confirm potential further improvements won't break existing functionality.

The tests will reproduce user interaction with the configuration form elements provided by the module, as well as the changes it causes on node add and edit forms. Here is a breakdown of what is being delivered:

  1. Widget Configuration Form Tests. Objective: Ensure that the custom checkboxes for hiding date parts are present and functional on the widget configuration form. Steps:
    • Navigate to the form display configuration page for a content type.
    • Verify that the field row exists in the form display table.
    • Open the widget configuration form for the field.
    • Assert that the checkboxes for hiding date parts (e.g., year, month, day) are present.
    • Update the widget configuration by selecting specific checkboxes and save the changes.
    • Reload the form display configuration page and verify that the changes persist.
  2. Node Add/Edit Form Tests. Objective: Validate that the widget configuration settings are applied correctly on the node add/edit forms. Steps:
    • Navigate to the node add form for the content type.
    • Verify that the select elements for the configured date parts are present.
    • If a date range field is being tested, ensure that the select elements for the end date are also present.
    • Optionally, populate the date fields with test data and save the node.
    • Navigate to the node edit form and verify that the saved values are displayed correctly.
  3. Compatibility with Date and Datetime Fields. Objective: Test the module's functionality with both date and datetime field types. Steps:
    • Create fields of type date and datetime for the content type.
    • Configure the widget settings for each field type.
    • Perform the widget configuration and node form tests described above for each field type.
  4. Compatibility with Date Range Fields. Objective: Test the module's functionality with daterange and datetime_range field types. Steps:
    • Create fields of type daterange and datetime_range for the content type.
    • Configure the widget settings for each field type.
    • Perform the widget configuration and node form tests described above for each field type, ensuring that both start and end date fields are tested.
  5. Steps to reproduce

    --

    Proposed resolution

    --

    Remaining tasks

    --

    User interface changes

    User interface is not affected.

    API changes

    --

    Data model changes

    --

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇧🇷Brazil mabho Rio de Janeiro, RJ

Live updates comments and jobs are added and updated live.
  • testing

    Used for Documentation issues related to testing and test development

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024