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 6565 'data-foo ' => 'bar ' ,
6666 'id ' => 'foo ' ,
6767 ])
68- ->contains ('.switch-toggle ' , [
69- 'class ' => 'foo-class ' ,
70- ]);
68+ ->contains ('.switch-toggle ' , [
69+ 'class ' => 'foo-class ' ,
70+ ]);
7171 });
7272});
7373
124124 $ div ->contains ('span.off ' , [
125125 'text ' => 'off ' ,
126126 ])
127- ->contains ('span.on ' , [
128- 'text ' => 'on ' ,
129- ]);
127+ ->contains ('span.on ' , [
128+ 'text ' => 'on ' ,
129+ ]);
130130 });
131131});
132132
Original file line number Diff line number Diff line change 3838 $ div ->contains ('div ' , [
3939 'x-on:livewire-upload-start ' => 'isUploading = true ' ,
4040 ])
41- ->contains ('input ' , [
42- 'type ' => 'file ' ,
43- 'wire:model ' => 'file ' ,
44- ]);
41+ ->contains ('input ' , [
42+ 'type ' => 'file ' ,
43+ 'wire:model ' => 'file ' ,
44+ ]);
4545 });
4646});
4747
Original file line number Diff line number Diff line change 2222 Route::get ('/test ' , fn () => Blade::render ('<x-email name="email" type="url" id="my-email" /> ' ));
2323
2424 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+ });
3232});
Original file line number Diff line number Diff line change 8484 'text ' => 'Foo 1 ' ,
8585 'level ' => '1 ' ,
8686 ])
87- ->doesntContain ('.tree-select__children ' );
87+ ->doesntContain ('.tree-select__children ' );
8888 })
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+ });
101102 });
102- });
103- });
103+ });
104104 });
105105 });
106106 });
You can’t perform that action at this time.
0 commit comments