blob: 9f01c69608dc9bd63d30478cb706d55a63ac3f31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|