<commit_before>Feature: Overview Toggle Section
	In order to quickly view the details of a course's section or to scan the inventory of sections
    As a course author
    I want to toggle the visibility of each section's  subsection details in the overview listing

	Scenario: The default layout for the overview page is to show sections in expanded view
		Given I have a course with multiple sections
        When I navigate to the course overview page
        Then I see the "Collapse All Sections" link
        And all sections are expanded

	Scenario: Expand /collapse for a course with no sections
		Given I have a course with no sections
        When I navigate to the course overview page
        Then I do not see the "Collapse All Sections" link

	Scenario: Collapse link appears after creating first section of a course
		Given I have a course with no sections
        When I navigate to the course overview page
        And I add a section
        Then I see the "Collapse All Sections" link
        And all sections are expanded

	Scenario: Collapse link is not removed after last section of a course is deleted
		Given I have a course with 1 section
        And I navigate to the course overview page
        When I confirm all alerts
        And I press the "section" delete icon
		Then I see the "Collapse All Sections" link

	Scenario: Collapsing all sections when all sections are expanded
		Given I navigate to the courseware page of a course with multiple sections
		And all sections are expanded
		When I click the "Collapse All Sections" link
		Then I see the "Expand All Sections" link
		And all sections are collapsed

	Scenario: Collapsing all sections when 1 or more sections are already collapsed
		Given I navigate to the courseware page of a course with multiple sections
		And all sections are expanded
		When I collapse the first section
		And I click the "Collapse All Sections" link
		Then I see the "Expand All Sections" link
		And all sections are collapsed

	Scenario: Expanding all sections when all sections are collapsed
		Given I navigate to the courseware page of a course with multiple sections
		And I click the "Collapse All Sections" link
		When I click the "Expand All Sections" link
		Then I see the "Collapse All Sections" link
		And all sections are expanded

	Scenario: Expanding all sections when 1 or more sections are already expanded
		Given I navigate to the courseware page of a course with multiple sections
		And I click the "Collapse All Sections" link
		When I expand the first section
		And I click the "Expand All Sections" link
		Then I see the "Collapse All Sections" link
		And all sections are expanded<commit_msg>Fixed tab issue (tabs are now correctly spaces)<commit_after>Feature: Overview Toggle Section
    In order to quickly view the details of a course's section or to scan the inventory of sections
    As a course author
    I want to toggle the visibility of each section's  subsection details in the overview listing

    Scenario: The default layout for the overview page is to show sections in expanded view
        Given I have a course with multiple sections
        When I navigate to the course overview page
        Then I see the "Collapse All Sections" link
        And all sections are expanded

    Scenario: Expand /collapse for a course with no sections
        Given I have a course with no sections
        When I navigate to the course overview page
        Then I do not see the "Collapse All Sections" link

    Scenario: Collapse link appears after creating first section of a course
        Given I have a course with no sections
        When I navigate to the course overview page
        And I add a section
        Then I see the "Collapse All Sections" link
        And all sections are expanded

    Scenario: Collapse link is not removed after last section of a course is deleted
        Given I have a course with 1 section
        And I navigate to the course overview page
        When I confirm all alerts
        And I press the "section" delete icon
        Then I see the "Collapse All Sections" link

    Scenario: Collapsing all sections when all sections are expanded
        Given I navigate to the courseware page of a course with multiple sections
        And all sections are expanded
        When I click the "Collapse All Sections" link
        Then I see the "Expand All Sections" link
        And all sections are collapsed

    Scenario: Collapsing all sections when 1 or more sections are already collapsed
        Given I navigate to the courseware page of a course with multiple sections
        And all sections are expanded
        When I collapse the first section
        And I click the "Collapse All Sections" link
        Then I see the "Expand All Sections" link
        And all sections are collapsed

    Scenario: Expanding all sections when all sections are collapsed
        Given I navigate to the courseware page of a course with multiple sections
        And I click the "Collapse All Sections" link
        When I click the "Expand All Sections" link
        Then I see the "Collapse All Sections" link
        And all sections are expanded

    Scenario: Expanding all sections when 1 or more sections are already expanded
        Given I navigate to the courseware page of a course with multiple sections
        And I click the "Collapse All Sections" link
        When I expand the first section
        And I click the "Expand All Sections" link
        Then I see the "Collapse All Sections" link
        And all sections are expanded
{'fraction_non_alphanumeric': 0.01647859573705893, 'fraction_numerical': 0.0010746910263299302, 'mean_word_length': 2.9574769666902907, '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': '5327520', 'n_tokens_mistral': 1345, 'n_tokens_neox': 1234, 'n_words': 868}