File tree Expand file tree Collapse file tree 5 files changed +15
-10
lines changed Expand file tree Collapse file tree 5 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 109
109
</form >
110
110
</section >
111
111
</section >
112
- <cdx-dialog class = " confirmation-dialog"
112
+ <cdx-dialog id = " results- confirmation-dialog"
113
113
:title =" $i18n('confirmation-dialog-title')"
114
114
v-model:open =" confirmationDialog"
115
115
:primary-action =" {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function __construct(int $mismatchId)
19
19
*/
20
20
public function selector ()
21
21
{
22
- return "#mismatch- $ this ->mismatchId .wikit-Dropdown " ;
22
+ return "#mismatch- $ this ->mismatchId .cdx-select-vue " ;
23
23
}
24
24
25
25
/**
@@ -41,17 +41,17 @@ public function assert(Browser $browser)
41
41
public function elements ()
42
42
{
43
43
return [
44
- '@select-menu ' => '.wikit-Dropdown__select ' ,
45
- '@selected ' => '.wikit-Dropdown__selectedOption ' ,
46
- '@menu-items ' => '.wikit-Dropdown__menu '
44
+ '@select-menu ' => '.cdx-select-vue__handle ' ,
45
+ '@selected ' => '.cdx-select-vue__handle ' ,
46
+ '@menu-items ' => '.cdx-menu__listbox '
47
47
];
48
48
}
49
49
50
50
public function selectPosition (Browser $ browser , int $ position , string $ option )
51
51
{
52
52
$ browser ->click ('@select-menu ' )
53
53
->within ('@menu-items ' , function ($ menu ) use ($ position , $ option ) {
54
- $ positionSelector = ".wikit-OptionsMenu__item :nth-child( $ position) " ;
54
+ $ positionSelector = ".cdx-menu-item :nth-child( $ position) " ;
55
55
$ menu ->assertSeeIn ($ positionSelector , $ option )
56
56
->click ($ positionSelector );
57
57
})
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ public function test_empty_item_list_yields_warning()
48
48
->press ('.submit-ids ' )
49
49
->assertSee ('Please provide the Item identifiers that should be checked. ' );
50
50
51
- $ this ->assertStringContainsString ('--warning ' , $ browser ->attribute ('@items-input ' , 'class ' ));
51
+ $ this ->assertStringContainsString (
52
+ '--warning ' ,
53
+ $ browser ->attribute ('@items-input-validation-message ' , 'class ' ));
52
54
});
53
55
}
54
56
@@ -72,7 +74,9 @@ public function test_invalid_item_list_yields_error()
72
74
->press ('.submit-ids ' )
73
75
->assertSee ('One or more Item identifiers couldn \'t be processed. ' );
74
76
75
- $ this ->assertStringContainsString ('--error ' , $ browser ->attribute ('@items-input ' , 'class ' ));
77
+ $ this ->assertStringContainsString (
78
+ '--error ' ,
79
+ $ browser ->attribute ('@items-input-validation-message ' , 'class ' ));
76
80
});
77
81
}
78
82
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ public function elements()
40
40
{
41
41
return [
42
42
'@form ' => '#items-form ' ,
43
- '@items-input ' => '@form textarea '
43
+ '@items-input ' => '@form textarea ' ,
44
+ '@items-input-validation-message ' => '@form .wikit-TextArea .wikit-ValidationMessage '
44
45
];
45
46
}
46
47
}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public function elements()
47
47
{
48
48
return [
49
49
'@back-button ' => '.back-button ' ,
50
- '@confirmation-dialog ' => '. confirmation-dialog ' ,
50
+ '@confirmation-dialog ' => '#results- confirmation-dialog ' ,
51
51
'@disable-confirmation ' => '.disable-confirmation ' ,
52
52
'@error-section ' => '#error-section ' ,
53
53
'@disable-confirmation-label ' => '.disable-confirmation>.wikit-checkbox__label '
You can’t perform that action at this time.
0 commit comments