fix: correct MassHealth date format and update procedure combo labels
- Fix Selenium using today's date instead of selected service date; convert YYYY-MM-DD from frontend to MM/DD/YYYY for MassHealth input - Rename "New Patient (Limited exam+Pano)" → "Patient (Limited exam+Pano)" - Rename "New Adult Patient (Limited exam+1PA)" → "Patient (Limited exam+1PA)" - Add "Patient (D9110+1PA)" combo with codes D9110, D0220 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -214,9 +214,12 @@ class AutomationMassHealthClaimsLogin:
|
||||
wait = WebDriverWait(self.driver, 30)
|
||||
|
||||
try:
|
||||
# For now, just use today's date to avoid parsing issues
|
||||
formatted_date = datetime.now().strftime("%m/%d/%Y")
|
||||
print(f"DEBUG: Using today's date = '{formatted_date}'")
|
||||
raw_date = self.submissionDate if self.submissionDate else datetime.now().strftime("%Y-%m-%d")
|
||||
try:
|
||||
formatted_date = datetime.strptime(raw_date.strip(), "%Y-%m-%d").strftime("%m/%d/%Y")
|
||||
except ValueError:
|
||||
formatted_date = raw_date # already in another format, use as-is
|
||||
print(f"DEBUG: Using service date = '{formatted_date}'")
|
||||
|
||||
# Step 1: Wait for the Date of Service input to be visible
|
||||
date_input = wait.until(
|
||||
|
||||
Reference in New Issue
Block a user