diff options
| author | Jennifer Louie <canadonut@gmail.com> | 2019-05-16 15:59:47 -0700 |
|---|---|---|
| committer | Sanad Liaquat <sliaquat@gitlab.com> | 2019-05-20 18:25:28 +0500 |
| commit | 170184e37ee346d09381f6303c36e04ab656ab15 (patch) | |
| tree | c0afa4aff32238d99573461b9c5faa6df52660f8 | |
| parent | fdb6334592ad7148e0d23b88df5228699fd59776 (diff) | |
| download | gitlab-ce-170184e37ee346d09381f6303c36e04ab656ab15.tar.gz | |
Remove unused code from Select2 and File Edit page objects
Add # frozen_string_literal: true to CommitButton and File Edit page objects
| -rw-r--r-- | qa/qa/page/component/select2.rb | 4 | ||||
| -rw-r--r-- | qa/qa/page/file/edit.rb | 3 | ||||
| -rw-r--r-- | qa/qa/page/file/shared/commit_button.rb | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/qa/qa/page/component/select2.rb b/qa/qa/page/component/select2.rb index 69ae41dd57c..85d4abcde9b 100644 --- a/qa/qa/page/component/select2.rb +++ b/qa/qa/page/component/select2.rb @@ -22,10 +22,6 @@ module QA def expand_select_list find('span.select2-arrow').click end - - def selected_option - find('.select2-chosen').text - end end end end diff --git a/qa/qa/page/file/edit.rb b/qa/qa/page/file/edit.rb index 6fb0960eba3..3a4a1837b1c 100644 --- a/qa/qa/page/file/edit.rb +++ b/qa/qa/page/file/edit.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module QA module Page module File @@ -5,7 +7,6 @@ module QA include Shared::CommitMessage include Shared::CommitButton include Shared::Editor - # view 'app/views/projects/blob/_editor.html.haml' end end end diff --git a/qa/qa/page/file/shared/commit_button.rb b/qa/qa/page/file/shared/commit_button.rb index 6d44dc8578d..d8e751dd7b6 100644 --- a/qa/qa/page/file/shared/commit_button.rb +++ b/qa/qa/page/file/shared/commit_button.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module QA module Page module File |
