Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1606837915-practice
Commits
6a45c2fe
Commit
6a45c2fe
authored
Dec 23, 2019
by
Izzatul Muttaqin
Browse files
Change test
parent
572b264d
Pipeline
#28439
failed with stages
in 35 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
functional_test/tests.py
View file @
6a45c2fe
...
...
@@ -53,6 +53,9 @@ class FunctionalTest(StaticLiveServerTestCase):
rows
=
table
.
find_elements_by_tag_name
(
'tr'
)
self
.
assertIn
(
row_text
,
[
row
.
text
for
row
in
rows
])
def
get_item_input_box
(
self
):
return
self
.
browser
.
find_element_by_id
(
'id_new_item'
)
@
wait
def
wait_for
(
self
,
fn
):
return
fn
()
...
...
@@ -64,7 +67,8 @@ class FunctionalTest(StaticLiveServerTestCase):
self
.
assertIn
(
row_text
,
[
row
.
text
for
row
in
rows
])
@
wait
def
wait_for_row_not_in_list_table
_to
(
self
,
row_text
):
def
wait_for_row_not_in_list_table
(
self
,
row_text
):
table
=
self
.
browser
.
find_element_by_id
(
'id_list_table'
)
rows
=
table
.
find_elements_by_tag_name
(
'tr'
)
self
.
assertNotIn
(
row_text
,
[
row
.
text
for
row
in
rows
])
\ No newline at end of file
self
.
assertNotIn
(
row_text
,
[
row
.
text
for
row
in
rows
])
\ No newline at end of file
Write
Preview
Supports
Markdown
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