File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 12
12
13
13
context "backtraces are enabled" do
14
14
before do
15
- in_advanced_options_menu { choose 'enabled' }
15
+ in_advanced_options_menu { within ( :config_option , 'Backtrace' ) { choose 'On' } }
16
16
within ( :header ) { click_on ( "Run" ) }
17
17
end
18
18
Original file line number Diff line number Diff line change 88
88
css { '[data-test-id = "notification"]' }
89
89
end
90
90
91
+ Capybara . add_selector ( :config_option ) do
92
+ xpath do |label |
93
+ ".//div[span[contains(., '#{ label } ')]]"
94
+ end
95
+ end
96
+
91
97
RSpec . configure do |config |
92
98
config . after ( :example , :js ) do
93
99
page . execute_script <<~JS
Original file line number Diff line number Diff line change @@ -38,8 +38,10 @@ const AdvancedOptionsMenu: React.FC = () => {
38
38
< EitherConfig
39
39
id = "backtrace"
40
40
name = "Backtrace"
41
- a = { Backtrace . Disabled }
42
- b = { Backtrace . Enabled }
41
+ a = { Backtrace . Enabled }
42
+ b = { Backtrace . Disabled }
43
+ aLabel = "On"
44
+ bLabel = "Off"
43
45
value = { backtrace }
44
46
isDefault = { isBacktraceDefault }
45
47
onChange = { changeBacktrace }
You can’t perform that action at this time.
0 commit comments