Kernel::Test::Case::Selenium::Agent::ConfigItemCreateRequiredField

Table of Contents

NAME

DESCRIPTION

This test automates a Selenium-based scenario for creating and editing a ConfigItem in OTRS, specifically focusing on required fields and dynamic field deletion.

It does the following:

  • Setup: Creates test data (user, group, config item class with a dynamic "Network Adapter" field that is required but has CountMin: 0), and a config item.

  • Create ConfigItem: Logs in as the test user, navigates to the config item creation page, fills in required fields, and deletes the "Network Adapter" field (allowed because CountMin: 0).

  • Submission: Submits the form, verifying that the config item is created successfully even though the required field was deleted.

  • Edit ConfigItem: Opens the edit fly-out for the created item, checks that the "Network Adapter" field has the correct pre-selected value, deletes it, and submits the changes.

  • Verification: Reopens the edit fly-out to confirm the "Network Adapter" value is deleted (no pre-selected value).

Purpose: It verifies that a required dynamic field with CountMin: 0 can be deleted and the form can still be submitted, ensuring correct behavior for optional required fields in OTRS ConfigItem forms.

Scroll to Top