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
1606836976-practice
Commits
ed4d19e0
Commit
ed4d19e0
authored
Oct 16, 2019
by
Yumna Pratista
Browse files
edited gecko
parent
158df638
Pipeline
#23299
failed with stages
in 7 minutes and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
functional_tests/base.py
View file @
ed4d19e0
...
...
@@ -8,14 +8,14 @@ MAX_WAIT = 10
class
FunctionalTest
(
StaticLiveServerTestCase
):
def
setUp
(
self
):
#
chrome_options = Options()
#
chrome_options.add_argument('--dns-prefatch-disable')
#
chrome_options.add_argument('--no-sandbox')
#
chrome_options.add_argument('--headless')
#
chrome_options.add_argument('--disable-gpu')
chrome_options
=
Options
()
chrome_options
.
add_argument
(
'--dns-prefatch-disable'
)
chrome_options
.
add_argument
(
'--no-sandbox'
)
chrome_options
.
add_argument
(
'--headless'
)
chrome_options
.
add_argument
(
'--disable-gpu'
)
#
self.browser = webdriver.Chrome('./chromedriver', chrome_options=chrome_options)
self
.
browser
=
webdriver
.
Firefox
()
self
.
browser
=
webdriver
.
Chrome
(
'./chromedriver'
,
chrome_options
=
chrome_options
)
#
self.browser = webdriver.Firefox()
# self.browser.implicitly_wait(20)
def
tearDown
(
self
):
...
...
functional_tests/test_simple_list_creation.py
View file @
ed4d19e0
...
...
@@ -60,14 +60,14 @@ class NewVisitorTest(FunctionalTest):
# We use a new browser session to make sure that no information
# of Edith's is coming through from cookies etc
self
.
browser
.
quit
()
#
chrome_options = Options()
#
chrome_options.add_argument('--dns-prefatch-disable')
#
chrome_options.add_argument('--no-sandbox')
#
chrome_options.add_argument('--headless')
#
chrome_options.add_argument('--disable-gpu')
#
self.browser = webdriver.Chrome('./chromedriver', chrome_options=chrome_options)
self
.
browser
=
webdriver
.
Firefox
()
chrome_options
=
Options
()
chrome_options
.
add_argument
(
'--dns-prefatch-disable'
)
chrome_options
.
add_argument
(
'--no-sandbox'
)
chrome_options
.
add_argument
(
'--headless'
)
chrome_options
.
add_argument
(
'--disable-gpu'
)
self
.
browser
=
webdriver
.
Chrome
(
'./chromedriver'
,
chrome_options
=
chrome_options
)
#
self.browser = webdriver.Firefox()
# Francis visits the home page. There is no sign of Edith's
# list
self
.
browser
.
get
(
self
.
live_server_url
)
...
...
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