@@ -7,7 +7,7 @@ describe("RadioButton general interaction", () => {
7
7
} ) ;
8
8
9
9
it ( "tests change event" , ( ) => {
10
- const radioButton = browser . $ ( "#rb1" ) ;
10
+ const radioButton = browser . $ ( "#rb1" ) . shadow$ ( ".ui5-radio-root" ) ;
11
11
const field = browser . $ ( "#field" ) ;
12
12
13
13
radioButton . click ( ) ;
@@ -18,8 +18,8 @@ describe("RadioButton general interaction", () => {
18
18
} ) ;
19
19
20
20
it ( "tests change event upon ENTER" , ( ) => {
21
- const radioButton1 = browser . $ ( "#rb1" ) ;
22
- const radioButton2 = browser . $ ( "#rb2" ) ;
21
+ const radioButton1 = browser . $ ( "#rb1" ) . shadow$ ( ".ui5-radio-root" ) ;
22
+ const radioButton2 = browser . $ ( "#rb2" ) . shadow$ ( ".ui5-radio-root" ) ; ;
23
23
const field = browser . $ ( "#field" ) ;
24
24
25
25
radioButton1 . click ( ) ;
@@ -33,8 +33,8 @@ describe("RadioButton general interaction", () => {
33
33
} ) ;
34
34
35
35
it ( "tests change event upon SPACE" , ( ) => {
36
- const radioButton1 = browser . $ ( "#rb2" ) ;
37
- const radioButton2 = browser . $ ( "#rb3" ) ;
36
+ const radioButton1 = browser . $ ( "#rb2" ) . shadow$ ( ".ui5-radio-root" ) ; ;
37
+ const radioButton2 = browser . $ ( "#rb3" ) . shadow$ ( ".ui5-radio-root" ) ; ;
38
38
const field = browser . $ ( "#field" ) ;
39
39
40
40
radioButton1 . click ( ) ;
@@ -48,7 +48,7 @@ describe("RadioButton general interaction", () => {
48
48
} ) ;
49
49
50
50
it ( "tests change event not fired, when disabled" , ( ) => {
51
- const radioButton = browser . $ ( "#rb4" ) ;
51
+ const radioButton = browser . $ ( "#rb4" ) . shadow$ ( ".ui5-radio-root" ) ; ;
52
52
const field = browser . $ ( "#field" ) ;
53
53
54
54
radioButton . click ( ) ;
@@ -132,11 +132,12 @@ describe("RadioButton general interaction", () => {
132
132
} ) ;
133
133
134
134
it ( "tests change event from radio buttons within group" , ( ) => {
135
+ const radioButtonToBeSelectedShadow = browser . $ ( "#groupRb7" ) . shadow$ ( ".ui5-radio-root" ) ;
135
136
const radioButtonToBeSelected = browser . $ ( "#groupRb7" ) ;
136
137
const lblEventCounter = browser . $ ( "#lblEventCounter" ) ;
137
138
const lblSelectedRadio = browser . $ ( "#lblRadioGroup" ) ;
138
139
139
- radioButtonToBeSelected . click ( ) ;
140
+ radioButtonToBeSelectedShadow . click ( ) ;
140
141
141
142
assert . equal ( lblEventCounter . getHTML ( false ) , "1" , 'The change event is fired once' ) ;
142
143
assert . equal ( lblSelectedRadio . getHTML ( false ) , radioButtonToBeSelected . getProperty ( "text" ) , "The correct radio is selected" ) ;
0 commit comments