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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-08-18 13:50:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-08-18 13:50:51 +0300
commitdb384e6b19af03b4c3c82a5760d83a3fd79f7982 (patch)
tree34beaef37df5f47ccbcf5729d7583aae093cffa0 /spec/support/shared_examples/features/variable_list_drawer_shared_examples.rb
parent54fd7b1bad233e3944434da91d257fa7f63c3996 (diff)
Add latest changes from gitlab-org/gitlab@16-3-stable-eev16.3.0-rc42
Diffstat (limited to 'spec/support/shared_examples/features/variable_list_drawer_shared_examples.rb')
-rw-r--r--spec/support/shared_examples/features/variable_list_drawer_shared_examples.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/support/shared_examples/features/variable_list_drawer_shared_examples.rb b/spec/support/shared_examples/features/variable_list_drawer_shared_examples.rb
new file mode 100644
index 00000000000..9f01c69608d
--- /dev/null
+++ b/spec/support/shared_examples/features/variable_list_drawer_shared_examples.rb
@@ -0,0 +1,23 @@
+# frozen_string_literal: true
+
+RSpec.shared_examples 'variable list drawer' do
+ it 'adds a new CI variable' do
+ click_button('Add variable')
+
+ # For now, we just check that the drawer is displayed
+ expect(page).to have_selector('[data-testid="ci-variable-drawer"]')
+
+ # TODO: Add tests for ADDING a variable via drawer when feature is available
+ end
+
+ it 'edits a variable' do
+ page.within('[data-testid="ci-variable-table"]') do
+ click_button('Edit')
+ end
+
+ # For now, we just check that the drawer is displayed
+ expect(page).to have_selector('[data-testid="ci-variable-drawer"]')
+
+ # TODO: Add tests for EDITING a variable via drawer when feature is available
+ end
+end