Spaces:
Sleeping
Sleeping
rmm
commited on
Commit
·
f2147d2
1
Parent(s):
e550397
test: visual workflow test populates email to progress
Browse files- test simulates user filling in the email, and passes correctly.
tests/visual_selenium/test_visual_main.py
CHANGED
|
@@ -208,6 +208,7 @@ class RecorderTest(BaseCase):
|
|
| 208 |
# - setup steps:
|
| 209 |
# - open the app
|
| 210 |
# - upload two images
|
|
|
|
| 211 |
# - validate the data entry
|
| 212 |
# - click the infer button, wait for ML
|
| 213 |
# - the real test steps:
|
|
@@ -228,6 +229,8 @@ class RecorderTest(BaseCase):
|
|
| 228 |
'input[data-testid="stFileUploaderDropzoneInput"]',
|
| 229 |
"\n".join([str(img_f1), str(img_f2)]),
|
| 230 |
)
|
|
|
|
|
|
|
| 231 |
|
| 232 |
# advance to the next step, by clicking the validate button (wait for it first)
|
| 233 |
wait_for_element(self, By.XPATH, "//button//strong[contains(text(), 'Validate')]")
|
|
|
|
| 208 |
# - setup steps:
|
| 209 |
# - open the app
|
| 210 |
# - upload two images
|
| 211 |
+
# - enter author email
|
| 212 |
# - validate the data entry
|
| 213 |
# - click the infer button, wait for ML
|
| 214 |
# - the real test steps:
|
|
|
|
| 229 |
'input[data-testid="stFileUploaderDropzoneInput"]',
|
| 230 |
"\n".join([str(img_f1), str(img_f2)]),
|
| 231 |
)
|
| 232 |
+
# enter author email
|
| 233 |
+
self.type('input[aria-label="Author Email"]', "happy@whalespotter.org\n")
|
| 234 |
|
| 235 |
# advance to the next step, by clicking the validate button (wait for it first)
|
| 236 |
wait_for_element(self, By.XPATH, "//button//strong[contains(text(), 'Validate')]")
|