<commit_before>Feature: Workflow steps details

  The selected Step's properties can be viewed & some of them can be edited.
  Steps of any Workflow are listed, they can be selected, and their name, version, icon & badges are displayed.

  Background:
    Given workflows tab is open

  Scenario: Step title scenarios
    When I click on "Sixth step"
    Then I should see "Install Swiftlint 0.35" in "Step Title"
    When I click on "Seventeenth step"
    Then I should see "[BETA] iOS Device Testing" in "Step Title"
    When I select "wf2 workflow" from "Workflow selector"
      And I click on "First step"
    Then I should see "A script step referenced by git URL" in "Step Title"
    When I click on "Second step"
    Then I should see "Script" in "Step Title"
    When I click on "Third step"
    Then I should see "steps-script@master" in "Step Title"
    When I click on "Fourth step"
    Then I should see "A local step" in "Step Title"
    When I click on "Fifth step"
    Then I should see "A local step with overwritten title & input" in "Step Title"
    When I click on "Sixth step"
    Then I should see "test_local_step" in "Step Title"
    When I select "wf4 workflow" from "Workflow selector"
      And I click on "Second step"
    Then I should see "untitled_step" in "Step Title"
    When I click on "Step Title"
    Then "Step Title Edit Box" should "be empty"

  Scenario: Step rename
    When I click on "Sixth step"
      And I click on "Step Title"
    Then "Step Title Edit Box" should "have value: Install Swiftlint 0.35"
    When I clear "Step Title Edit Box"
      And I type "my custom name" in "Step Title Edit Box"
    Then I wait 300
    When I click on "Step Rename Confirm Button"
    Then I should see "my custom name" in "Step Title"

  Scenario: Step details check (versioning etc...)
    # Up-to-date library step
    Then "First StepItem Version Update Indicator" should "not be visible"
    # Non up-to-date library step
    When I click on "Second step"
    Then "Step Version Details" should "be visible"
      And "Step Latest Version Updater Button" should "be visible"
      And "Step Version Update Icon" should "be visible"
      And "Step Version Selector" should "be visible"
      And I should see "Version: 1.1.5" in "Step Version"
      And I should see "1.1.5" in "Second StepItem Version Update Indicator"
    When I select "wf2 workflow" from "Workflow selector"
      And I click on "Second step"
    # GitHub step
    Then "Second StepItem Version Update Indicator" should "not be visible"
      And I should see "master" in "Second StepItem Version"
      And "Step Version Details" should "be visible"
      And "Step Latest Version Updater Button" should "not be visible"
      And "Step Version Update Icon" should "not be visible"
      And "Step Version Selector" should "not be visible"
      And "Step Version Branch Icon" should "be visible"
      And I should see "Branch: master" in "Step Version"
    # Local step
    When I click on "Fourth step"
    Then "Forth StepItem Version Update Indicator" should "not be visible"
      And I should see "Always latest" in "Fourth StepItem Version"
      And "Step Version Details" should "not be visible"
    When I click on "Eighth step"
    Then "Step Version Details" should "be visible"
      And "Step Version Selector" should "be visible"
    When I change tab to "Trigger tab"
      And I change tab to "Workflows tab"
    Then "Eighth step" should be the selected step

  Scenario: Version Downgrade
    When I click on "First step"
    Then "First StepItem Version Update Indicator" should "not be visible"
      And I should see "2.3.4" in "First StepItem Version"
      And "Step Version Details" should "be visible"
      And I should see "2.3.4" in "Step Version"
      And "Step Version Branch Icon" should "be visible"
      And "Step Version Selector" should "be visible"
      And "Step Version Update Icon" should "not be visible"
      And "Step Latest Version Updater Button" should "not be visible"
    When I select "1.0.x" from "Step Version Selector"
      And I confirm on "Alert popup"
      And I scroll "Step edit container" to 100px
    Then "Save Button" should "not be disabled"
      And "Step Version Branch Icon" should "not be visible"
      And "Step Latest Version Updater Button" should "be visible"
      And "Step Version Update Icon" should "be visible"
      And I should see "Version: 1.0.4" in "Step Version"
      And I should see "1.0.x" in "First StepItem Version Update Indicator"

  Scenario: Version Update
    When I click on "Second step"
    Then I should see "1.1.5" in "Second StepItem Version Update Indicator"
      And "Step Version Details" should "be visible"
      And I should see "Version: 1.1.5" in "Step Version"
      And "Step Latest Version Updater Button" should "be visible"
      And "Step Version Update Icon" should "be visible"
      And "Step Version Selector" should "be visible"
      And "Step Version Branch Icon" should "not be visible"
    When I select "1.x.x" from "Step Version Selector"
    Then "Save Button" should "not be disabled"
      And I should see "Version: 1.1.6" in "Step Version"
      And "Step Version Branch Icon" should "be visible"
      And I should see "1.x.x" in "Second StepItem Version"
      And "Second StepItem Version Update Indicator" should "not be visible"
      And "Step Latest Version Updater Button" should "not be visible"
      And "Step Version Update Icon" should "not be visible"

  Scenario: Latest Version Update
    When I click on "First step"
    Then "First StepItem Version Update Indicator" should "not be visible"
      And I should see "2.3.4" in "First StepItem Version"
      And "Step Version Details" should "be visible"
      And I should see "2.3.4" in "Step Version"
      And "Step Version Branch Icon" should "be visible"
      And "Step Version Selector" should "be visible"
      And "Step Version Update Icon" should "not be visible"
      And "Step Latest Version Updater Button" should "not be visible"
    When I select "1.0.x" from "Step Version Selector"
      And I confirm on "Alert popup"
      And I scroll "Step edit container" to 100px
    Then I should see "1.0.x" in "First StepItem Version Update Indicator"
      And I should see "Version: 1.0.4" in "Step Version"
      And "Step Latest Version Updater Button" should "be visible"
      And "Step Version Update Icon" should "be visible"
    When I click on "Step Latest Version Updater Button"
    Then I should see "Version: 2.3.4" in "Step Version"
      And "Step Version Branch Icon" should "be visible"
      And "Step Version Update Icon" should "not be visible"
      And I should see "2.x.x" in "First StepItem Version"
      And "First StepItem Version Update Indicator" should "not be visible"
    When I click on "Eighteenth step"
    Then I should see "1.7.1" in "Eighteenth StepItem Version"
      And I should see "Deploy to Bitrise.io - Apps, Logs, Artifacts" in "Step Title"
      And I should see "Version: 1.7.1" in "Step Version"
      And "Step Version Branch Icon" should "not be visible"
      And "Step Version Selector" should "be visible"
      And "Step Version Update Icon" should "be visible"
      And "Step Latest Version Updater Button" should "be visible"
    When I select "1.10.x" from "Step Version Selector"
    Then I should see "1.10.x" in "Eighteenth StepItem Version"
      And I should see "1.10.0" in "Step Version"
      And "Step Version Branch Icon" should "be visible"
      And "Step Version Update Icon" should "not be visible"
      And "Step Latest Version Updater Button" should "not be visible"
    When I select "1.x.x" from "Step Version Selector"
    Then I should see "1.x.x" in "Eighteenth StepItem Version"
      And I should see "1.10.0" in "Step Version"
      And "Step Version Branch Icon" should "be visible"
      And "Step Version Update Icon" should "not be visible"
      And "Step Latest Version Updater Button" should "not be visible"

  Scenario: Always latest vs latest major lock
    When I click on "Third step"
    Then I should see "Version: 4.0.5" in "Step Version"
      And I should see "Always latest" in "Third StepItem Version"
    When I select "4.x.x" from "Step Version Selector"
    Then I should see "Version: 4.0.5" in "Step Version"
      And I should see "4.x.x" in "Third StepItem Version"

  Scenario: Step with always run capabilities<commit_msg>Align e2e test with latest Deploy to Bitrise.io step version (#559)<commit_after>Feature: Workflow steps details

  The selected Step's properties can be viewed & some of them can be edited.
  Steps of any Workflow are listed, they can be selected, and their name, version, icon & badges are displayed.

  Background:
    Given workflows tab is open

  Scenario: Step title scenarios
    When I click on "Sixth step"
    Then I should see "Install Swiftlint 0.35" in "Step Title"
    When I click on "Seventeenth step"
    Then I should see "[BETA] iOS Device Testing" in "Step Title"
    When I select "wf2 workflow" from "Workflow selector"
      And I click on "First step"
    Then I should see "A script step referenced by git URL" in "Step Title"
    When I click on "Second step"
    Then I should see "Script" in "Step Title"
    When I click on "Third step"
    Then I should see "steps-script@master" in "Step Title"
    When I click on "Fourth step"
    Then I should see "A local step" in "Step Title"
    When I click on "Fifth step"
    Then I should see "A local step with overwritten title & input" in "Step Title"
    When I click on "Sixth step"
    Then I should see "test_local_step" in "Step Title"
    When I select "wf4 workflow" from "Workflow selector"
      And I click on "Second step"
    Then I should see "untitled_step" in "Step Title"
    When I click on "Step Title"
    Then "Step Title Edit Box" should "be empty"

  Scenario: Step rename
    When I click on "Sixth step"
      And I click on "Step Title"
    Then "Step Title Edit Box" should "have value: Install Swiftlint 0.35"
    When I clear "Step Title Edit Box"
      And I type "my custom name" in "Step Title Edit Box"
    Then I wait 300
    When I click on "Step Rename Confirm Button"
    Then I should see "my custom name" in "Step Title"

  Scenario: Step details check (versioning etc...)
    # Up-to-date library step
    Then "First StepItem Version Update Indicator" should "not be visible"
    # Non up-to-date library step
    When I click on "Second step"
    Then "Step Version Details" should "be visible"
      And "Step Latest Version Updater Button" should "be visible"
      And "Step Version Update Icon" should "be visible"
      And "Step Version Selector" should "be visible"
      And I should see "Version: 1.1.5" in "Step Version"
      And I should see "1.1.5" in "Second StepItem Version Update Indicator"
    When I select "wf2 workflow" from "Workflow selector"
      And I click on "Second step"
    # GitHub step
    Then "Second StepItem Version Update Indicator" should "not be visible"
      And I should see "master" in "Second StepItem Version"
      And "Step Version Details" should "be visible"
      And "Step Latest Version Updater Button" should "not be visible"
      And "Step Version Update Icon" should "not be visible"
      And "Step Version Selector" should "not be visible"
      And "Step Version Branch Icon" should "be visible"
      And I should see "Branch: master" in "Step Version"
    # Local step
    When I click on "Fourth step"
    Then "Forth StepItem Version Update Indicator" should "not be visible"
      And I should see "Always latest" in "Fourth StepItem Version"
      And "Step Version Details" should "not be visible"
    When I click on "Eighth step"
    Then "Step Version Details" should "be visible"
      And "Step Version Selector" should "be visible"
    When I change tab to "Trigger tab"
      And I change tab to "Workflows tab"
    Then "Eighth step" should be the selected step

  Scenario: Version Downgrade
    When I click on "First step"
    Then "First StepItem Version Update Indicator" should "not be visible"
      And I should see "2.3.4" in "First StepItem Version"
      And "Step Version Details" should "be visible"
      And I should see "2.3.4" in "Step Version"
      And "Step Version Branch Icon" should "be visible"
      And "Step Version Selector" should "be visible"
      And "Step Version Update Icon" should "not be visible"
      And "Step Latest Version Updater Button" should "not be visible"
    When I select "1.0.x" from "Step Version Selector"
      And I confirm on "Alert popup"
      And I scroll "Step edit container" to 100px
    Then "Save Button" should "not be disabled"
      And "Step Version Branch Icon" should "not be visible"
      And "Step Latest Version Updater Button" should "be visible"
      And "Step Version Update Icon" should "be visible"
      And I should see "Version: 1.0.4" in "Step Version"
      And I should see "1.0.x" in "First StepItem Version Update Indicator"

  Scenario: Version Update
    When I click on "Second step"
    Then I should see "1.1.5" in "Second StepItem Version Update Indicator"
      And "Step Version Details" should "be visible"
      And I should see "Version: 1.1.5" in "Step Version"
      And "Step Latest Version Updater Button" should "be visible"
      And "Step Version Update Icon" should "be visible"
      And "Step Version Selector" should "be visible"
      And "Step Version Branch Icon" should "not be visible"
    When I select "1.x.x" from "Step Version Selector"
    Then "Save Button" should "not be disabled"
      And I should see "Version: 1.1.6" in "Step Version"
      And "Step Version Branch Icon" should "be visible"
      And I should see "1.x.x" in "Second StepItem Version"
      And "Second StepItem Version Update Indicator" should "not be visible"
      And "Step Latest Version Updater Button" should "not be visible"
      And "Step Version Update Icon" should "not be visible"

  Scenario: Latest Version Update
    When I click on "First step"
    Then "First StepItem Version Update Indicator" should "not be visible"
      And I should see "2.3.4" in "First StepItem Version"
      And "Step Version Details" should "be visible"
      And I should see "2.3.4" in "Step Version"
      And "Step Version Branch Icon" should "be visible"
      And "Step Version Selector" should "be visible"
      And "Step Version Update Icon" should "not be visible"
      And "Step Latest Version Updater Button" should "not be visible"
    When I select "1.0.x" from "Step Version Selector"
      And I confirm on "Alert popup"
      And I scroll "Step edit container" to 100px
    Then I should see "1.0.x" in "First StepItem Version Update Indicator"
      And I should see "Version: 1.0.4" in "Step Version"
      And "Step Latest Version Updater Button" should "be visible"
      And "Step Version Update Icon" should "be visible"
    When I click on "Step Latest Version Updater Button"
    Then I should see "Version: 2.3.4" in "Step Version"
      And "Step Version Branch Icon" should "be visible"
      And "Step Version Update Icon" should "not be visible"
      And I should see "2.x.x" in "First StepItem Version"
      And "First StepItem Version Update Indicator" should "not be visible"
    When I click on "Eighteenth step"
    Then I should see "1.7.1" in "Eighteenth StepItem Version"
      And I should see "Deploy to Bitrise.io - Apps, Logs, Artifacts" in "Step Title"
      And I should see "Version: 1.7.1" in "Step Version"
      And "Step Version Branch Icon" should "not be visible"
      And "Step Version Selector" should "be visible"
      And "Step Version Update Icon" should "be visible"
      And "Step Latest Version Updater Button" should "be visible"
    When I select "1.11.x" from "Step Version Selector"
    Then I should see "1.11.x" in "Eighteenth StepItem Version"
      And I should see "1.11.1" in "Step Version"
      And "Step Version Branch Icon" should "be visible"
      And "Step Version Update Icon" should "not be visible"
      And "Step Latest Version Updater Button" should "not be visible"
    When I select "1.x.x" from "Step Version Selector"
    Then I should see "1.x.x" in "Eighteenth StepItem Version"
      And I should see "1.11.1" in "Step Version"
      And "Step Version Branch Icon" should "be visible"
      And "Step Version Update Icon" should "not be visible"
      And "Step Latest Version Updater Button" should "not be visible"

  Scenario: Always latest vs latest major lock
    When I click on "Third step"
    Then I should see "Version: 4.0.5" in "Step Version"
      And I should see "Always latest" in "Third StepItem Version"
    When I select "4.x.x" from "Step Version Selector"
    Then I should see "Version: 4.0.5" in "Step Version"
      And I should see "4.x.x" in "Third StepItem Version"

  Scenario: Step with always run capabilities
{'fraction_non_alphanumeric': 0.07242110221384833, 'fraction_numerical': 0.011422515308525671, 'mean_word_length': 3.0267899478425795, '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': '4325609', 'n_tokens_mistral': 4916, 'n_tokens_neox': 4791, 'n_words': 2509}