<commit_before>@webUI @insulated @disablePreviews
Feature: Hide file/folders

  As a user
  I would like to display hidden files/folders
  So that I can choose to see the files that I want.

  Background:
    Given user "user1" has been created with default attributes and without skeleton files
    And user "user1" has logged in using the webUI
    And the user has browsed to the files page

  @smokeTest @TestAlsoOnExternalUserBackend
  Scenario: create a hidden folder
    When the user creates a folder with the name ".xyz" using the webUI
    Then folder ".xyz" should not be listed on the webUI
    When the user enables the setting to view hidden folders on the webUI
    Then folder ".xyz" should be listed on the webUI
<commit_msg>added test scenario for hidden files<commit_after>@webUI @insulated @disablePreviews
Feature: Hide file/folders

  As a user
  I would like to display hidden files/folders
  So that I can choose to see the files that I want.

  Background:
    Given user "user1" has been created with default attributes and without skeleton files
    And user "user1" has logged in using the webUI
    And the user has browsed to the files page

  @smokeTest @TestAlsoOnExternalUserBackend
  Scenario: create a hidden folder
    When the user creates a folder with the name ".xyz" using the webUI
    Then folder ".xyz" should not be listed on the webUI
    When the user enables the setting to view hidden folders on the webUI
    Then folder ".xyz" should be listed on the webUI

  Scenario: create a hidden file
    Given user "user1" has uploaded file with content "some content" to "/.lorem.txt"
    When the user browses to the files page
    Then file ".lorem.txt" should not be listed on the webUI
    When the user enables the setting to view hidden files on the webUI
    Then folder ".lorem.txt" should be listed on the webUI

  Scenario: Delete and restore a hidden file from trashbin
    Given user "user1" has uploaded file with content "some content" to "/.lorem.txt"
    When the user browses to the files page
    And the user enables the setting to view hidden files on the webUI
    And the user deletes file ".lorem.txt" using the webUI
    Then file ".lorem.txt" should be listed in the trashbin on the webUI
    When the user restores file ".lorem.txt" from the trashbin using the webUI
    And the user browses to the files page
    Then file ".lorem.txt" should be listed on the webUI

{'fraction_non_alphanumeric': 0.03938906752411576, 'fraction_numerical': 0.002411575562700965, 'mean_word_length': 3.107260726072607, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4736751', 'n_tokens_mistral': 712, 'n_tokens_neox': 647, 'n_words': 378}