<commit_before>@ticket-BAP-16638

Feature: Email configuration
  In order to have ability to change Email configuration
  As an Administrator
  I need to be able to make such changes

  Scenario: Add new mailbox
    Given I login as administrator
    And I go to System/Configuration
    And I follow "System Configuration/General Setup/Email Configuration" on configuration sidebar
    And I click "Add Mailbox"
    When I fill form with:
      | Mailbox Label | Test Mailbox     |
      | Email         | <EMAIL> |
    And I save form
    Then I should see "Test Mailbox has been saved" flash message
<commit_msg>BAP-17154: Select action for Email Processing leads to 500 error (#18935)<commit_after>@ticket-BAP-16638
@ticket BAP-17154

Feature: Email configuration
  In order to have ability to change Email configuration
  As an Administrator
  I want to be able to add mailbox with different actions

  Scenario: Add new mailbox
    Given I login as administrator
    And I go to System/Configuration
    And I follow "System Configuration/General Setup/Email Configuration" on configuration sidebar
    And I click "Add Mailbox"
    When I fill form with:
      | Mailbox Label | Test Mailbox     |
      | Email         | <EMAIL> |
    And I save form
    Then I should see "Test Mailbox has been saved" flash message

  Scenario: Make sure "Convert To Lead" action can be selected
    Given I click "Edit" on row "<EMAIL>" in grid
    When I select "Convert To Lead" from "Action"
    Then I should see "Owner"
    And I should see "Source"

  Scenario: Make sure "Convert To Case" action can be selected
    Given I select "Convert To Case" from "Action"
    Then I should see "Owner"
    And I should see "Assigned To"

{'fraction_non_alphanumeric': 0.0503181029496819, 'fraction_numerical': 0.016194331983805668, 'mean_word_length': 3.08983451536643, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1696531', 'n_tokens_mistral': 487, 'n_tokens_neox': 454, 'n_words': 240}