init.samples.floodio.FloodIO.meta Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwen-web Show documentation
Show all versions of gwen-web Show documentation
Web automation engine for Gwen
@Sample
Feature: floodio meta
@StepDef
@Context
Scenario: I launch the floodio challenge
Given the heading is displayed is defined by javascript "!!$('h2')"
And the heading can be located by tag name "h2"
And the next button can be located by class name "btn"
When I navigate to "https://challengers.flood.io/start"
Then I should be on the start page
@StepDef
@Context
Scenario: I am on the page
Given I wait until the heading is displayed
Then I am on the $ page
@StepDef
@Assertion
Scenario: I should be on the start page
Given I am on the start page
And the heading can be located by tag name "h1"
Then the heading should be "Welcome to our Script Challenge"
And the Start button can be located by name "commit"
@StepDef
@Assertion
Scenario: I should be on the step 2 page
Given I am on the step 2 page
Then the heading should contain "Step 2"
And the how old are you dropdown can be located by id "challenger_age"
@StepDef
@Assertion
Scenario: I should be on the step 3 page
Given I am on the step 3 page
Then the heading should contain "Step 3"
And the largest order value is defined by javascript "Math.max.apply(Math, $.map($('.radio'), function(x) { return parseInt($(x).text()); }))"
And the largest order input field can be located by id "challenger_largest_order"
And the largest order radio button can be located by javascript "$('.radio:contains(${the largest order value}) input').get(0);"
@StepDef
@Assertion
Scenario: I should be on the step 4 page
Given I am on the step 4 page
Then the heading should contain "Step 4"
@StepDef
@Assertion
Scenario: I should be on the step 5 page
Given I am on the step 5 page
Then the heading should contain "Step 5"
And the one time token can be located by javascript "$('.token').get(0)"
And the one time token field can be located by id "challenger_one_time_token"
@StepDef
@Assertion
Scenario: I should be on the challenge completed page
Given I am on the challenge completed page
Then the heading should contain "You're Done!"
And the lead paragraph can be located by class name "lead"
@StepDef
@Action
Scenario: I select and enter the largest order value
Given I type the largest order value in the largest order input field
And I click the largest order radio button
@StepDef
@Action
Scenario: I enter the one time token
Given I wait for the one time token text
And I type the one time token in the one time token field
@StepDef
@Action
Scenario: I complete step 1
Given I am on the start page
When I click the Start button
Then I should be on the step 2 page
@StepDef
@Action
Scenario: I complete step 2
Given I am on the step 2 page
When I select "21" in the how old are you dropdown
Then the how old are you dropdown text should be "21"
And the how old are you dropdown value should be "21"
When I click the next button
Then I should be on the step 3 page
@StepDef
@Action
Scenario: I complete step 3
Given I am on the step 3 page
When I select and enter the largest order value
And I click the next button
Then I should be on the step 4 page
@StepDef
@Action
Scenario: I complete step 4
Given I am on the step 4 page
When I click the next button
Then I should be on the step 5 page
@StepDef
@Action
Scenario: I complete step 5
Given I am on the step 5 page
When I enter the one time token
And I capture the one time token
And I click the next button
Then I should be on the challenge completed page
@StepDef
@Action
Scenario: I complete all steps
When I complete step 1
And I complete step 2
And I complete step 3
And I complete step 4
And I complete step 5
@StepDef
@Assertion
Scenario: I should pass the challenge
Given I am on the challenge completed page
Then the lead paragraph should contain "That's it"
© 2015 - 2025 Weber Informatics LLC | Privacy Policy