mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-11 20:29:15 -05:00
Added test_autostop_sharing, test_download
This commit is contained in:
parent
e65d13fb83
commit
39e4aa9b08
@ -471,3 +471,28 @@ class TestShare(GuiBaseTest):
|
||||
self.run_all_share_mode_tests(tab)
|
||||
|
||||
self.close_all_tabs()
|
||||
|
||||
@pytest.mark.gui
|
||||
def test_autostop_sharing(self):
|
||||
"""
|
||||
Autostop sharing after first download
|
||||
"""
|
||||
tab = self.new_share_tab()
|
||||
tab.get_mode().autostop_sharing_checkbox.click()
|
||||
|
||||
self.run_all_common_setup_tests()
|
||||
self.run_all_share_mode_tests(tab)
|
||||
|
||||
self.close_all_tabs()
|
||||
|
||||
@pytest.mark.gui
|
||||
def test_download(self):
|
||||
"""
|
||||
Test downloading in share mode
|
||||
"""
|
||||
tab = self.new_share_tab()
|
||||
|
||||
self.run_all_common_setup_tests()
|
||||
self.run_all_share_mode_tests(tab)
|
||||
|
||||
self.close_all_tabs()
|
||||
|
Loading…
x
Reference in New Issue
Block a user