Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
d295c176
Commit
d295c176
authored
Jul 17, 2018
by
Ryan Herbert
Browse files
test_003_sample.rb add edit test
parent
943a57a4
Changes
1
Show whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/tests/functional/test_003_sample.rb
View file @
d295c176
...
...
@@ -77,6 +77,29 @@ class TestSampleSet < BrowserTest
assert
(
lines
.
count
==
num_additional_files
+
1
)
end
def
test_002_edit
table
=
go_to_first_set
lines
=
table
.
tbody
.
rows
lines
[
0
].
wait_until_present
cell
=
lines
[
0
].
td
(
:class
=>
"pointer"
)
cell
.
i
(
:class
=>
"icon-pencil-2"
).
click
form
=
$b
.
form
(
:id
=>
"upload_form"
)
form
.
wait_until_present
form
.
text_field
(
:id
=>
"file_info_0"
).
set
(
"#edited"
)
form
.
input
(
:type
=>
"submit"
).
click
table
=
$b
.
table
(
:id
=>
"table"
)
table
.
wait_until_present
Watir
::
Wait
.
until
(
30
)
{
$b
.
execute_script
(
"return jQuery.active"
)
==
0
}
lines
=
table
.
tbody
.
rows
lines
[
2
].
wait_until_present
assert
(
$b
.
link
(
:text
=>
"#edited"
).
present?
)
end
def
test_zz_close
close_everything
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment