@@ -19,11 +19,11 @@ def _timed_translation(home):
1919def test_codegen_golden_path (login_logout , request ):
2020 """
2121 CodeMod- Validate Golden path works as expected
22-
22+
2323 Executes golden path test steps for Modernize Your Code Accelerator with detailed logging.
2424 """
2525 request .node ._nodeid = "Modernize your code- Validate Golden path works as expected"
26-
26+
2727 page = login_logout
2828 home = HomePage (page )
2929
@@ -53,12 +53,12 @@ def test_codegen_golden_path(login_logout, request):
5353def test_upload_all_files_and_navigate_home (login_logout , request ):
5454 """
5555 CodeMod- Validate upload all files, verify count, and navigate to home page
56-
56+
5757 Test case that uploads all files from testdata folder, validates the uploaded
5858 files count is 20, and navigates back to home page.
5959 """
6060 request .node ._nodeid = "Modernize your code - Validate Files uploading and its limit."
61-
61+
6262 page = login_logout
6363 home = HomePage (page )
6464
@@ -80,15 +80,16 @@ def test_upload_all_files_and_navigate_home(login_logout, request):
8080 logger .error (f"Step failed: { description } " , exc_info = True )
8181 raise
8282
83+
8384def test_translate_and_download_files (login_logout , request ):
8485 """
8586 Modernize your code - Translating the files and downloading files
86-
87+
8788 Test case that executes the complete translation workflow: upload files,
8889 translate them, and download the results with detailed logging.
8990 """
9091 request .node ._nodeid = "Modernize your code - Translating the files and downloading files"
91-
92+
9293 page = login_logout
9394 home = HomePage (page )
9495
@@ -114,16 +115,15 @@ def test_translate_and_download_files(login_logout, request):
114115 raise
115116
116117
117-
118118def test_upload_remove_files_and_cancel (login_logout , request ):
119119 """
120120 CodeMod- Validate upload files, remove files, and cancel upload
121-
121+
122122 Test case that uploads 20 files from testdata folder, removes the first three files,
123123 validates the remaining count is 17, and then cancels the upload process.
124124 """
125125 request .node ._nodeid = "Modernize your code - Validate Single and Batch deletion of Files."
126-
126+
127127 page = login_logout
128128 home = HomePage (page )
129129
@@ -150,12 +150,12 @@ def test_upload_remove_files_and_cancel(login_logout, request):
150150def test_delete_batch_history (login_logout , request ):
151151 """
152152 CodeMod- Validate delete batch history functionality
153-
153+
154154 Test case that executes the golden path flow (upload, translate, download) and then
155155 validates the deletion of the first batch history item.
156156 """
157157 request .node ._nodeid = "Modernize your code - Validate Batch history panel."
158-
158+
159159 page = login_logout
160160 home = HomePage (page )
161161
@@ -184,12 +184,12 @@ def test_delete_batch_history(login_logout, request):
184184def test_upload_unsupported_files_validation (login_logout , request ):
185185 """
186186 CodeMod- Validate unsupported files upload and validation
187-
187+
188188 Test case that uploads all unsupported files from testdata/Unsupported_files folder
189189 and validates that translate button is disabled with detailed logging.
190190 """
191191 request .node ._nodeid = "Modernize your code - Validate Attempt to upload files with an unsupported extension"
192-
192+
193193 page = login_logout
194194 home = HomePage (page )
195195
@@ -210,17 +210,15 @@ def test_upload_unsupported_files_validation(login_logout, request):
210210 raise
211211
212212
213-
214-
215213def test_upload_harmful_file_validation (login_logout , request ):
216214 """
217215 CodeMod- Validate harmful file upload and processing error
218-
216+
219217 Test case that uploads harmful file from testdata/Harmful_file folder,
220218 starts translation, and validates error message and disabled download button.
221219 """
222220 request .node ._nodeid = "Modernize your code - Validate Attempt to upload malicious files"
223-
221+
224222 page = login_logout
225223 home = HomePage (page )
226224
@@ -239,4 +237,4 @@ def test_upload_harmful_file_validation(login_logout, request):
239237 logger .info (f"Step passed: { description } " )
240238 except Exception :
241239 logger .error (f"Step failed: { description } " , exc_info = True )
242- raise
240+ raise
0 commit comments