@@ -627,10 +627,10 @@ def test_440_tns_run_android_new_date_work_as_expected_when_changing_timezone(se
627
627
period = 5 )
628
628
assert test_result , "Select time zone Button is missing on the device"
629
629
Device .click (self .emulator , text = "Select time zone" )
630
- test_result = Wait .until (lambda : Device .is_text_visible (self .emulator , "Pacific Daylight Time " , True ),
630
+ test_result = Wait .until (lambda : Device .is_text_visible (self .emulator , "Los Angeles " , True ),
631
631
timeout = 30 , period = 5 )
632
- assert test_result , "Pacific Daylight Time Button is missing on the device"
633
- Device .click (self .emulator , text = "Pacific Daylight Time " )
632
+ assert test_result , "Los Angeles Button is missing on the device. "
633
+ Device .click (self .emulator , text = "Los Angeles " )
634
634
635
635
else :
636
636
output = Adb .run_adb_command ("shell am start -a android.settings.DATE_SETTINGS" , self .emulator .id ,
@@ -654,10 +654,10 @@ def test_440_tns_run_android_new_date_work_as_expected_when_changing_timezone(se
654
654
period = 5 )
655
655
assert test_result , "TAP Button is missing on the device"
656
656
Device .click (self .emulator , text = "TAP" , case_sensitive = True )
657
- assert_result = Wait .until (lambda : "GMT-0700 (PDT )" in File .read (log .log_file ), timeout = 240 , period = 5 )
657
+ assert_result = Wait .until (lambda : "GMT-0800 (PST )" in File .read (log .log_file ), timeout = 240 , period = 5 )
658
658
assert assert_result , "Missing log for time! Logs: " + File .read (log .log_file )
659
659
# Generate regex for asserting date and time
660
- date_to_find_los_angeles = los_angeles_time .strftime (r'%a %b %d %Y %H:.{2}:.{2}' ) + r" GMT\-0700 \(PDT \)"
660
+ date_to_find_los_angeles = los_angeles_time .strftime (r'%a %b %d %Y %H:.{2}:.{2}' ) + r" GMT\-0800 \(PST \)"
661
661
# Assert date time is correct
662
662
assert_result = Wait .until (lambda : re .search (date_to_find_los_angeles , File .read (log .log_file )), timeout = 20 ,
663
663
period = 5 )
0 commit comments