Skip to content

Commit

Permalink
Increase delays in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loujine committed Jan 29, 2022
1 parent bf029c2 commit 03aff09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions tests/test_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ def test_script_count_alias(self):
def test_script_acousticbrainz_dataset(self):
self.login('work', WORK_MBID)
self.load_userscript('mb-display_acousticbrainz_dataset_for_work.user.js')
time.sleep(1)
assert self.driver.find_element_by_id('loujine-sidebar')
btn = self.driver.find_element_by_id('showABids')
btn.click()
time.sleep(5)
headers = self.driver.find_elements_by_css_selector('th')
assert 'ABrainz' in [h.text for h in headers]
datasets = self.driver.find_elements_by_css_selector("a[href*='/acousticbrainz.org/']")
Expand Down
8 changes: 4 additions & 4 deletions tests/test_reledit.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ def test_script_clone_multi_sources(self):
self.driver.find_element_by_id('cloneExtRecording').send_keys(RECORDING_URL)
time.sleep(5)
self.driver.find_element_by_id('cloneAR').click()
time.sleep(3)
time.sleep(5)
self.driver.find_elements_by_css_selector('td.recording input')[0].click()
self.driver.find_element_by_id('cloneExtRecording').clear()

self.driver.find_elements_by_css_selector('td.recording input')[1].click()
self.driver.find_element_by_id('cloneExtRecording').send_keys(RECORDING2_URL)
time.sleep(5)
self.driver.find_element_by_id('cloneAR').click()
time.sleep(3)
time.sleep(5)
self.driver.find_element_by_id('cloneExtRecording').clear()

# trigger autocomplete
Expand Down Expand Up @@ -104,7 +104,7 @@ def test_script_clone_release_relations(self):
self.driver.find_element_by_id('cloneExtRelease').send_keys(RELEASE_RELS_URL)
time.sleep(3)
self.driver.find_element_by_id('cloneReleaseAR').click()
time.sleep(3)
time.sleep(5)
assert len(self.driver.find_elements_by_css_selector('#release-rels div.ar')) == 1

def test_script_clone_GH_28(self):
Expand Down Expand Up @@ -159,7 +159,7 @@ def test_script_guess_works(self):

self.driver.find_element_by_css_selector('td.recording input').click()
self.driver.find_element_by_id('searchWork').click()
time.sleep(4)
time.sleep(5)
assert len(self.driver.find_elements_by_css_selector('td.works > div.ar')) == 1

def test_script_guess_main_works(self):
Expand Down

0 comments on commit 03aff09

Please sign in to comment.