Skip to content

Commit

Permalink
fix attempt for random async test issues (#1492, #1732, #1755)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Aug 28, 2023
1 parent 8af32ec commit b72a963
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion landingzones/tests/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _assert_btn_enabled(self, element, expected=True):

def _wait_for_status_update(self):
"""Wait for JQuery landing zone status updates to finish"""
for i in range(0, 5):
for i in range(0, 10):
if self.selenium.execute_script('return window.zoneStatusUpdated'):
return
time.sleep(0.5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ describe('IrodsButtonsRenderer.vue', () => {
it('renders irods buttons for an assay table', async () => {
const wrapper = mountSheetTable()
await waitAG(wrapper)
await waitNT(wrapper.vm)
await waitRAF()
await waitSelector(wrapper, '.sodar-ss-data-links-cell', 2)

Expand Down
2 changes: 2 additions & 0 deletions samplesheets/vueapp/tests/unit/IrodsStatsBadge.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ describe('IrodsStatsBadge.vue', () => {
}

beforeAll(() => {
// NOTE: Workaround for bootstrap-vue "Vue warn" errors, see issue #1034
jest.spyOn(console, 'error').mockImplementation(jest.fn())
// Disable warnings
jest.spyOn(console, 'warn').mockImplementation(jest.fn())
})
Expand Down

0 comments on commit b72a963

Please sign in to comment.