1
1
import re
2
2
3
- from selenium .webdriver .common .by import By
4
3
from selenium .webdriver .common .keys import Keys
5
- from selenium .webdriver .support import expected_conditions as EC
6
- from selenium .webdriver .support .ui import WebDriverWait
7
4
8
5
import markers
9
6
import settings
10
- from api import osf_api
11
7
from components .accessibility import ApplyA11yRules as a11y
12
8
from components .email_access import EmailAccess
13
9
from pages .dashboard import DashboardPage
14
10
from pages .landing import LandingPage
15
11
from pages .login import ForgotPasswordPage , ResetPasswordPage
16
12
from pages .project import MyProjectsPage
17
- from pages .quickfiles import QuickfileDetailPage , QuickfilesPage
18
13
from pages .register import RegisterPage
19
14
from pages .search import SearchPage
20
15
from pages .support import SupportPage
@@ -60,6 +55,7 @@ def test_accessibility(
60
55
my_projects_page = MyProjectsPage (driver )
61
56
my_projects_page .goto ()
62
57
assert MyProjectsPage (driver , verify = True )
58
+ my_projects_page .empty_collection_indicator .present ()
63
59
a11y .run_axe (
64
60
driver ,
65
61
session ,
@@ -69,56 +65,6 @@ def test_accessibility(
69
65
)
70
66
71
67
72
- @markers .ember_page
73
- class TestMyQuickFilesPage :
74
- def test_accessibility (
75
- self , driver , session , write_files , exclude_best_practice , must_be_logged_in
76
- ):
77
- """ The Quick Files Page may or may not have any files listed depending on the
78
- current user. Users in the testing environment probably will, but the Production
79
- user may not.
80
- """
81
- quickfiles_page = QuickfilesPage (driver )
82
- quickfiles_page .goto ()
83
- quickfiles_page .loading_indicator .here_then_gone ()
84
- assert QuickfilesPage (driver , verify = True )
85
- a11y .run_axe (
86
- driver ,
87
- session ,
88
- 'quickfiles' ,
89
- write_files = write_files ,
90
- exclude_best_practice = exclude_best_practice ,
91
- )
92
-
93
-
94
- @markers .ember_page
95
- # For this next test we are uploading a text file to the user's Quick Files page so we
96
- # don't want to run this in Production.
97
- @markers .dont_run_on_prod
98
- class TestMyQuickFileDetailPage :
99
- def test_accessibility (
100
- self , driver , session , write_files , exclude_best_practice , must_be_logged_in
101
- ):
102
- osf_api .upload_single_quickfile (session )
103
- quickfiles_page = QuickfilesPage (driver )
104
- quickfiles_page .goto ()
105
- quickfiles_page .loading_indicator .here_then_gone ()
106
- # click on title of file in table to open the Quick File Detail page
107
- quickfiles_page .file_titles [0 ].click ()
108
- assert QuickfileDetailPage (driver , verify = True )
109
- # wait for mfr iframe to be visible before running axe
110
- WebDriverWait (driver , 10 ).until (
111
- EC .visibility_of_element_located ((By .ID , 'mfrIframeParent' ))
112
- )
113
- a11y .run_axe (
114
- driver ,
115
- session ,
116
- 'qfiledet' ,
117
- write_files = write_files ,
118
- exclude_best_practice = exclude_best_practice ,
119
- )
120
-
121
-
122
68
@markers .ember_page
123
69
class TestRegisterPage :
124
70
def test_accessibility (self , driver , session , write_files , exclude_best_practice ):
0 commit comments