diff options
author | Markus Koller <mkoller@gitlab.com> | 2019-07-11 20:27:21 +0300 |
---|---|---|
committer | Markus Koller <mkoller@gitlab.com> | 2019-07-12 17:23:00 +0300 |
commit | 60a6074dc977a72e00043596623094e006c84704 (patch) | |
tree | 5a9606f23ad802e073e6974960da19220d64110a /spec/features/projects | |
parent | 21c372827eb0b536d667dd2ae16e5a4930db6300 (diff) |
Open WebIDE in fork when user doesn't have access
When opening the IDE on a project where the user doesn't have push
access, we create a fork and then redirect back to the IDE. To make
sure the user can actually commit, we need to open the IDE in the forked
project rather than the upstream project.
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/files/user_edits_files_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/features/projects/files/user_edits_files_spec.rb b/spec/features/projects/files/user_edits_files_spec.rb index e0fa9dbb5fa..e4b02408b49 100644 --- a/spec/features/projects/files/user_edits_files_spec.rb +++ b/spec/features/projects/files/user_edits_files_spec.rb @@ -162,6 +162,7 @@ describe 'Projects > Files > User edits files', :js do expect_fork_status + expect(page).to have_css('.ide-sidebar-project-title', text: "#{project2.name} #{user.namespace.full_path}/#{project2.path}") expect(page).to have_css('.ide .multi-file-tab', text: '.gitignore') end |