Commit bb69197 1 parent 8427137 commit bb69197 Copy full SHA for bb69197
File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 86
86
end
87
87
end
88
88
89
+ it 'does not cause duplication when using browser back' do
90
+ RailsAdmin . config Player do
91
+ field :name
92
+ end
93
+
94
+ visit index_path ( model_name : 'player' , f : { name : { '1' => { v : 'a' } } } )
95
+ find ( %([href$="/admin/player/export"]) ) . click
96
+ is_expected . to have_content 'Export Players'
97
+ page . go_back
98
+ is_expected . to have_content 'List of Players'
99
+ expect ( all ( :css , '#filters_box div.filter' ) . count ) . to eq 1
100
+ end
101
+
89
102
describe 'for boolean field' do
90
103
before do
91
104
RailsAdmin . config FieldTest do
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ import flatpickr from "flatpickr";
172
172
}
173
173
174
174
var filterContainerId = field_name + "-" + index + "-filter-container" ;
175
- $ ( "p #" + filterContainerId ) . remove ( ) ;
175
+ $ ( "#" + filterContainerId ) . remove ( ) ;
176
176
177
177
var $content = $ ( "<div>" )
178
178
. attr ( "id" , filterContainerId )
You can’t perform that action at this time.
0 commit comments