@@ -524,7 +524,7 @@ public function testSingleChoiceWithNonRequiredEmptyValue()
524
524
[@name="name"]
525
525
[not(@required)]
526
526
[
527
- ./option[@value=""][not(@selected)][.="[trans]Select&Anything&Not&Me[/trans]"]
527
+ ./option[@value=""][not(@selected)][@disabled][ .="[trans]Select&Anything&Not&Me[/trans]"]
528
528
/following-sibling::option[@value="&a"][@selected="selected"][.="[trans]Choice&A[/trans]"]
529
529
/following-sibling::option[@value="&b"][not(@selected)][.="[trans]Choice&B[/trans]"]
530
530
]
@@ -548,7 +548,7 @@ public function testSingleChoiceRequiredWithEmptyValue()
548
548
[@name="name"]
549
549
[@required="required"]
550
550
[
551
- ./option[@value=""][.="[trans]Test&Me[/trans]"]
551
+ ./option[@value=""][not(@selected)][@disabled][ .="[trans]Test&Me[/trans]"]
552
552
/following-sibling::option[@value="&a"][@selected="selected"][.="[trans]Choice&A[/trans]"]
553
553
/following-sibling::option[@value="&b"][not(@selected)][.="[trans]Choice&B[/trans]"]
554
554
]
@@ -571,7 +571,7 @@ public function testSingleChoiceRequiredWithEmptyValueViaView()
571
571
[@name="name"]
572
572
[@required="required"]
573
573
[
574
- ./option[@value=""][.="[trans][/trans]"]
574
+ ./option[@value=""][not(@selected)][@disabled][ .="[trans][/trans]"]
575
575
/following-sibling::option[@value="&a"][@selected="selected"][.="[trans]Choice&A[/trans]"]
576
576
/following-sibling::option[@value="&b"][not(@selected)][.="[trans]Choice&B[/trans]"]
577
577
]
@@ -790,7 +790,7 @@ public function testCountryWithEmptyValue()
790
790
$ this ->assertWidgetMatchesXpath ($ form ->createView (), array (),
791
791
'/select
792
792
[@name="name"]
793
- [./option[@value=""][not(@selected)][.="[trans]Select&Country[/trans]"]]
793
+ [./option[@value=""][not(@selected)][@disabled][ .="[trans]Select&Country[/trans]"]]
794
794
[./option[@value="AT"][@selected="selected"][.="[trans]Austria[/trans]"]]
795
795
[count(./option)>201]
796
796
'
@@ -852,13 +852,13 @@ public function testDateTimeWithEmptyValueGlobal()
852
852
[
853
853
./select
854
854
[@id="name_date_month"]
855
- [./option[@value=""][.="[trans]Change&Me[/trans]"]]
855
+ [./option[@value=""][@selected][@disabled][ .="[trans]Change&Me[/trans]"]]
856
856
/following-sibling::select
857
857
[@id="name_date_day"]
858
- [./option[@value=""][.="[trans]Change&Me[/trans]"]]
858
+ [./option[@value=""][@selected][@disabled][ .="[trans]Change&Me[/trans]"]]
859
859
/following-sibling::select
860
860
[@id="name_date_year"]
861
- [./option[@value=""][.="[trans]Change&Me[/trans]"]]
861
+ [./option[@value=""][@selected][@disabled][ .="[trans]Change&Me[/trans]"]]
862
862
]
863
863
/following-sibling::div
864
864
[@id="name_time"]
@@ -907,10 +907,10 @@ public function testDateTimeWithEmptyValueOnTime()
907
907
[
908
908
./select
909
909
[@id="name_time_hour"]
910
- [./option[@value=""][.="[trans]Change&Me[/trans]"]]
910
+ [./option[@value=""][not(@selected)][@disabled][ .="[trans]Change&Me[/trans]"]]
911
911
/following-sibling::select
912
912
[@id="name_time_minute"]
913
- [./option[@value=""][.="[trans]Change&Me[/trans]"]]
913
+ [./option[@value=""][not(@selected)][@disabled][ .="[trans]Change&Me[/trans]"]]
914
914
]
915
915
]
916
916
[count(.//select)=5]
@@ -1063,13 +1063,13 @@ public function testDateChoiceWithEmptyValueGlobal()
1063
1063
[
1064
1064
./select
1065
1065
[@id="name_month"]
1066
- [./option[@value=""][.="[trans]Change&Me[/trans]"]]
1066
+ [./option[@value=""][@selected][@disabled][ .="[trans]Change&Me[/trans]"]]
1067
1067
/following-sibling::select
1068
1068
[@id="name_day"]
1069
- [./option[@value=""][.="[trans]Change&Me[/trans]"]]
1069
+ [./option[@value=""][@selected][@disabled][ .="[trans]Change&Me[/trans]"]]
1070
1070
/following-sibling::select
1071
1071
[@id="name_year"]
1072
- [./option[@value=""][.="[trans]Change&Me[/trans]"]]
1072
+ [./option[@value=""][@selected][@disabled][ .="[trans]Change&Me[/trans]"]]
1073
1073
]
1074
1074
[count(./select)=3]
1075
1075
'
@@ -1096,7 +1096,7 @@ public function testDateChoiceWithEmptyValueOnYear()
1096
1096
[./option[@value="1"]]
1097
1097
/following-sibling::select
1098
1098
[@id="name_year"]
1099
- [./option[@value=""][.="[trans]Change&Me[/trans]"]]
1099
+ [./option[@value=""][@selected][@disabled][ .="[trans]Change&Me[/trans]"]]
1100
1100
]
1101
1101
[count(./select)=3]
1102
1102
'
@@ -1195,15 +1195,15 @@ public function testBirthDayWithEmptyValue()
1195
1195
[
1196
1196
./select
1197
1197
[@id="name_month"]
1198
- [./option[@value=""][.="[trans][/trans]"]]
1198
+ [./option[@value=""][not(@selected)][@disabled][ .="[trans][/trans]"]]
1199
1199
[./option[@value="1"][@selected="selected"]]
1200
1200
/following-sibling::select
1201
1201
[@id="name_day"]
1202
- [./option[@value=""][.="[trans][/trans]"]]
1202
+ [./option[@value=""][not(@selected)][@disabled][ .="[trans][/trans]"]]
1203
1203
[./option[@value="1"][@selected="selected"]]
1204
1204
/following-sibling::select
1205
1205
[@id="name_year"]
1206
- [./option[@value=""][.="[trans][/trans]"]]
1206
+ [./option[@value=""][not(@selected)][@disabled][ .="[trans][/trans]"]]
1207
1207
[./option[@value="1950"][@selected="selected"]]
1208
1208
]
1209
1209
[count(./select)=3]
@@ -1635,11 +1635,11 @@ public function testTimeWithEmptyValueGlobal()
1635
1635
[
1636
1636
./select
1637
1637
[@id="name_hour"]
1638
- [./option[@value=""][.="[trans]Change&Me[/trans]"]]
1638
+ [./option[@value=""][@selected][@disabled][ .="[trans]Change&Me[/trans]"]]
1639
1639
[count(./option)>24]
1640
1640
/following-sibling::select
1641
1641
[@id="name_minute"]
1642
- [./option[@value=""][.="[trans]Change&Me[/trans]"]]
1642
+ [./option[@value=""][@selected][@disabled][ .="[trans]Change&Me[/trans]"]]
1643
1643
[count(./option)>60]
1644
1644
]
1645
1645
[count(./select)=2]
@@ -1660,7 +1660,7 @@ public function testTimeWithEmptyValueOnYear()
1660
1660
[
1661
1661
./select
1662
1662
[@id="name_hour"]
1663
- [./option[@value=""][.="[trans]Change&Me[/trans]"]]
1663
+ [./option[@value=""][@selected][@disabled][ .="[trans]Change&Me[/trans]"]]
1664
1664
[count(./option)>24]
1665
1665
/following-sibling::select
1666
1666
[@id="name_minute"]
@@ -1710,7 +1710,7 @@ public function testTimezoneWithEmptyValue()
1710
1710
1711
1711
$ this ->assertWidgetMatchesXpath ($ form ->createView (), array (),
1712
1712
'/select
1713
- [./option[@value=""][.="[trans]Select&Timezone[/trans]"]]
1713
+ [./option[@value=""][@selected][@disabled][ .="[trans]Select&Timezone[/trans]"]]
1714
1714
[count(./optgroup)>10]
1715
1715
[count(.//option)>201]
1716
1716
'
0 commit comments