<commit_before>@core @core_my
Feature: Reset my home page to default
  In order to remove customisations from my home page
  As a user
  I need to reset my home page

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email |
      | student1 | Student | 1 | <EMAIL> |
      | student2 | Student | 2 | <EMAIL> |
    And the following "courses" exist:
      | fullname | shortname | format |
      | Course 1 | C1 | topics |
    And the following "course enrolments" exist:
      | user | course | role |
      | student1 | C1 | student |
      | student2 | C1 | student |
    And I log in as "student1"
    And I follow "My home"

  Scenario: Add blocks to page and reset
    When I press "Customise this page"
    And I add the "Latest news" block
    And I add the "My latest badges" block
    And I press "Reset page to default"
    Then I should not see "Latest news"
    And I should not see "My latest badges"
    And I should not see "Reset page to default"<commit_msg>MDL-45897 behat: fixed behat for my home page<commit_after>@core @core_my
Feature: Reset my home page to default
  In order to remove customisations from my home page
  As a user
  I need to reset my home page

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email |
      | student1 | Student | 1 | <EMAIL> |
      | student2 | Student | 2 | <EMAIL> |
    And the following "courses" exist:
      | fullname | shortname | format |
      | Course 1 | C1 | topics |
    And the following "course enrolments" exist:
      | user | course | role |
      | student1 | C1 | student |
      | student2 | C1 | student |
    And I log in as "student1"
    And I follow "My home"

  Scenario: Add blocks to page and reset
    When I press "Customise this page"
    And I add the "Latest news" block
    And I add the "Comments" block
    And I press "Reset page to default"
    Then I should not see "Latest news"
    And I should see "My latest badges"
    And I should see "Calendar"
    And I should see "Upcoming events"
    And I should not see "Comments"
    And I should not see "Reset page to default"
{'fraction_non_alphanumeric': 0.07198892478080296, 'fraction_numerical': 0.012459621596677434, 'mean_word_length': 2.5834710743801654, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6180862', 'n_tokens_mistral': 654, 'n_tokens_neox': 636, 'n_words': 306}