This repository was archived by the owner on Mar 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +32
-32
lines changed Expand file tree Collapse file tree 4 files changed +32
-32
lines changed Original file line number Diff line number Diff line change 65
65
'data-foo ' => 'bar ' ,
66
66
'id ' => 'foo ' ,
67
67
])
68
- ->contains ('.switch-toggle ' , [
69
- 'class ' => 'foo-class ' ,
70
- ]);
68
+ ->contains ('.switch-toggle ' , [
69
+ 'class ' => 'foo-class ' ,
70
+ ]);
71
71
});
72
72
});
73
73
124
124
$ div ->contains ('span.off ' , [
125
125
'text ' => 'off ' ,
126
126
])
127
- ->contains ('span.on ' , [
128
- 'text ' => 'on ' ,
129
- ]);
127
+ ->contains ('span.on ' , [
128
+ 'text ' => 'on ' ,
129
+ ]);
130
130
});
131
131
});
132
132
Original file line number Diff line number Diff line change 38
38
$ div ->contains ('div ' , [
39
39
'x-on:livewire-upload-start ' => 'isUploading = true ' ,
40
40
])
41
- ->contains ('input ' , [
42
- 'type ' => 'file ' ,
43
- 'wire:model ' => 'file ' ,
44
- ]);
41
+ ->contains ('input ' , [
42
+ 'type ' => 'file ' ,
43
+ 'wire:model ' => 'file ' ,
44
+ ]);
45
45
});
46
46
});
47
47
Original file line number Diff line number Diff line change 22
22
Route::get ('/test ' , fn () => Blade::render ('<x-email name="email" type="url" id="my-email" /> ' ));
23
23
24
24
get ('/test ' )
25
- ->assertElementExists ('input ' , function (AssertElement $ input ) {
26
- $ input ->is ('input ' )
27
- ->has ('type ' , 'email ' )
28
- ->has ('name ' , 'email ' )
29
- ->has ('id ' , 'my-email ' )
30
- ->doesntHave ('type ' , 'url ' );
31
- });
25
+ ->assertElementExists ('input ' , function (AssertElement $ input ) {
26
+ $ input ->is ('input ' )
27
+ ->has ('type ' , 'email ' )
28
+ ->has ('name ' , 'email ' )
29
+ ->has ('id ' , 'my-email ' )
30
+ ->doesntHave ('type ' , 'url ' );
31
+ });
32
32
});
Original file line number Diff line number Diff line change 84
84
'text ' => 'Foo 1 ' ,
85
85
'level ' => '1 ' ,
86
86
])
87
- ->doesntContain ('.tree-select__children ' );
87
+ ->doesntContain ('.tree-select__children ' );
88
88
})
89
- ->find ('.tree-select__option-li:last-child ' , function (AssertElement $ option ) {
90
- $ option ->contains ('.tree-select__option ' , [
91
- 'text ' => 'Foo 2 ' ,
92
- 'level ' => '1 ' ,
93
- ])
94
- ->find ('.tree-select__children ' , function (AssertElement $ children ) {
95
- $ children ->find ('.tree-select__option-li ' , function (AssertElement $ option ) {
96
- $ option ->contains ('.tree-select__option ' , [
97
- 'text ' => 'Foo 2.1 ' ,
98
- 'level ' => '2 ' ,
99
- ])
100
- ->doesntContain ('.tree-select__children ' );
89
+ ->find ('.tree-select__option-li:last-child ' , function (AssertElement $ option ) {
90
+ $ option ->contains ('.tree-select__option ' , [
91
+ 'text ' => 'Foo 2 ' ,
92
+ 'level ' => '1 ' ,
93
+ ])
94
+ ->find ('.tree-select__children ' , function (AssertElement $ children ) {
95
+ $ children ->find ('.tree-select__option-li ' , function (AssertElement $ option ) {
96
+ $ option ->contains ('.tree-select__option ' , [
97
+ 'text ' => 'Foo 2.1 ' ,
98
+ 'level ' => '2 ' ,
99
+ ])
100
+ ->doesntContain ('.tree-select__children ' );
101
+ });
101
102
});
102
- });
103
- });
103
+ });
104
104
});
105
105
});
106
106
});
You can’t perform that action at this time.
0 commit comments