Added test_autostop_sharing, test_download

This commit is contained in:
Micah Lee 2019-11-09 00:53:03 +08:00
parent e65d13fb83
commit 39e4aa9b08

View File

@ -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()