<commit_before>Feature: Manage Catalog Entries
  In order to manage catalog entries
  As an admin
  I want to add/edit/remove catalog entries

  Background:
    Given I am an authorised user
    And I am logged in

  Scenario: Create new catalog entry
    Given there is a "default" catalog
    When I am on the "default" catalog catalog entries page
    Then I should see "Catalog Entries"
    When I follow "new_catalog_entry_button"
    Then I should see "Add New Catalog Entry"
    When I fill in "catalog_entry[deployable_attributes][name]" with "test1"
    And I fill in "catalog_entry[deployable_attributes][description]" with "description"
    When I attach the file "features/upload_files/deployable.xml" to "catalog_entry[deployable_attributes][xml]"
    And I press "save_button"
    Then I should see "Catalog entry added"

  Scenario: Change the name
    Given there is a "default" catalog
    And a catalog entry "testdepl" exists
    When I am on the "default" catalog catalog entries page
    When I follow "testdepl"
    And I follow "edit_button"
    Then I should see "Editing Catalog Entry"
    When I fill in "catalog_entry[deployable_attributes][name]" with "testdepl-renamed"
    And I press "save_button"
    Then I should see "Catalog entry updated successfully!"
    And I should see "testdepl-renamed"

  Scenario: Show catalog entry details
    Given there is a "default" catalog
    And a catalog entry "testdepl" exists
    And I am on the "default" catalog catalog entries page
    When I follow "testdepl"
    Then I should see "testdepl"
    And I should see "Name"
    And I should see "description"
    And I should see "Deployable XML"
<commit_msg>Fix broken the Catalog Entries Cucumber feature<commit_after>Feature: Manage Catalog Entries
  In order to manage catalog entries
  As an admin
  I want to add/edit/remove catalog entries

  Background:
    Given I am an authorised user
    And I am logged in

  Scenario: Create new catalog entry
    Given there is a "default" catalog
    When I am on the "default" catalog catalog entries page
    Then I should see "Catalog Entries"
    When I follow "new_catalog_entry_button"
    Then I should see "Add New Catalog Entry"
    When I fill in "catalog_entry[deployable_attributes][name]" with "test1"
    And I fill in "catalog_entry[deployable_attributes][description]" with "description"
    When I attach the file "features/upload_files/deployable.xml" to "catalog_entry[deployable_attributes][xml]"
    And I press "save_button"
    Then I should see "Catalog entry added"

  Scenario: Change the name
    Given there is a "default" catalog
    And a catalog entry "testdepl" exists
    When I am on the "default" catalog catalog entries page
    When I follow "testdepl"
    And I follow "edit_button"
    Then I should see "Editing Catalog Entry"
    When I fill in "catalog_entry[deployable_attributes][name]" with "testdepl-renamed"
    And I press "save_button"
    Then I should see "Catalog entry updated successfully!"
    And I should see "testdepl-renamed"

  Scenario: Show catalog entry details
    Given there is a "default" catalog
    And a catalog entry "testdepl" exists
    And I am on the "default" catalog catalog entries page
    When I follow "testdepl"
    Then I should see "testdepl"
    And I should see "Image"
    And I should see "Build"
    And I should see "Catalogs"
    And I should see "Roles"

{'fraction_non_alphanumeric': 0.05672514619883041, 'fraction_numerical': 0.0005847953216374269, 'mean_word_length': 3.591946308724832, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5199834', 'n_tokens_mistral': 979, 'n_tokens_neox': 951, 'n_words': 450}