Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
528bec8b
Commit
528bec8b
authored
Jan 08, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add wait_for_requests, update selectors to be Geo Nodes vue app compatible
parent
a52a3d9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
spec/ee/spec/features/admin/admin_geo_nodes_spec.rb
spec/ee/spec/features/admin/admin_geo_nodes_spec.rb
+9
-3
No files found.
spec/ee/spec/features/admin/admin_geo_nodes_spec.rb
View file @
528bec8b
require
'spec_helper'
RSpec
.
describe
'admin Geo Nodes'
,
type: :feature
do
describe
'admin Geo Nodes'
,
:js
do
let!
(
:geo_node
)
{
create
(
:geo_node
)
}
before
do
...
...
@@ -10,6 +10,7 @@ RSpec.describe 'admin Geo Nodes', type: :feature do
it
'show all public Geo Nodes and create new node link'
do
visit
admin_geo_nodes_path
wait_for_requests
expect
(
page
).
to
have_link
(
'New node'
,
href:
new_admin_geo_node_path
)
page
.
within
(
find
(
'.geo-nodes'
,
match: :first
))
do
...
...
@@ -30,6 +31,7 @@ RSpec.describe 'admin Geo Nodes', type: :feature do
click_button
'Add Node'
expect
(
current_path
).
to
eq
admin_geo_nodes_path
wait_for_requests
page
.
within
(
find
(
'.geo-nodes'
,
match: :first
))
do
expect
(
page
).
to
have_content
(
geo_node
.
url
)
...
...
@@ -52,7 +54,8 @@ RSpec.describe 'admin Geo Nodes', type: :feature do
describe
'update an existing Geo Node'
do
before
do
visit
admin_geo_nodes_path
page
.
within
(
find
(
'.node-actions'
,
match: :first
))
do
wait_for_requests
page
.
within
(
find
(
'.geo-node-actions'
,
match: :first
))
do
page
.
click_link
(
'Edit'
)
end
end
...
...
@@ -63,6 +66,7 @@ RSpec.describe 'admin Geo Nodes', type: :feature do
click_button
'Save changes'
expect
(
current_path
).
to
eq
admin_geo_nodes_path
wait_for_requests
page
.
within
(
find
(
'.geo-nodes'
,
match: :first
))
do
expect
(
page
).
to
have_content
(
'http://newsite.com'
)
...
...
@@ -74,14 +78,16 @@ RSpec.describe 'admin Geo Nodes', type: :feature do
describe
'remove an existing Geo Node'
do
before
do
visit
admin_geo_nodes_path
wait_for_requests
end
it
'removes an existing Geo Node'
do
page
.
within
(
find
(
'.node-actions'
,
match: :first
))
do
page
.
within
(
find
(
'.
geo-
node-actions'
,
match: :first
))
do
page
.
click_link
(
'Remove'
)
end
expect
(
current_path
).
to
eq
admin_geo_nodes_path
wait_for_requests
expect
(
page
).
not_to
have_css
(
'.geo-nodes'
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment