mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-23 23:54:07 +01:00
migrate selenium script for integrations page and enhance the story
This commit is contained in:
parent
44c61d942a
commit
d6e20a76c2
6 changed files with 74 additions and 15 deletions
38
features/show_integration_options.feature
Normal file
38
features/show_integration_options.feature
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
Feature: Integrate Tracks in various ways
|
||||
|
||||
In order to use tracks with other software
|
||||
As a Tracks user
|
||||
I want to be informed about the various ways to integrate tracks
|
||||
|
||||
Background:
|
||||
Given the following user record
|
||||
| login | password | is_admin |
|
||||
| testuser | secret | false |
|
||||
And I have logged in as "testuser" with password "secret"
|
||||
|
||||
Scenario: I cannot see scripts when I do not have a context
|
||||
Given I have no contexts
|
||||
When I go to the integrations page
|
||||
Then I should see a message that you need a context to see scripts
|
||||
|
||||
Scenario: I can see scripts when I have one or more contexts
|
||||
Given I have a context called "@pc"
|
||||
When I go to the integrations page
|
||||
Then I should see scripts
|
||||
|
||||
@selenium
|
||||
Scenario: When I select a different context the example scripts should change accoordingly
|
||||
Given I have the following contexts:
|
||||
| context |
|
||||
| @pc |
|
||||
| @home |
|
||||
| @shops |
|
||||
| @boss |
|
||||
When I go to the integrations page
|
||||
Then I should see a script "applescript1" for "@pc"
|
||||
When I select "@home" from "applescript1-contexts"
|
||||
Then I should see a script "applescript1" for "@home"
|
||||
When I select "@shops" from "applescript2-contexts"
|
||||
Then I should see a script "applescript2" for "@shops"
|
||||
When I select "@boss" from "quicksilver-contexts"
|
||||
Then I should see a script "quicksilver" for "@boss"
|
||||
Loading…
Add table
Add a link
Reference in a new issue