add screenshot decorators

This commit is contained in:
Oleg Zharkov
2020-12-14 16:51:37 +01:00
parent 74a2e431e8
commit f5501c4b97
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -1,4 +1,5 @@
import os
import pytest
from selenium.webdriver.common.keys import Keys
@@ -110,6 +111,7 @@ class UploadsTestCase(SeleniumTestCase, UsesHistoryItemAssertions):
self.history_panel_wait_for_hid_hidden(2)
@selenium_test
@pytest.mark.local_screenshotting
def test_rules_example_1_datasets(self):
# Test case generated for:
# https://www.ebi.ac.uk/ena/data/view/PRJDA60709
@@ -148,6 +150,7 @@ PRJDA60709 SAMD00016382 DRX000480 ftp.sra.ebi.ac.uk/vol1/fastq/DRR000/DRR0
# self.screenshot("rules_example_1_6_download_complete")
@selenium_test
@pytest.mark.local_screenshotting
def test_rules_example_2_list(self):
self.perform_upload(self.get_filename("rules/PRJDA60709.tsv"))
self.history_panel_wait_for_hid_ok(1)
@@ -173,6 +176,7 @@ PRJDA60709 SAMD00016382 DRX000480 ftp.sra.ebi.ac.uk/vol1/fastq/DRR000/DRR0
# self.screenshot("rules_example_2_5_download_complete")
@selenium_test
@pytest.mark.local_screenshotting
def test_rules_example_3_list_pairs(self):
self.perform_upload(self.get_filename("rules/PRJDB3920.tsv"))
self.history_panel_wait_for_hid_ok(1)
+1
View File
@@ -6,3 +6,4 @@ python_paths = lib
markers =
data_manager: marks test as a data_manager test
tool: marks test as a tool test
screenshot: marks test as a screenshot producer