Logo: Relish

  1. Sign in

Project: Console

Landing Page Data Demo

  • @landing_page
Background
Given
I visit the WeDeploy landing page
Scenarios
Search series by keyword
When
I enter "princess" into the "series" search bar
Then
I should see in the "javascript" code panel
.prefix('name', 'princess')
And
I should see in the "swift" code panel
.prefix(field: "name", value: "princess")
And
I should see in the "java" code panel
Filter.prefix("name", "princess")
Search genres by keyword
When
I enter "comedy" into the "genre" search bar
Then
I should see in the "javascript" code panel
.prefix('genres', 'comedy')
And
I should see in the "swift" code panel
.prefix(field: "genres", value: "comedy")
And
I should see in the "java" code panel
Filter.prefix("genres", "comedy")
Filter by genre
When
I check the "Anime" checkbox
And
I check the "Horror" checkbox
Then
I should see in the "javascript" code panel
.any('genres', 'Anime')
.any('genres', 'Horror')
And
I should see in the "swift" code panel
.any(field: "genres", value: ["Anime"])
.any(field: "genres", value: ["Horror"])
And
I should see in the "java" code panel
Filter.any("genres", "Anime")
.and(Filter.any("genres", "Horror"))
Filter by year
When
I check the "2015" checkbox
Then
I should see in the "javascript" code panel
.equal('year', 2015)
And
I should see in the "swift" code panel
.equal("year", 2015)
And
I should see in the "java" code panel
Filter.equal("year", 2015)
Filter by rating
When
I click the 2 star rating
Then
I should see in the "javascript" code panel
.gte('rating', '2')
And
I should see in the "swift" code panel
.gte(field: "rating", value: "2")
And
I should see in the "java" code panel
Filter.gte("rating", "2")
Search series by keyword and filter by year
When
I enter "star wars" into the "series" search bar
And
I check the "Children" checkbox
Then
I should see in the "javascript" code panel
.prefix('name', 'star wars')
.any('genres', 'Children')
And
I should see in the "swift" code panel
.prefix(field: "name", value: "star wars")
.any(field: "genres", value: ["Children"])
And
I should see in the "java" code panel
Filter.prefix("name", "star wars")
.and(Filter.any("genres", "Children"))
Filter by year and rating
When
I check the "2017" checkbox
And
I click the 4 star rating
Then
I should see in the "javascript" code panel
.gte('rating', '4')
.where(
Filter
.equal('year', 2017)
)
And
I should see in the "swift" code panel
.gte(field: "rating", value: "4")
.where(filter:
Filter
.equal("year", 2017)
)
And
I should see in the "java" code panel
.where(
Filter.gte("rating", "4")
.and(Filter.equal("year", 2017))
)
When
I click the "code" code button
And
I click the "Visit Step-by-step Tutorial" link
Then
I should be at url ending with "url_path"
And
I should see the text "text"
Examples:
code url_path text
Web /tutorials/data-web/get-started/ WeDeploy Data on the web
iOS /tutorials/data-ios/get-started/ WeDeploy Data on iOS
Android /tutorials/data-android/get-started/ WeDeploy Data on Android
When
I click the "Go to Docs" link in the "data-demo" section
Then
I should be at url ending with "/docs/data/getting-started/"

Last published 11 months ago by Christie Yoo.