<commit_before>Feature: Dashboard
  In order to see the status of gems to which I've subscribed
  A user
  Should be able to see a list of updates in their feed

  Background:
    Given I am signed up as "<EMAIL>"

  Scenario: User goes to their dashboard
    Given the following rubygems exist:
      | name     |
      | ffi      |
      | sandworm |
      | fireworm |
    And the following versions exist:
      | rubygem        | number | platform    |
      | name: sandworm | 2.0.0  | ruby        |
      | name: ffi      | 1.0.0  | java        |
      | name: ffi      | 1.0.0  | x86-mswin32 |
      | name: fireworm | 1.0.0  | ruby        |
    And the following subscriptions exist:
      | user                    | rubygem        |
      | email: <EMAIL> | name: ffi      |
      | email: <EMAIL> | name: sandworm |
    And the following ownerships exist:
      | user                    | rubygem        |
      | email: <EMAIL> | name: fireworm |
    And I download the rubygem "fireworm" version "1.0.0" 1001 times
    And I download the rubygem "sandworm" version "2.0.0" 1008 times
    When I sign in as "<EMAIL>"
    And I go to the dashboard
    And I should see "ffi"
    And I should see "java"
    And I should see "x86-mswin32"
    And I should see "1,001 downloads"
    And I should see "1,008 downloads"

  @wip
  Scenario: Yanked gem is hidden from listing
    Given the following versions exist:
      | rubygem    | number | indexed |
      | name: RGem | 1.2.2  | true    |
      | name: RGem | 1.2.3  | false   |
    When I go to the dashboard
    And I follow "RGem"
    Then I should not see "yanked"
    And I should see "1.2.2"
    And I should see "Show all versions (2 total)"<commit_msg>Speed up the dashboard feature test<commit_after>Feature: Dashboard
  In order to see the status of gems to which I've subscribed
  A user
  Should be able to see a list of updates in their feed

  Background:
    Given I am signed up as "<EMAIL>"

  Scenario: User goes to their dashboard
    Given the following rubygems exist:
      | name     |
      | ffi      |
      | sandworm |
      | fireworm |
    And the following versions exist:
      | rubygem        | number | platform    |
      | name: sandworm | 2.0.0  | ruby        |
      | name: ffi      | 1.0.0  | java        |
      | name: ffi      | 1.0.0  | x86-mswin32 |
      | name: fireworm | 1.0.0  | ruby        |
    And the following subscriptions exist:
      | user                    | rubygem        |
      | email: <EMAIL> | name: ffi      |
      | email: <EMAIL> | name: sandworm |
    And the following ownerships exist:
      | user                    | rubygem        |
      | email: <EMAIL> | name: fireworm |
    And I download the rubygem "fireworm" version "1.0.0" 1 time
    And I download the rubygem "sandworm" version "2.0.0" 2 times
    When I sign in as "<EMAIL>"
    And I go to the dashboard
    And I should see "ffi"
    And I should see "java"
    And I should see "x86-mswin32"
    And I should see "1 download"
    And I should see "2 downloads"

  @wip
  Scenario: Yanked gem is hidden from listing
    Given the following versions exist:
      | rubygem    | number | indexed |
      | name: RGem | 1.2.2  | true    |
      | name: RGem | 1.2.3  | false   |
    When I go to the dashboard
    And I follow "RGem"
    Then I should not see "yanked"
    And I should see "1.2.2"
    And I should see "Show all versions (2 total)"
{'fraction_non_alphanumeric': 0.08338158656629995, 'fraction_numerical': 0.026635784597568036, 'mean_word_length': 1.8273322422258593, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6856515', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1087, 'n_words': 432}