Added test_individual_files, test_individual_files_without_autostop_sharing

This commit is contained in:
Micah Lee 2019-11-09 00:57:25 +08:00
parent e49786451a
commit b681b53420
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -473,9 +473,9 @@ class TestShare(GuiBaseTest):
self.close_all_tabs() self.close_all_tabs()
@pytest.mark.gui @pytest.mark.gui
def test_autostop_sharing(self): def test_without_autostop_sharing(self):
""" """
Autostop sharing after first download Disable autostop sharing after first download
""" """
tab = self.new_share_tab() tab = self.new_share_tab()
tab.get_mode().autostop_sharing_checkbox.click() tab.get_mode().autostop_sharing_checkbox.click()
@ -496,3 +496,28 @@ class TestShare(GuiBaseTest):
self.run_all_share_mode_tests(tab) self.run_all_share_mode_tests(tab)
self.close_all_tabs() self.close_all_tabs()
@pytest.mark.gui
def test_individual_files_without_autostop_sharing(self):
"""
Test downloading individual files with autostop sharing disabled
"""
tab = self.new_share_tab()
tab.get_mode().autostop_sharing_checkbox.click()
self.run_all_common_setup_tests()
self.run_all_share_mode_individual_file_tests(tab)
self.close_all_tabs()
@pytest.mark.gui
def test_individual_files(self):
"""
Test downloading individual files
"""
tab = self.new_share_tab()
self.run_all_common_setup_tests()
self.run_all_share_mode_individual_file_tests(tab)
self.close_all_tabs()