File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed
staff_features/accessions/step_definitions Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change 21
21
22
22
find ( '#filter-text' ) . send_keys ( :enter )
23
23
24
- rows = all ( 'tr' , text : @uuid )
25
- expect ( rows . length ) . to eq 1
26
- end
24
+ rows = [ ]
25
+ checks = 0
27
26
28
- When 'the user clicks on the checkbox of the Accession' do
29
- table_row = find ( 'tr' , text : @uuid , match : :first )
27
+ while checks < 5
28
+ checks += 1
30
29
31
- within table_row do
32
- check 'multiselect-item'
30
+ begin
31
+ rows = all ( 'tr' , text : @uuid )
32
+ rescue Selenium ::WebDriver ::Error ::JavascriptError
33
+ sleep 1
34
+ end
35
+
36
+ if rows . length == 1
37
+ break
38
+ end
33
39
end
40
+ end
34
41
35
- # expect(find('button', text: 'Delete').disabled?).to eq false
42
+ When 'the user clicks on the checkbox of the Accession' do
43
+ find ( '#multiselect-item' ) . check
36
44
end
37
45
38
46
When 'the user confirms the delete action' do
You can’t perform that action at this time.
0 commit comments