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
cc7cce9c
Commit
cc7cce9c
authored
Oct 06, 2020
by
samdbeckham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates the specs that were looking for old btns
Ran another find + Replace on the specs
parent
92ed4027
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
11 deletions
+11
-11
ee/spec/views/shared/issuable/_approvals.html.haml_spec.rb
ee/spec/views/shared/issuable/_approvals.html.haml_spec.rb
+1
-1
spec/features/admin/admin_groups_spec.rb
spec/features/admin/admin_groups_spec.rb
+1
-1
spec/features/groups/members/leave_group_spec.rb
spec/features/groups/members/leave_group_spec.rb
+1
-1
spec/features/groups/members/manage_groups_spec.rb
spec/features/groups/members/manage_groups_spec.rb
+1
-1
spec/features/projects/branches/user_deletes_branch_spec.rb
spec/features/projects/branches/user_deletes_branch_spec.rb
+1
-1
spec/features/projects/branches_spec.rb
spec/features/projects/branches_spec.rb
+2
-2
spec/features/projects/environments/environment_spec.rb
spec/features/projects/environments/environment_spec.rb
+1
-1
spec/features/projects/members/groups_with_access_list_spec.rb
...features/projects/members/groups_with_access_list_spec.rb
+1
-1
spec/features/projects/members/list_spec.rb
spec/features/projects/members/list_spec.rb
+1
-1
spec/features/protected_branches_spec.rb
spec/features/protected_branches_spec.rb
+1
-1
No files found.
ee/spec/views/shared/issuable/_approvals.html.haml_spec.rb
View file @
cc7cce9c
...
...
@@ -76,7 +76,7 @@ RSpec.describe 'shared/issuable/_approvals.html.haml' do
render
'shared/issuable/approvals'
,
form:
form
,
issuable:
merge_request
,
presenter:
presenter
expect
(
rendered
).
not_to
have_css
(
'.btn-
remove
'
)
expect
(
rendered
).
not_to
have_css
(
'.btn-
danger
'
)
end
end
end
...
...
spec/features/admin/admin_groups_spec.rb
View file @
cc7cce9c
...
...
@@ -194,7 +194,7 @@ RSpec.describe 'Admin Groups' do
expect
(
page
).
to
have_content
(
'Developer'
)
end
accept_confirm
{
find
(
:css
,
'li'
,
text:
current_user
.
name
).
find
(
:css
,
'a.btn-
remove
'
).
click
}
accept_confirm
{
find
(
:css
,
'li'
,
text:
current_user
.
name
).
find
(
:css
,
'a.btn-
danger
'
).
click
}
visit
group_group_members_path
(
group
)
...
...
spec/features/groups/members/leave_group_spec.rb
View file @
cc7cce9c
...
...
@@ -70,7 +70,7 @@ RSpec.describe 'Groups > Members > Leave group' do
visit
group_group_members_path
(
group
)
expect
(
find
(
:css
,
'.project-members-page li'
,
text:
user
.
name
)).
not_to
have_selector
(
:css
,
'a.btn-
remove
'
)
expect
(
find
(
:css
,
'.project-members-page li'
,
text:
user
.
name
)).
not_to
have_selector
(
:css
,
'a.btn-
danger
'
)
end
it
'owner can not leave the group by url param if they are the last owner'
,
:js
do
...
...
spec/features/groups/members/manage_groups_spec.rb
View file @
cc7cce9c
...
...
@@ -64,7 +64,7 @@ RSpec.describe 'Groups > Members > Manage groups', :js do
expect
(
page
).
to
have_content
(
shared_with_group
.
name
)
accept_confirm
do
find
(
:css
,
'#tab-groups li'
,
text:
shared_with_group
.
name
).
find
(
:css
,
'a.btn-
remove
'
).
click
find
(
:css
,
'#tab-groups li'
,
text:
shared_with_group
.
name
).
find
(
:css
,
'a.btn-
danger
'
).
click
end
expect
(
page
).
not_to
have_content
(
shared_with_group
.
name
)
...
...
spec/features/projects/branches/user_deletes_branch_spec.rb
View file @
cc7cce9c
...
...
@@ -17,7 +17,7 @@ RSpec.describe "User deletes branch", :js do
fill_in
(
"branch-search"
,
with:
"improve/awesome"
).
native
.
send_keys
(
:enter
)
page
.
within
(
".js-branch-improve
\\
/awesome"
)
do
accept_alert
{
find
(
".btn-
remove
"
).
click
}
accept_alert
{
find
(
".btn-
danger
"
).
click
}
end
wait_for_requests
...
...
spec/features/projects/branches_spec.rb
View file @
cc7cce9c
...
...
@@ -101,7 +101,7 @@ RSpec.describe 'Branches' do
visit
project_branches_filtered_path
(
project
,
state:
'all'
)
expect
(
all
(
'.all-branches'
).
last
).
to
have_selector
(
'li'
,
count:
20
)
accept_confirm
{
first
(
'.js-branch-item .btn-
remove
'
).
click
}
accept_confirm
{
first
(
'.js-branch-item .btn-
danger
'
).
click
}
expect
(
all
(
'.all-branches'
).
last
).
to
have_selector
(
'li'
,
count:
19
)
end
...
...
@@ -163,7 +163,7 @@ RSpec.describe 'Branches' do
expect
(
page
).
to
have_content
(
'fix'
)
expect
(
find
(
'.all-branches'
)).
to
have_selector
(
'li'
,
count:
1
)
accept_confirm
{
find
(
'.js-branch-fix .btn-
remove
'
).
click
}
accept_confirm
{
find
(
'.js-branch-fix .btn-
danger
'
).
click
}
expect
(
page
).
not_to
have_content
(
'fix'
)
expect
(
find
(
'.all-branches'
)).
to
have_selector
(
'li'
,
count:
0
)
...
...
spec/features/projects/environments/environment_spec.rb
View file @
cc7cce9c
...
...
@@ -333,7 +333,7 @@ RSpec.describe 'Environment' do
visit
project_branches_filtered_path
(
project
,
state:
'all'
,
search:
'feature'
)
remove_branch_with_hooks
(
project
,
user
,
'feature'
)
do
page
.
within
(
'.js-branch-feature'
)
{
find
(
'a.btn-
remove
'
).
click
}
page
.
within
(
'.js-branch-feature'
)
{
find
(
'a.btn-
danger
'
).
click
}
end
visit_environment
(
environment
)
...
...
spec/features/projects/members/groups_with_access_list_spec.rb
View file @
cc7cce9c
...
...
@@ -64,7 +64,7 @@ RSpec.describe 'Projects > Members > Groups with access list', :js do
it
'deletes group link'
do
page
.
within
(
first
(
'.group_member'
))
do
accept_confirm
{
find
(
'.btn-
remove
'
).
click
}
accept_confirm
{
find
(
'.btn-
danger
'
).
click
}
end
wait_for_requests
...
...
spec/features/projects/members/list_spec.rb
View file @
cc7cce9c
...
...
@@ -102,7 +102,7 @@ RSpec.describe 'Project members list' do
visit_members_page
expect
(
page
).
not_to
have_selector
(
"#edit_project_member_
#{
project_member
.
id
}
"
)
expect
(
page
).
not_to
have_selector
(
"#project_member_
#{
project_member
.
id
}
.btn-
remove
"
)
expect
(
page
).
not_to
have_selector
(
"#project_member_
#{
project_member
.
id
}
.btn-
danger
"
)
end
end
...
...
spec/features/protected_branches_spec.rb
View file @
cc7cce9c
...
...
@@ -31,7 +31,7 @@ RSpec.describe 'Protected Branches', :js do
fill_in
'branch-search'
,
with:
'fix'
find
(
'#branch-search'
).
native
.
send_keys
(
:enter
)
expect
(
page
).
to
have_css
(
'.btn-
remove
.disabled'
)
expect
(
page
).
to
have_css
(
'.btn-
danger
.disabled'
)
end
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