Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-12 13:41:24 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-14 14:48:16 +0300
commitcde455c4e63c8c0e798562a29a5df5a7893eec95 (patch)
tree7f0e17807cfcbb4c89355227cf8c758ae82382d5 /features/steps
parent487b0a026f9efe2d8214c19a7b95b391708ba3f4 (diff)
Add encoding feature tests for builds artifacts browser
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/project/builds.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/features/steps/project/builds.rb b/features/steps/project/builds.rb
index 5ee6226a522..12d0dd24427 100644
--- a/features/steps/project/builds.rb
+++ b/features/steps/project/builds.rb
@@ -45,4 +45,34 @@ class Spinach::Features::ProjectBuilds < Spinach::FeatureSteps
expect(page).to have_content 'doc_sample.txt'
end
end
+
+ step 'recent build artifacts contain directory with UTF-8 characters' do
+ # metadata fixture contains relevant directory
+ end
+
+ step 'I navigate to directory with UTF-8 characters in name' do
+ page.within('.tree-table') { click_link 'tests_encoding' }
+ page.within('.tree-table') { click_link 'utf8 test dir ✓' }
+ end
+
+ step 'I should see content of directory with UTF-8 characters in name' do
+ page.within('.tree-table') do
+ expect(page).to have_content '..'
+ expect(page).to have_content 'regular_file_2'
+ end
+ end
+
+ step 'recent build artifacts contain directory with invalid UTF-8 characters' do
+ # metadata fixture contains relevant directory
+ end
+
+ step 'I navigate to parent directory of directory with invalid name' do
+ page.within('.tree-table') { click_link 'tests_encoding' }
+ end
+
+ step 'I should not see directory with invalid name on the list' do
+ page.within('.tree-table') do
+ expect(page).to have_no_content('non-utf8-dir')
+ end
+ end
end