repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/InputSelect/Component.php
legacy_tests/Browser/DataBinding/InputSelect/Component.php
<?php namespace LegacyTests\Browser\DataBinding\InputSelect; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $single; public $singleValue; public $singleNumber = 3; public $placeholder = ''; public $multiple = []; p...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/Lazy/LazyInputsWithUpdatesDisplayedComponent.php
legacy_tests/Browser/DataBinding/Lazy/LazyInputsWithUpdatesDisplayedComponent.php
<?php namespace LegacyTests\Browser\DataBinding\Lazy; use Livewire\Component as BaseComponent; class LazyInputsWithUpdatesDisplayedComponent extends BaseComponent { public $name; public $description; public $is_active = false; public $updates = []; public function updated() { $this...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/Lazy/Test.php
legacy_tests/Browser/DataBinding/Lazy/Test.php
<?php namespace LegacyTests\Browser\DataBinding\Lazy; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test_it_only_sends_updates_for_fields_that_have_been_changed_upon_submit() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, La...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/Defer/Test.php
legacy_tests/Browser/DataBinding/Defer/Test.php
<?php namespace LegacyTests\Browser\DataBinding\Defer; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, Component::class) /** * Basic wire:m...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/Defer/view.blade.php
legacy_tests/Browser/DataBinding/Defer/view.blade.php
<div> <input type="text" wire:model="foo" dusk="foo"> <button type="button" dusk="foo.output">{{ $foo }}</button> <input type="checkbox" wire:model="bar" value="a" dusk="bar.a"> <input type="checkbox" wire:model="bar" value="b" dusk="bar.b"> <button type="button" dusk="bar.output">@json($bar)</butt...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/DataBinding/Defer/Component.php
legacy_tests/Browser/DataBinding/Defer/Component.php
<?php namespace LegacyTests\Browser\DataBinding\Defer; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $foo = ''; public $bar = []; public function render() { return View::file(__DIR__.'/view.blade.php'); } }
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/GlobalLivewire/Test.php
legacy_tests/Browser/GlobalLivewire/Test.php
<?php namespace LegacyTests\Browser\GlobalLivewire; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->markTestSkipped(); // @todo: Caleb needs to think more deeply about JS hooks for V3... $this->browse(function ($browser) { $this->vi...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/GlobalLivewire/view.blade.php
legacy_tests/Browser/GlobalLivewire/view.blade.php
<div> <button wire:click="$set('output', 'foo')" dusk="foo">foo</button> <span dusk="output">{{ $output }}</span> </div> @push('scripts') <script> window.isLoaded = false window.loadEventWasFired = false window.Livewire.onLoad(() => { window.isLoaded = true }) document.add...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/GlobalLivewire/Component.php
legacy_tests/Browser/GlobalLivewire/Component.php
<?php namespace LegacyTests\Browser\GlobalLivewire; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $output = ''; public function render() { return View::file(__DIR__.'/view.blade.php'); } }
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/SupportEnums/Test.php
legacy_tests/Browser/SupportEnums/Test.php
<?php namespace LegacyTests\Browser\SupportEnums; use LegacyTests\TestEnum; use Livewire\Component; use Livewire\Livewire; use Tests\TestCase; class Test extends TestCase { public function test() { Livewire::test(new class extends Component { public $enum; public function mou...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/component-with-traits.blade.php
legacy_tests/Browser/QueryString/component-with-traits.blade.php
<div> <input wire:model.live="search" type="text" dusk="search"> @foreach ($posts as $post) <h1 wire:key="post-{{ $post->id }}">{{ $post->title }}</h1> @endforeach {{ $posts->links() }} </div>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/excepts.blade.php
legacy_tests/Browser/QueryString/excepts.blade.php
<div> <span dusk="output">On page {{ $page }}</span> </div>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/NestedComponent.php
legacy_tests/Browser/QueryString/NestedComponent.php
<?php namespace LegacyTests\Browser\QueryString; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class NestedComponent extends BaseComponent { public $baz = 'bop'; protected $queryString = ['baz' => ['history' => true, 'keep' => true]]; public function render() { ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/Test.php
legacy_tests/Browser/QueryString/Test.php
<?php namespace LegacyTests\Browser\QueryString; use Sushi\Sushi; use LegacyTests\Browser\TestCase; use Laravel\Dusk\Browser; use Illuminate\Database\Eloquent\Model; class Test extends TestCase { public function test_core_query_string_pushstate_logic() { $this->browse(function (Browser $browser) { ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/WithSearch.php
legacy_tests/Browser/QueryString/WithSearch.php
<?php namespace LegacyTests\Browser\QueryString; trait WithSearch { /** * @var string */ public $search = ''; /** * @var array */ protected $queryStringWithSearch = ['search' => []]; /** * @return void */ public function initializeWithSearch() { $thi...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/RedirectLinkToQueryStringComponent.php
legacy_tests/Browser/QueryString/RedirectLinkToQueryStringComponent.php
<?php namespace LegacyTests\Browser\QueryString; use Livewire\Component as BaseComponent; class RedirectLinkToQueryStringComponent extends BaseComponent { public $showNestedComponent = false; public function render() { return <<< 'HTML' <div> <a dusk="link" href="{{ url('/livewire-dusk/Legac...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/ComponentWithTraits.php
legacy_tests/Browser/QueryString/ComponentWithTraits.php
<?php namespace LegacyTests\Browser\QueryString; use Illuminate\Support\Facades\View; use Livewire\Component; use Livewire\WithPagination; class ComponentWithTraits extends Component { use WithPagination; use WithSearch; public function render() { return View::file(__DIR__.'/component-with-t...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/nested-view.blade.php
legacy_tests/Browser/QueryString/nested-view.blade.php
<div> <span dusk="baz-output">{{ $baz }}</span> <input wire:model.live="baz" type="text" dusk="baz-input"> </div>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/DirtyDataComponent.php
legacy_tests/Browser/QueryString/DirtyDataComponent.php
<?php namespace LegacyTests\Browser\QueryString; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class DirtyDataComponent extends BaseComponent { protected $queryString = ['page' => ['history' => true]]; public $page = 1; public $foo = ['bar' => '']; public function ne...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/ComponentWithAliases.php
legacy_tests/Browser/QueryString/ComponentWithAliases.php
<?php namespace LegacyTests\Browser\QueryString; class ComponentWithAliases extends ComponentWithTraits { protected $queryString = [ 'search' => ['as' => 's'], ]; }
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/dirty-data.blade.php
legacy_tests/Browser/QueryString/dirty-data.blade.php
<div> <button wire:click="nextPage" dusk="nextPage">Next Page</button> @if ($page === 1) <div> <input type="text" wire:model.live="foo.bar" dusk="input"> </div> @else <div> The Next Page </div> @endif </div>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/ComponentWithExcepts.php
legacy_tests/Browser/QueryString/ComponentWithExcepts.php
<?php namespace LegacyTests\Browser\QueryString; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class ComponentWithExcepts extends BaseComponent { public $page = 1; protected $queryString = ['page' => ['except' => 1]]; public function render() { return View::f...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/ParentComponentWithNoQueryString.php
legacy_tests/Browser/QueryString/ParentComponentWithNoQueryString.php
<?php namespace LegacyTests\Browser\QueryString; use Livewire\Component as BaseComponent; class ParentComponentWithNoQueryString extends BaseComponent { public $showNestedComponent = false; public function render() { return <<< 'HTML' <div> <button type="button" wire:click="$toggle('showNest...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/ComponentWithMethodInsteadOfProperty.php
legacy_tests/Browser/QueryString/ComponentWithMethodInsteadOfProperty.php
<?php namespace LegacyTests\Browser\QueryString; use Livewire\Component as BaseComponent; class ComponentWithMethodInsteadOfProperty extends BaseComponent { public $foo = 'bar'; public function queryString() { return ['foo' => ['alwaysShow' => true]]; } public function render() { ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/view.blade.php
legacy_tests/Browser/QueryString/view.blade.php
<div> {{-- <div x-data="{ count: $queryString(1) }"> <input type="text" x-model="count"> <span x-text="count"></span> </div> <br> <br> <br> --}} <span dusk="output">{{ $foo }}</span> <span dusk="bar-output">{{ $bar }}</span> <span dusk="qux.hyphen">{{ $qux['hyphen'] }}...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/QueryString/Component.php
legacy_tests/Browser/QueryString/Component.php
<?php namespace LegacyTests\Browser\QueryString; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $foo = 'bar'; public $bar = 'baz'; public $bob = ['foo', 'bar']; public $qux = [ 'hyphen' => 'quux-quuz', 'comm...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Polling/Test.php
legacy_tests/Browser/Polling/Test.php
<?php namespace LegacyTests\Browser\Polling; use Livewire\Component; use Livewire\Livewire; use Tests\BrowserTestCase; class Test extends BrowserTestCase { public function test_wire_poll() { Livewire::visit(new class extends Component { public $enabled = false; public $count =...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/StringNormalization/Test.php
legacy_tests/Browser/StringNormalization/Test.php
<?php namespace LegacyTests\Browser\StringNormalization; use Laravel\Dusk\Browser; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { // @todo: This test passes now, but it probably no longer needed, as we're not needing to normalise strings to prevent corrupt pa...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/StringNormalization/Model.php
legacy_tests/Browser/StringNormalization/Model.php
<?php namespace LegacyTests\Browser\StringNormalization; use Illuminate\Database\Eloquent\Model as BaseModel; use Sushi\Sushi; class Model extends BaseModel { use Sushi; protected $rows = [ [ 'id' => 1, 'name' => 'â' ] ]; }
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/StringNormalization/view.blade.php
legacy_tests/Browser/StringNormalization/view.blade.php
<div> <div>{{ $string }}</div> <div>{{ $number }}</div> <pre>{{ print_r($array, true) }}</pre> <pre>{{ print_r($recursiveArray, true) }}</pre> <pre>{{ print_r($collection->toArray(), true) }}</pre> <pre>{{ print_r($recursiveCollection->toArray(), true) }}</pre> <pre>{{ print_r($model->name, ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/StringNormalization/Component.php
legacy_tests/Browser/StringNormalization/Component.php
<?php namespace LegacyTests\Browser\StringNormalization; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $string = 'â'; public $number = 0; public $array = ['â']; public $recursiveArray = ['â', ['â']]; public $collec...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Actions/Test.php
legacy_tests/Browser/Actions/Test.php
<?php namespace LegacyTests\Browser\Actions; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, Component::class) /** * Basic action (click). ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Actions/view.blade.php
legacy_tests/Browser/Actions/view.blade.php
<div> <button type="button" wire:click="setOutputToFoo" dusk="foo">Foo</button> <button type="button" wire:click="setOutputTo('bar', 'bell')" dusk="bar">Bar</button> <button type="button" wire:click="setOutputTo('a', &quot;b&quot; , 'c','d' ,'e', ''.concat('f'))" dusk="ball">Ball</button> <button type="...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Actions/Component.php
legacy_tests/Browser/Actions/Component.php
<?php namespace LegacyTests\Browser\Actions; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $output = ''; public function setOutputToFoo() { $this->output = 'foo'; } public function setOutputTo(...$params) ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Redirects/Test.php
legacy_tests/Browser/Redirects/Test.php
<?php namespace LegacyTests\Browser\Redirects; use Illuminate\Database\Eloquent\Model; use Illuminate\Foundation\Testing\RefreshDatabase; use Sushi\Sushi; use LegacyTests\Browser\TestCase; class Test extends TestCase { use RefreshDatabase; public function test_it_correctly_shows_flash_messages_before_and_af...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Redirects/view.blade.php
legacy_tests/Browser/Redirects/view.blade.php
<div> <button wire:click="$refresh" dusk="refresh">Refresh</button> <button wire:click="flashMessage" dusk="flash">Flash</button> <button wire:click="redirectWithFlash" dusk="redirect-with-flash">Redirect With Flash</button> <button wire:click="redirectPage" dusk="redirect.button">Redirect Page</button...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Redirects/Component.php
legacy_tests/Browser/Redirects/Component.php
<?php namespace LegacyTests\Browser\Redirects; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $message = 'foo'; public $foo = 'hey'; public $disableBackButtonCache = true; protected $queryString = [ 'disableBackBu...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/PollingViewport/Test.php
legacy_tests/Browser/PollingViewport/Test.php
<?php namespace LegacyTests\Browser\PollingViewport; use Laravel\Dusk\Browser; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->markTestSkipped(); // @flaky $this->browse(function (Browser $browser) { $this->visitLivewireComponent($b...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/PollingViewport/view.blade.php
legacy_tests/Browser/PollingViewport/view.blade.php
<div> <div id="top" style="height: 100vh"> <div wire:poll.500ms.visible> <span dusk="output">{{ $count }}</span> </div> </div> <div id="clearfix"> No, not really. </div> <div id="bottom" style="height: 100vh"> Polling not in view. </div> </div>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/PollingViewport/Component.php
legacy_tests/Browser/PollingViewport/Component.php
<?php namespace LegacyTests\Browser\PollingViewport; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $count = 0; public function render() { $this->count++; return View::file(__DIR__.'/view.blade.php'); } }
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Loading/CustomDisplayProperty.php
legacy_tests/Browser/Loading/CustomDisplayProperty.php
<?php namespace LegacyTests\Browser\Loading; use Livewire\Component as BaseComponent; class CustomDisplayProperty extends BaseComponent { public function hydrate() { usleep(500 * 1000); } public function render() { return <<<'HTML' <div> <button wire:c...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Loading/Test.php
legacy_tests/Browser/Loading/Test.php
<?php namespace LegacyTests\Browser\Loading; use Laravel\Dusk\Browser; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, Component::class) ->tap($this->assert...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Loading/ComponentWithLoadingDelays.php
legacy_tests/Browser/Loading/ComponentWithLoadingDelays.php
<?php namespace LegacyTests\Browser\Loading; use Livewire\Component as BaseComponent; class ComponentWithLoadingDelays extends BaseComponent { public $baz = ''; public function hydrate() { // Sleep for up to 1100ms as longest is 1000ms usleep(1000 * 1100); } public function rend...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Loading/DataLoadingTest.php
legacy_tests/Browser/Loading/DataLoadingTest.php
<?php namespace LegacyTests\Browser\Loading; use Livewire\Component; use Livewire\Livewire; use Tests\BrowserTestCase; class DataLoadingTest extends BrowserTestCase { public function test_wire_submit_applies_data_loading_to_submit_button() { Livewire::visit(new class extends Component { p...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Loading/view.blade.php
legacy_tests/Browser/Loading/view.blade.php
<div> <button wire:click="$refresh" dusk="button">Load</button> <button wire:click="throwError" dusk="error-button">Throw Error</button> <h1 wire:loading dusk="show">Loading...</h1> <h1 wire:loading.remove dusk="hide">Loading...</h1> <h1 wire:loading.class="foo bar" dusk="add-class">Loading...</h1...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Loading/Component.php
legacy_tests/Browser/Loading/Component.php
<?php namespace LegacyTests\Browser\Loading; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $baz = ''; public $bob = ['name' => '']; public function hydrate() { usleep(1000 * 250); } public function throw...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Morphdom/Test.php
legacy_tests/Browser/Morphdom/Test.php
<?php namespace LegacyTests\Browser\Morphdom; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->markTestSkipped(); // @todo: not settled on V3 hooks yet... $this->browse(function ($browser) { $this->visitLivewireComponent($browser, Co...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Morphdom/view.blade.php
legacy_tests/Browser/Morphdom/view.blade.php
<div @if ($foo) foo="true" @endif dusk="root"> <button wire:click="$set('foo', true)" dusk="foo"></button> <button wire:click="$set('bar', true)" dusk="bar"> <div dusk="bar.start">start</div> @if ($bar) <div dusk="bar.middle">middle</div> @endif <div dusk="bar.end">e...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Morphdom/Component.php
legacy_tests/Browser/Morphdom/Component.php
<?php namespace LegacyTests\Browser\Morphdom; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $foo = false; public $bar = false; public $baz = false; public $bob = false; public $lob = false; public $law = false; ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/ProductionTest/Test.php
legacy_tests/Browser/ProductionTest/Test.php
<?php namespace LegacyTests\Browser\ProductionTest; use Livewire\Component; use Livewire\Livewire; use Tests\BrowserTestCase; class Test extends BrowserTestCase { public function test_ensure_livewire_runs_when_app_debug_is_set_to_false(): void { Livewire::visit(new class extends Component { ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Nesting/NestedComponent.php
legacy_tests/Browser/Nesting/NestedComponent.php
<?php namespace LegacyTests\Browser\Nesting; use Livewire\Component as BaseComponent; class NestedComponent extends BaseComponent { public $output = ''; public function render() { return <<<'HTML' <div> <button wire:click="$set('output', 'foo')" dusk="button.nested"></button>...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Nesting/Test.php
legacy_tests/Browser/Nesting/Test.php
<?php namespace LegacyTests\Browser\Nesting; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, [Component::class, 'nested' => NestedComponent::class], '?showChild=true') ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Nesting/RenderContextComponent.php
legacy_tests/Browser/Nesting/RenderContextComponent.php
<?php namespace LegacyTests\Browser\Nesting; use Livewire\Component as BaseComponent; class RenderContextComponent extends BaseComponent { public $one = 'Blade 1'; public $two = 'Blade 2'; public $three = 'Blade 3'; public function render() { return <<< 'HTML' <div> <x-blade-componen...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Nesting/Component.php
legacy_tests/Browser/Nesting/Component.php
<?php namespace LegacyTests\Browser\Nesting; use Livewire\Component as BaseComponent; class Component extends BaseComponent { protected $queryString = ['showChild']; public $showChild = false; public $key = 'foo'; public function render() { return <<<'HTML' <div> <b...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/views/turbo.blade.php
legacy_tests/Browser/views/turbo.blade.php
<x-layouts.app-for-turbo-views> <h1 dusk="page.title">Testing Entangle with Turbo</h1> <a dusk="turbo.link" href="{{ $link }}">Go to Livewire Component</a> </x-layouts.app-for-turbo-views>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/views/components/blade-component.blade.php
legacy_tests/Browser/views/components/blade-component.blade.php
@props(['property']) <div {{ $attributes }}> {{ $this->getPropertyValue($property) }} </div>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/views/components/stack-child.blade.php
legacy_tests/Browser/views/components/stack-child.blade.php
@once @push('scripts') <script>window.stack_output.push('child-blade-scripts')</script> @endpush @endonce @push('scripts') <script>window.stack_output.push('child-blade-scripts-no-once')</script> @endpush
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/views/components/layouts/app-for-turbo-views.blade.php
legacy_tests/Browser/views/components/layouts/app-for-turbo-views.blade.php
<html> <head> @livewireStyles <meta name="csrf-token" content="{{ csrf_token() }}"> </head> <body> {{ $slot }} @livewireScripts <script type="module"> import hotwiredTurbo from 'https://cdn.skypack.dev/@hotwired/turbo'; </script> <script src="https://cdn.jsdelivr.net/gh/livewire/t...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/views/components/layouts/app.blade.php
legacy_tests/Browser/views/components/layouts/app.blade.php
<html> <head> <meta name="csrf-token" content="{{ csrf_token() }}"> </head> <body> {{ $slot }} @stack('scripts') </body> </html>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/views/layouts/app-for-normal-views.blade.php
legacy_tests/Browser/views/layouts/app-for-normal-views.blade.php
<html> <head> <meta name="csrf-token" content="{{ csrf_token() }}"> </head> <body> @yield('content') @stack('scripts') </body> </html>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/views/layouts/app.blade.php
legacy_tests/Browser/views/layouts/app.blade.php
<html> <head> <meta name="csrf-token" content="{{ csrf_token() }}"> </head> <body> {{ $slot }} @stack('scripts') </body> </html>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/ScriptTag/Test.php
legacy_tests/Browser/ScriptTag/Test.php
<?php namespace LegacyTests\Browser\ScriptTag; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->markTestSkipped(); // @todo: should we support this in V3? $this->browse(function ($browser) { $this->visitLivewireComponent($browser, C...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/ScriptTag/view.blade.php
legacy_tests/Browser/ScriptTag/view.blade.php
<div> <button wire:click="show" dusk="button"></button> @if($withScript) <script>window.scriptTagWasCalled = true</script> @endif </div>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/ScriptTag/Component.php
legacy_tests/Browser/ScriptTag/Component.php
<?php namespace LegacyTests\Browser\ScriptTag; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $withScript = false; public function show() { $this->withScript = true; } public function render() { re...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Headers/Test.php
legacy_tests/Browser/Headers/Test.php
<?php namespace LegacyTests\Browser\Headers; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->markTestSkipped(); // @todo: Caleb needs to think more deeply about JS hooks for V3... $this->browse(function ($browser) { $this->visitLive...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Headers/view.blade.php
legacy_tests/Browser/Headers/view.blade.php
<div> <button type="button" wire:click="setOutputToFooHeader" dusk="foo">Foo</button> <p> <span dusk="output">{{ $output }}</span> </p> <p> <span dusk="altoutput">{{ $altoutput }}</span> </p> </div> @push('scripts') <script type="text/javascript"> document.addEventListe...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Headers/Component.php
legacy_tests/Browser/Headers/Component.php
<?php namespace LegacyTests\Browser\Headers; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $output = ''; public $altoutput = ''; public function setOutputToFooHeader() { $this->output = request()->header('x-foo-he...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Stacks/Test.php
legacy_tests/Browser/Stacks/Test.php
<?php namespace LegacyTests\Browser\Stacks; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test_conditionally_loaded_component_can_push_and_preppend_to_stack() { $this->markTestSkipped('Stacks feature reverted since 2021-10-20'); $this->browse(function ($brow...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Stacks/ChildComponent.php
legacy_tests/Browser/Stacks/ChildComponent.php
<?php namespace LegacyTests\Browser\Stacks; use Livewire\Component as BaseComponent; class ChildComponent extends BaseComponent { public $show = false; public function render() { return <<<'HTML' <div> The Child component <button wire:click="$toggle('show')" dusk="toggle-blade-child">To...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Stacks/Component.php
legacy_tests/Browser/Stacks/Component.php
<?php namespace LegacyTests\Browser\Stacks; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $show = false; public function render() { return <<<'HTML' <div> <button wire:click="$toggle('show')" dusk="toggle-child">Toggle Child</button> <button wire...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Prefetch/Test.php
legacy_tests/Browser/Prefetch/Test.php
<?php namespace LegacyTests\Browser\Prefetch; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->markTestSkipped(); // @todo: Considering leaving this feature out of V3 at least initially. Not many use it... $this->browse(function ($browser) { ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Prefetch/view.blade.php
legacy_tests/Browser/Prefetch/view.blade.php
<div> <button wire:click.prefetch="$refresh" dusk="button">inc</button> <span dusk="count">{{ app('session')->get('count') }}</span> </div>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Prefetch/Component.php
legacy_tests/Browser/Prefetch/Component.php
<?php namespace LegacyTests\Browser\Prefetch; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public function render() { app('session')->put('count', app('session')->get('count') + 1); return View::file(__DIR__.'/view.blad...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/MagicActions/Test.php
legacy_tests/Browser/MagicActions/Test.php
<?php namespace LegacyTests\Browser\MagicActions; use Livewire\Livewire; use Tests\BrowserTestCase; class Test extends BrowserTestCase { public function test_magic_toggle_can_toggle_properties() { Livewire::visit(Component::class) //Toggle boolean property ->assertSeeIn('@outp...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Hooks/Test.php
legacy_tests/Browser/Hooks/Test.php
<?php namespace LegacyTests\Browser\Hooks; use Laravel\Dusk\Browser; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->markTestSkipped(); // @todo: Caleb needs to think more deeply about JS hooks for V3... $this->browse(function (Browser $browser...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Hooks/view.blade.php
legacy_tests/Browser/Hooks/view.blade.php
<div> <button wire:click="showFoo" dusk="button">show</button> <input dusk="output" /> @if($foo) <div dusk="foo"></div> @endif </div>
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Hooks/Component.php
legacy_tests/Browser/Hooks/Component.php
<?php namespace LegacyTests\Browser\Hooks; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $foo = false; public function showFoo() { $this->foo = true; } public function render() { return View::file...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/FileDownloads/Test.php
legacy_tests/Browser/FileDownloads/Test.php
<?php namespace LegacyTests\Browser\FileDownloads; use LegacyTests\Browser\TestCase; use Illuminate\Support\Facades\Storage; use Livewire\Component; class Test extends TestCase { public function test_trigger_downloads_from_livewire_component() { $this->onlyRunOnChrome(); $this->browse(functi...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/SmallComponent.php
legacy_tests/Browser/Alpine/SmallComponent.php
<?php namespace LegacyTests\Browser\Alpine; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class SmallComponent extends BaseComponent { public $count = 0; public function increment() { $this->count++; } public function render() { return View::f...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/SimultaneousCallsComponent.php
legacy_tests/Browser/Alpine/SimultaneousCallsComponent.php
<?php namespace LegacyTests\Browser\Alpine; use Livewire\Component as BaseComponent; class SimultaneousCallsComponent extends BaseComponent { public function returnValue($value) { return $value; } public function render() { return <<<'HTML' <div> <div x-data="{ foo: '...', ba...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Test.php
legacy_tests/Browser/Alpine/Test.php
<?php namespace LegacyTests\Browser\Alpine; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, Component::class) /** * ->dispatchBrowserEvent(...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/small-component.blade.php
legacy_tests/Browser/Alpine/small-component.blade.php
<div> <!-- It's important that this element has not server-side HTML side-effects so we can prove an empty HTML payload won't cause Alpine issues. --> <div x-data> <h1 x-text="$wire.count" dusk="output"></h1> <button x-on:click="$wire.increment()" dusk="button">$wire.increment()</button> </...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/ClickComponent.php
legacy_tests/Browser/Alpine/ClickComponent.php
<?php namespace LegacyTests\Browser\Alpine; use Livewire\Component as BaseComponent; class ClickComponent extends BaseComponent { public $show = false; public function render() { return <<<'HTML' <div> <div x-data="{ clicks: [] }"> <button dusk="show" wire:click="$set('show', true)">...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/MorphingAtSymbolAttributeComponent.php
legacy_tests/Browser/Alpine/MorphingAtSymbolAttributeComponent.php
<?php namespace LegacyTests\Browser\Alpine; use Livewire\Component as BaseComponent; class MorphingAtSymbolAttributeComponent extends BaseComponent { public $show = false; public function render() { return <<<'EOD' <div> <div x-data> <button wire:click="$toggle('show')" dusk="button"...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/view.blade.php
legacy_tests/Browser/Alpine/view.blade.php
<div> <div x-data="{ output: '' }" x-on:some-event.window="output = $event.detail.bar"> <span x-text="output" dusk="foo.output"></span> <button type="button" dusk="foo.button" wire:click="dispatchSomeEvent">Dispatch</button> </div> <div x-data="{ count: 0 }"> <span x-text="count" du...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Component.php
legacy_tests/Browser/Alpine/Component.php
<?php namespace LegacyTests\Browser\Alpine; use Illuminate\Support\Facades\View; use Livewire\Component as BaseComponent; class Component extends BaseComponent { public $count = 0; public $special = 'abc'; public $zorp = 'before'; public $nested = [ 'count' => 0, ]; public function ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Dispatch/DispatchComponent.php
legacy_tests/Browser/Alpine/Dispatch/DispatchComponent.php
<?php namespace LegacyTests\Browser\Alpine\Dispatch; use Livewire\Component as BaseComponent; class DispatchComponent extends BaseComponent { public $events = [ 'dispatch' => false, 'dispatchUp' => false, 'dispatchTo' => false, 'dispatchSelf' => false, ]; protected $liste...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Dispatch/Test.php
legacy_tests/Browser/Alpine/Dispatch/Test.php
<?php namespace LegacyTests\Browser\Alpine\Dispatch; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test_dollar_wire_dispatch_works() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, ['parent' => DispatchComponent::class, 'chil...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Dispatch/DispatchNestedComponent.php
legacy_tests/Browser/Alpine/Dispatch/DispatchNestedComponent.php
<?php namespace LegacyTests\Browser\Alpine\Dispatch; use Livewire\Component as BaseComponent; class DispatchNestedComponent extends BaseComponent { public function render() { return <<<'HTML' <div> <div x-data> <button dusk="dispatchTo" @click="$wire.dispatchTo('parent', 'dispatch', { nam...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Directive/Test.php
legacy_tests/Browser/Alpine/Directive/Test.php
<?php namespace LegacyTests\Browser\Alpine\Directive; use LegacyTests\Browser\TestCase; /** @group morphing */ class Test extends TestCase { public function test_bind_x_data_after_livewire_commit() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, DirectiveComp...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Directive/DirectiveComponent.php
legacy_tests/Browser/Alpine/Directive/DirectiveComponent.php
<?php namespace LegacyTests\Browser\Alpine\Directive; use Livewire\Component as BaseComponent; class DirectiveComponent extends BaseComponent { public function render() { return <<<'HTML' <div> <div x-foo> <span x-text="value"></span> </div> <button dusk="button" wire:click="$ref...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Entangle/EntangleConsecutiveActions.php
legacy_tests/Browser/Alpine/Entangle/EntangleConsecutiveActions.php
<?php namespace LegacyTests\Browser\Alpine\Entangle; use Livewire\Component as BaseComponent; class EntangleConsecutiveActions extends BaseComponent { public $livewireList = []; public function add() { $this->livewireList[] = count($this->livewireList); } public function render() { ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Entangle/DeferDataUpdates.php
legacy_tests/Browser/Alpine/Entangle/DeferDataUpdates.php
<?php namespace LegacyTests\Browser\Alpine\Entangle; use Livewire\Component as BaseComponent; class DeferDataUpdates extends BaseComponent { public $testing = null; public function render() { return <<<'HTML' <div x-data="{ testing: @entangle('testing') }"> <input type="text" x-model="testi...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Entangle/EntangleNestedChildComponent.php
legacy_tests/Browser/Alpine/Entangle/EntangleNestedChildComponent.php
<?php namespace LegacyTests\Browser\Alpine\Entangle; use Livewire\Component as BaseComponent; class EntangleNestedChildComponent extends BaseComponent { public $item; protected $rules = ['item.name' => '']; public function render() { return <<<'HTML' <div x-data="{ name: @entangle('item.nam...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Entangle/ToggleEntangledTurbo.php
legacy_tests/Browser/Alpine/Entangle/ToggleEntangledTurbo.php
<?php namespace LegacyTests\Browser\Alpine\Entangle; use Livewire\Component as BaseComponent; class ToggleEntangledTurbo extends BaseComponent { public $active = false; public $title = 'Showing Livewire&Alpine Component after a Turbo Visit'; public function render() { return view()->file(__D...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Entangle/DeferArrayDataUpdates.php
legacy_tests/Browser/Alpine/Entangle/DeferArrayDataUpdates.php
<?php namespace LegacyTests\Browser\Alpine\Entangle; use Livewire\Component as BaseComponent; class DeferArrayDataUpdates extends BaseComponent { public $testing; public $dataArray = ['role' => 'guest']; public function submit() { $this->reset('dataArray'); } public function render...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Entangle/view-toggle-entangled-turbo.blade.php
legacy_tests/Browser/Alpine/Entangle/view-toggle-entangled-turbo.blade.php
<div> <h1 dusk="page.title">{{ $title }}</h1> <div x-data="{ active: @entangle('active') }"> <div dusk="output.alpine" x-text="active"></div> <div dusk="output.livewire">{{ $active ? 'true' : 'false' }}</div> <button dusk="toggle" x-on:click="active = !active">Toggle Active<...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Entangle/ChangeMultipleDataAtTheSameTime.php
legacy_tests/Browser/Alpine/Entangle/ChangeMultipleDataAtTheSameTime.php
<?php namespace LegacyTests\Browser\Alpine\Entangle; use Livewire\Component as BaseComponent; class ChangeMultipleDataAtTheSameTime extends BaseComponent { public $livewireList = [1,2,3,4]; public $livewireSearch; public function updatedLivewireSearch() { $this->change(); } public ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Entangle/EntangleNestedArray.php
legacy_tests/Browser/Alpine/Entangle/EntangleNestedArray.php
<?php namespace LegacyTests\Browser\Alpine\Entangle; use Livewire\Component as BaseComponent; class EntangleNestedArray extends BaseComponent { public $list = []; public function addList() { $this->list[] = ['id' => count($this->list)]; } public function removeList() { array...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false
livewire/livewire
https://github.com/livewire/livewire/blob/f2f58e728b8e834780be780ee727a85e9513d56b/legacy_tests/Browser/Alpine/Entangle/Test.php
legacy_tests/Browser/Alpine/Entangle/Test.php
<?php namespace LegacyTests\Browser\Alpine\Entangle; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, [ Component::class, ]) /** ...
php
MIT
f2f58e728b8e834780be780ee727a85e9513d56b
2026-01-04T15:02:34.292445Z
false