-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: Add initial blocking query acceptance tests
- Loading branch information
John Cowen
committed
Jan 29, 2019
1 parent
85bc7c9
commit dcd21af
Showing
3 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@setupApplicationTest | ||
Feature: dc / list-blocking | ||
In order to see updates without refreshing the page | ||
As a user | ||
I want to see changes if I change consul externally | ||
Background: | ||
Given 1 datacenter model with the value "dc-1" | ||
And settings from yaml | ||
--- | ||
consul:client: | ||
blocking: 1 | ||
throttle: 200 | ||
--- | ||
Scenario: | ||
And 3 [Model] models | ||
And a network latency of 100 | ||
When I visit the [Page] page for yaml | ||
--- | ||
dc: dc-1 | ||
--- | ||
Then the url should be /dc-1/[Url] | ||
And pause until I see 3 [Model] models | ||
And an external edit results in 5 [Model] models | ||
And pause until I see 5 [Model] models | ||
And an external edit results in 1 [Model] model | ||
And pause until I see 1 [Model] model | ||
And an external edit results in 0 [Model] models | ||
And pause until I see 0 [Model] models | ||
Where: | ||
-------------------------------------------- | ||
| Page | Model | Url | | ||
| services | service | services | | ||
| nodes | node | nodes | | ||
-------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import steps from '../steps'; | ||
|
||
// step definitions that are shared between features should be moved to the | ||
// tests/acceptance/steps/steps.js file | ||
|
||
export default function(assert) { | ||
return steps(assert).then('I should find a file', function() { | ||
assert.ok(true, this.step); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters