<commit_before>@webUI @insulated @disablePreviews @richdocuments-app-required @files_texteditor-app-required
Feature: File actions menu

  Background:
    Given these users have been created with default attributes and without skeleton files:
      | username |
      | Alice    |
    And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/lorem.txt"
    And user "Alice" has logged in using the webUI
    And the user has browsed to the files page

  Scenario: show the file actions application select menu with both Collabora and the Files Texteditor
    When the user clicks on the file "lorem.txt"
    Then the file actions application select menu should be displayed with these items on the webUI
      | Open in Text Editor | Open in Collabora |

  Scenario: show the actions for Collabora and the Files Texteditor in the file action menu
    And the user opens the file action menu of file "lorem.txt" on the webUI
    Then the file actions menu should be displayed with these items on the webUI
      | Open in Text Editor | Open in Collabora |<commit_msg>skip new fileActionsMenu tests on old oC10 versions<commit_after>@webUI @insulated @disablePreviews @richdocuments-app-required @files_texteditor-app-required
Feature: File actions menu

  Background:
    Given these users have been created with default attributes and without skeleton files:
      | username |
      | Alice    |
    And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/lorem.txt"
    And user "Alice" has logged in using the webUI
    And the user has browsed to the files page

  @skipOnOcV10.4 @skipOnOcV10.5 @skipOnOcV10.6.0
  Scenario: show the file actions application select menu with both Collabora and the Files Texteditor
    When the user clicks on the file "lorem.txt"
    Then the file actions application select menu should be displayed with these items on the webUI
      | Open in Text Editor | Open in Collabora |

  @skipOnOcV10.4 @skipOnOcV10.5 @skipOnOcV10.6.0
  Scenario: show the actions for Collabora and the Files Texteditor in the file action menu
    And the user opens the file action menu of file "lorem.txt" on the webUI
    Then the file actions menu should be displayed with these items on the webUI
      | Open in Text Editor | Open in Collabora |
{'fraction_non_alphanumeric': 0.045454545454545456, 'fraction_numerical': 0.009615384615384616, 'mean_word_length': 3.6149193548387095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5564702', 'n_tokens_mistral': 635, 'n_tokens_neox': 607, 'n_words': 309}