Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace LegacyTests\Browser\Loading; use Laravel\Dusk\Browser; use Livewire\Livew..
Decoded Output download
<?php
namespace LegacyTests\Browser\Loading; use Laravel\Dusk\Browser; use Livewire\Livewire; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, Component::class)->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("@button"); $browser->pause(1); $browser->assertVisible("@show"); $browser->assertNotVisible("@hide"); $browser->assertHasClass("@add-class", "foo"); $browser->assertClassMissing("@remove-class", "hidden"); $browser->assertAttribute("@add-attr", "disabled", "true"); $browser->assertAttributeMissing("@remove-attr", "disabled"); $browser->assertAttribute("@add-both", "disabled", "true"); $browser->assertAttributeMissing("@remove-both", "disabled"); $browser->assertHasClass("@add-both", "foo"); $browser->assertClassMissing("@remove-both", "hidden"); $browser->assertNotVisible("@targeting"); $browser->assertNotVisible("@targeting-both"); $browser->assertNotVisible("@targeting-param"); $browser->assertNotVisible("@targeting-js-param"); $browser->assertClassMissing("@self-target-button", "foo"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("@button"); $browser->pause(101); $browser->assertNotVisible("@show-w-delay"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("@button"); $browser->pause(225); $browser->assertVisible("@show-w-delay"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("@target-button"); $browser->waitFor("@targeting"); $browser->assertVisible("@targeting-both"); $browser->assertNotVisible("@target-top-level-property"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("@target-button-w-param"); $browser->waitFor("@targeting"); $browser->assertVisible("@targeting-both"); $browser->assertVisible("@targeting-param"); $browser->assertVisible("@targeting-js-param"); $browser->assertNotVisible("@target-top-level-property"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("@target-button-w-js-object-param"); $browser->waitFor("@targeting"); $browser->assertVisible("@targeting-both"); $browser->assertVisible("@targeting-js-object-param"); $browser->assertNotVisible("@targeting-js-wrong-object-param"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("@self-target-button"); $browser->assertNotVisible("@targeting"); $browser->assertVisible("@targeting-both"); $browser->assertNotVisible("@target-top-level-property"); $browser->assertHasClass("@self-target-button", "foo"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->check("@self-target-model"); $browser->assertNotVisible("@targeting"); $browser->assertNotVisible("@targeting-both"); $browser->assertNotVisible("@target-top-level-property"); $browser->assertHasClass("@self-target-model", "foo"); })->tap($this->assertInitialState())->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->type("@nested-property-input", "a"); $browser->waitFor("@target-top-level-property"); $browser->assertNotVisible("@targeting"); $browser->assertNotVisible("@targeting-both"); $browser->assertVisible("@target-top-level-property"); }); }); } public function test_different_display_properties_when_loading() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, CustomDisplayProperty::class)->assertScript("getComputedStyle(document.querySelector('[dusk="default"]')).display", "none")->assertScript("getComputedStyle(document.querySelector('[dusk="inline-block"]')).display", "none")->assertScript("getComputedStyle(document.querySelector('[dusk="inline"]')).display", "none")->assertScript("getComputedStyle(document.querySelector('[dusk="block"]')).display", "none")->assertScript("getComputedStyle(document.querySelector('[dusk="flex"]')).display", "none")->assertScript("getComputedStyle(document.querySelector('[dusk="table"]')).display", "none")->assertScript("getComputedStyle(document.querySelector('[dusk="grid"]')).display", "none")->assertScript("getComputedStyle(document.querySelector('[dusk="inline-flex"]')).display", "none")->waitForLivewire(function ($b) { $b->click("@refresh"); $b->pause(50); $b->assertScript("getComputedStyle(document.querySelector('[dusk="default"]')).display", "inline-block"); $b->assertScript("getComputedStyle(document.querySelector('[dusk="inline-block"]')).display", "inline-block"); $b->assertScript("getComputedStyle(document.querySelector('[dusk="inline"]')).display", "inline"); $b->assertScript("getComputedStyle(document.querySelector('[dusk="block"]')).display", "block"); $b->assertScript("getComputedStyle(document.querySelector('[dusk="flex"]')).display", "flex"); $b->assertScript("getComputedStyle(document.querySelector('[dusk="table"]')).display", "table"); $b->assertScript("getComputedStyle(document.querySelector('[dusk="grid"]')).display", "grid"); $b->assertScript("getComputedStyle(document.querySelector('[dusk="inline-flex"]')).display", "inline-flex"); }); }); } public function test_different_delay_durations() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, ComponentWithLoadingDelays::class)->assertNotVisible("@delay-none")->assertNotVisible("@delay-shortest")->waitForLivewire(function (Browser $browser) { $browser->click("@load")->assertNotVisible("@delay-shortest")->assertVisible("@delay-none"); })->waitForLivewire(function (Browser $browser) { $browser->click("@load")->pause(51)->assertNotVisible("@delay-shorter")->assertVisible("@delay-shortest"); })->waitForLivewire(function (Browser $browser) { $browser->click("@load")->pause(101)->assertNotVisible("@delay-short")->assertVisible("@delay-shorter"); })->waitForLivewire(function (Browser $browser) { $browser->click("@load")->pause(151)->assertNotVisible("@delay")->assertNotVisible("@delay-default")->assertVisible("@delay-short"); })->waitForLivewire(function (Browser $browser) { $browser->click("@load")->pause(201)->assertNotVisible("@delay-long")->assertVisible("@delay")->assertVisible("@delay-default"); })->waitForLivewire(function (Browser $browser) { $browser->click("@load")->pause(301)->assertNotVisible("@delay-longer")->assertVisible("@delay-long"); })->waitForLivewire(function (Browser $browser) { $browser->click("@load")->pause(501)->assertNotVisible("@delay-longest")->assertVisible("@delay-longer"); }); }); } protected function assertInitialState() { return function (Browser $browser) { $browser->assertNotVisible("@show"); $browser->assertVisible("@hide"); $browser->assertNotVisible("@show-w-delay"); $browser->assertAttribute("@add-class", "class", ''); $browser->assertAttribute("@remove-class", "class", "foo"); $browser->assertAttributeMissing("@add-attr", "disabled"); $browser->assertAttribute("@remove-attr", "disabled", "true"); $browser->assertClassMissing("@add-both", "foo"); $browser->assertHasClass("@remove-both", "foo"); $browser->assertAttributeMissing("@add-both", "disabled"); $browser->assertAttribute("@remove-both", "disabled", "true"); $browser->assertNotVisible("@targeting"); $browser->assertNotVisible("@targeting-both"); $browser->assertNotVisible("@targeting-param"); $browser->assertNotVisible("@targeting-js-param"); $browser->assertNotVisible("@targeting-js-object-param"); $browser->assertNotVisible("@targeting-js-wrong-object-param"); $browser->assertClassMissing("@self-target-button", "foo"); $browser->assertClassMissing("@self-target-model", "foo"); }; } } ?>
Did this file decode correctly?
Original Code
<?php
namespace LegacyTests\Browser\Loading; use Laravel\Dusk\Browser; use Livewire\Livewire; use LegacyTests\Browser\TestCase; class Test extends TestCase { public function test() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, Component::class)->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("\x40\x62\165\164\164\x6f\156"); $browser->pause(1); $browser->assertVisible("\100\x73\x68\157\x77"); $browser->assertNotVisible("\x40\150\x69\144\x65"); $browser->assertHasClass("\x40\x61\x64\x64\x2d\143\154\x61\163\163", "\146\157\x6f"); $browser->assertClassMissing("\100\x72\145\155\x6f\166\x65\x2d\x63\154\x61\x73\x73", "\150\151\x64\x64\x65\x6e"); $browser->assertAttribute("\100\x61\x64\144\55\x61\x74\164\162", "\x64\x69\163\x61\142\x6c\145\144", "\x74\x72\x75\x65"); $browser->assertAttributeMissing("\100\162\x65\155\157\166\145\x2d\141\x74\164\162", "\x64\151\163\x61\x62\154\145\x64"); $browser->assertAttribute("\100\x61\x64\x64\55\142\x6f\164\150", "\144\x69\163\141\x62\154\x65\x64", "\x74\162\x75\145"); $browser->assertAttributeMissing("\x40\x72\145\x6d\x6f\166\x65\x2d\142\x6f\164\150", "\144\x69\163\x61\142\154\145\144"); $browser->assertHasClass("\x40\141\x64\144\x2d\x62\157\x74\150", "\146\157\157"); $browser->assertClassMissing("\x40\x72\145\x6d\x6f\x76\x65\55\142\x6f\164\150", "\150\151\x64\x64\x65\156"); $browser->assertNotVisible("\x40\164\141\x72\147\x65\164\151\x6e\147"); $browser->assertNotVisible("\x40\x74\141\162\147\x65\x74\x69\156\x67\x2d\142\157\x74\150"); $browser->assertNotVisible("\x40\164\x61\x72\x67\145\x74\151\x6e\x67\55\160\141\x72\141\155"); $browser->assertNotVisible("\x40\164\141\x72\x67\145\x74\151\x6e\x67\x2d\152\163\55\x70\x61\162\141\155"); $browser->assertClassMissing("\100\163\x65\154\x66\x2d\x74\x61\162\x67\x65\x74\x2d\x62\x75\x74\x74\157\156", "\x66\x6f\x6f"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("\x40\142\165\x74\164\157\x6e"); $browser->pause(101); $browser->assertNotVisible("\x40\163\x68\x6f\x77\x2d\x77\55\x64\145\154\141\x79"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("\100\x62\x75\x74\164\x6f\x6e"); $browser->pause(225); $browser->assertVisible("\x40\163\150\157\167\55\167\55\144\145\154\141\x79"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("\x40\x74\141\x72\147\145\164\x2d\142\165\164\164\157\x6e"); $browser->waitFor("\100\164\x61\x72\x67\145\x74\151\x6e\x67"); $browser->assertVisible("\x40\164\141\x72\147\x65\x74\151\156\147\x2d\x62\157\x74\x68"); $browser->assertNotVisible("\100\x74\141\x72\147\145\164\x2d\x74\157\x70\55\154\x65\166\145\x6c\x2d\x70\x72\x6f\x70\x65\x72\164\171"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("\100\x74\x61\x72\147\x65\164\55\x62\x75\164\164\157\156\x2d\x77\55\x70\x61\162\141\x6d"); $browser->waitFor("\100\x74\141\162\x67\145\164\x69\156\x67"); $browser->assertVisible("\x40\164\141\162\x67\x65\x74\151\156\147\55\x62\x6f\x74\150"); $browser->assertVisible("\100\164\141\162\x67\145\164\151\x6e\147\55\160\x61\162\x61\x6d"); $browser->assertVisible("\100\164\141\162\x67\145\x74\x69\156\147\x2d\x6a\x73\x2d\160\x61\x72\x61\x6d"); $browser->assertNotVisible("\x40\164\x61\x72\147\x65\x74\x2d\x74\157\160\x2d\x6c\x65\166\145\154\55\x70\162\x6f\x70\x65\x72\x74\171"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("\100\164\141\x72\x67\145\x74\55\x62\165\164\x74\157\x6e\55\x77\55\152\x73\x2d\x6f\x62\x6a\x65\x63\164\x2d\160\141\x72\x61\155"); $browser->waitFor("\100\164\x61\162\147\x65\x74\x69\156\x67"); $browser->assertVisible("\100\164\x61\x72\x67\145\164\151\x6e\147\x2d\142\x6f\x74\150"); $browser->assertVisible("\x40\164\141\x72\147\145\x74\151\x6e\x67\x2d\152\x73\55\157\x62\152\x65\x63\164\55\x70\141\x72\141\155"); $browser->assertNotVisible("\100\x74\141\x72\147\x65\164\151\156\x67\55\152\x73\x2d\x77\x72\157\156\x67\55\157\x62\152\x65\143\164\55\160\141\x72\x61\x6d"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->click("\x40\x73\145\x6c\x66\55\164\x61\x72\x67\x65\164\55\142\x75\164\164\157\156"); $browser->assertNotVisible("\100\x74\141\x72\147\x65\164\151\x6e\x67"); $browser->assertVisible("\100\164\141\x72\147\145\164\151\156\147\55\142\157\x74\x68"); $browser->assertNotVisible("\100\164\141\162\147\145\164\x2d\x74\x6f\160\x2d\154\145\x76\x65\x6c\x2d\x70\x72\157\x70\x65\x72\164\171"); $browser->assertHasClass("\100\x73\x65\154\x66\55\164\141\x72\147\145\x74\55\142\165\x74\164\x6f\156", "\x66\x6f\x6f"); })->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->check("\100\163\x65\x6c\x66\55\x74\x61\x72\x67\145\164\x2d\x6d\x6f\x64\x65\x6c"); $browser->assertNotVisible("\x40\x74\141\162\147\145\x74\151\x6e\x67"); $browser->assertNotVisible("\x40\x74\x61\162\x67\x65\x74\151\x6e\147\55\142\x6f\x74\x68"); $browser->assertNotVisible("\x40\164\141\x72\147\145\x74\55\164\157\x70\x2d\x6c\145\x76\x65\x6c\55\160\162\157\x70\x65\x72\x74\171"); $browser->assertHasClass("\x40\163\145\154\146\55\164\x61\x72\x67\x65\x74\x2d\155\x6f\x64\x65\154", "\x66\157\x6f"); })->tap($this->assertInitialState())->tap($this->assertInitialState())->waitForLivewire(function (Browser $browser) { $browser->type("\x40\156\x65\163\x74\145\144\55\x70\162\157\x70\x65\162\x74\x79\x2d\151\x6e\x70\x75\x74", "\141"); $browser->waitFor("\x40\x74\x61\x72\147\x65\164\55\x74\x6f\160\55\154\x65\166\145\x6c\55\x70\162\x6f\160\145\x72\x74\171"); $browser->assertNotVisible("\100\x74\x61\x72\147\145\164\x69\x6e\x67"); $browser->assertNotVisible("\100\164\141\162\x67\x65\164\151\156\x67\x2d\142\157\x74\x68"); $browser->assertVisible("\x40\x74\141\x72\x67\x65\x74\55\x74\157\160\55\x6c\x65\x76\x65\x6c\55\160\162\x6f\x70\145\x72\x74\x79"); }); }); } public function test_different_display_properties_when_loading() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, CustomDisplayProperty::class)->assertScript("\147\145\164\103\x6f\155\x70\165\x74\145\144\123\164\171\x6c\x65\x28\144\x6f\x63\165\155\145\156\164\56\161\165\x65\x72\171\x53\145\x6c\145\143\164\157\x72\x28\x27\x5b\144\x75\163\153\x3d\x22\x64\x65\146\x61\x75\154\x74\42\135\x27\51\51\x2e\144\151\x73\160\x6c\141\171", "\x6e\157\156\x65")->assertScript("\x67\145\x74\103\157\155\160\x75\x74\145\x64\x53\x74\171\154\145\50\x64\x6f\x63\x75\155\145\156\164\56\161\165\145\162\171\123\145\154\x65\x63\164\157\162\x28\x27\133\144\x75\x73\x6b\x3d\42\151\156\x6c\x69\x6e\145\55\x62\154\157\143\153\42\135\x27\x29\x29\56\144\151\163\x70\x6c\x61\171", "\x6e\157\156\145")->assertScript("\x67\145\x74\x43\157\155\160\165\164\145\x64\123\164\x79\x6c\145\x28\144\157\143\165\x6d\x65\x6e\164\56\161\x75\145\x72\x79\123\x65\154\145\143\164\157\x72\x28\x27\x5b\144\x75\x73\153\x3d\x22\151\156\154\151\x6e\x65\x22\x5d\47\51\51\x2e\144\151\163\160\154\x61\x79", "\156\157\156\x65")->assertScript("\147\145\164\x43\x6f\x6d\160\165\164\x65\144\123\x74\x79\154\x65\x28\x64\157\143\165\x6d\145\156\164\56\161\165\x65\162\171\x53\x65\154\x65\143\x74\x6f\162\x28\47\x5b\x64\165\x73\153\x3d\42\x62\154\x6f\x63\x6b\x22\x5d\x27\x29\x29\x2e\x64\151\x73\160\154\x61\x79", "\156\x6f\156\x65")->assertScript("\147\x65\164\x43\x6f\155\x70\165\164\x65\144\x53\x74\x79\x6c\x65\x28\144\157\143\x75\x6d\x65\x6e\x74\x2e\161\165\x65\x72\171\123\145\154\145\143\x74\157\x72\x28\47\133\144\165\163\153\75\x22\146\x6c\x65\170\42\135\x27\x29\51\x2e\x64\x69\x73\160\x6c\141\171", "\x6e\x6f\x6e\x65")->assertScript("\147\x65\164\103\x6f\x6d\160\165\x74\x65\144\x53\x74\x79\x6c\145\x28\144\157\143\x75\x6d\145\x6e\164\56\161\x75\145\162\171\x53\145\154\145\143\x74\x6f\x72\50\x27\x5b\144\165\x73\153\x3d\x22\164\141\x62\x6c\x65\x22\135\47\x29\51\x2e\144\151\x73\x70\x6c\141\171", "\x6e\157\156\145")->assertScript("\147\x65\x74\103\x6f\x6d\160\x75\164\145\144\x53\x74\171\x6c\x65\50\x64\x6f\143\x75\155\x65\156\164\x2e\161\165\145\162\x79\x53\145\x6c\x65\x63\164\157\x72\x28\x27\x5b\144\165\x73\x6b\x3d\42\x67\x72\151\144\x22\x5d\x27\51\51\56\x64\151\x73\x70\154\x61\x79", "\x6e\x6f\156\145")->assertScript("\x67\x65\164\x43\157\x6d\x70\x75\x74\x65\x64\x53\x74\171\154\x65\x28\144\x6f\x63\165\x6d\x65\x6e\x74\x2e\161\x75\145\162\x79\123\145\x6c\145\143\x74\157\x72\x28\x27\133\144\x75\163\153\75\42\x69\156\154\x69\156\145\x2d\146\154\x65\170\42\x5d\x27\x29\x29\56\144\x69\163\160\x6c\141\171", "\156\x6f\x6e\145")->waitForLivewire(function ($b) { $b->click("\100\162\145\x66\162\x65\x73\150"); $b->pause(50); $b->assertScript("\x67\x65\x74\x43\157\155\160\165\164\145\144\123\164\171\154\145\50\x64\157\x63\165\155\x65\x6e\164\56\x71\x75\145\x72\171\123\x65\x6c\x65\143\164\x6f\x72\50\47\x5b\144\165\x73\153\x3d\x22\x64\x65\146\141\165\x6c\x74\x22\135\x27\x29\51\x2e\144\x69\163\x70\x6c\141\x79", "\x69\x6e\x6c\151\x6e\145\x2d\142\x6c\x6f\x63\153"); $b->assertScript("\147\x65\x74\103\x6f\155\160\x75\x74\x65\144\123\164\x79\x6c\x65\50\144\157\x63\x75\155\145\x6e\x74\56\161\165\x65\x72\171\x53\145\154\x65\x63\164\157\162\50\x27\x5b\x64\x75\x73\153\x3d\42\x69\x6e\154\151\x6e\145\55\142\x6c\157\x63\153\42\x5d\47\51\51\56\x64\x69\x73\160\x6c\x61\171", "\x69\x6e\154\x69\x6e\145\x2d\x62\154\157\143\x6b"); $b->assertScript("\147\x65\x74\x43\157\x6d\160\165\164\145\x64\123\164\x79\x6c\x65\50\x64\157\143\x75\x6d\x65\156\164\x2e\x71\165\145\x72\x79\123\x65\154\x65\x63\x74\x6f\162\50\x27\x5b\x64\x75\163\x6b\75\42\151\x6e\x6c\151\156\145\42\x5d\x27\51\51\x2e\x64\x69\x73\x70\154\x61\171", "\151\156\154\x69\156\x65"); $b->assertScript("\x67\x65\164\x43\157\x6d\160\x75\x74\x65\x64\123\x74\x79\x6c\x65\50\x64\157\x63\x75\x6d\145\x6e\x74\x2e\161\165\145\162\x79\x53\x65\x6c\x65\143\x74\x6f\162\50\x27\x5b\144\165\163\x6b\75\42\142\154\x6f\x63\153\x22\135\x27\x29\x29\56\x64\151\x73\160\x6c\x61\171", "\x62\x6c\x6f\143\x6b"); $b->assertScript("\147\145\164\103\x6f\x6d\x70\x75\x74\x65\144\123\164\171\x6c\x65\50\x64\157\143\x75\x6d\x65\156\x74\56\161\165\145\162\x79\123\x65\x6c\x65\143\x74\157\x72\50\47\x5b\144\165\x73\153\75\x22\x66\154\145\x78\x22\135\47\51\x29\56\144\x69\x73\x70\x6c\141\x79", "\x66\x6c\x65\170"); $b->assertScript("\147\x65\x74\x43\157\155\160\165\x74\x65\x64\x53\x74\171\x6c\x65\x28\144\x6f\x63\165\x6d\x65\x6e\164\x2e\x71\x75\145\x72\x79\x53\x65\x6c\x65\x63\x74\x6f\x72\x28\47\x5b\144\x75\163\153\75\x22\164\141\142\x6c\145\x22\135\x27\x29\x29\56\x64\x69\x73\160\x6c\x61\171", "\164\141\x62\154\x65"); $b->assertScript("\147\145\164\x43\x6f\x6d\x70\165\164\145\144\123\164\171\154\x65\x28\x64\157\x63\x75\155\x65\x6e\164\56\161\165\145\162\x79\123\145\x6c\x65\143\164\157\162\x28\x27\x5b\144\x75\x73\153\x3d\x22\147\x72\151\144\42\x5d\47\51\x29\56\x64\x69\x73\x70\154\x61\x79", "\x67\x72\151\144"); $b->assertScript("\x67\x65\x74\x43\x6f\x6d\x70\165\164\145\144\123\x74\x79\154\x65\x28\x64\157\143\165\155\x65\156\x74\56\161\x75\145\x72\171\123\x65\154\x65\143\164\x6f\162\50\47\x5b\x64\x75\x73\x6b\x3d\42\x69\x6e\x6c\151\156\x65\x2d\x66\x6c\x65\x78\x22\135\47\x29\51\x2e\x64\x69\163\x70\x6c\141\171", "\151\x6e\154\x69\156\x65\x2d\146\154\145\170"); }); }); } public function test_different_delay_durations() { $this->browse(function ($browser) { $this->visitLivewireComponent($browser, ComponentWithLoadingDelays::class)->assertNotVisible("\x40\144\145\x6c\141\171\55\156\157\156\145")->assertNotVisible("\100\x64\145\x6c\141\171\55\x73\150\x6f\x72\164\x65\163\x74")->waitForLivewire(function (Browser $browser) { $browser->click("\100\154\x6f\141\144")->assertNotVisible("\x40\144\145\x6c\x61\171\55\x73\x68\157\162\x74\x65\163\x74")->assertVisible("\x40\x64\x65\x6c\141\x79\55\156\157\x6e\x65"); })->waitForLivewire(function (Browser $browser) { $browser->click("\100\154\157\x61\x64")->pause(51)->assertNotVisible("\100\x64\x65\x6c\141\x79\x2d\163\x68\157\x72\164\145\x72")->assertVisible("\x40\144\145\x6c\x61\x79\x2d\x73\x68\157\x72\x74\x65\163\x74"); })->waitForLivewire(function (Browser $browser) { $browser->click("\x40\x6c\157\141\x64")->pause(101)->assertNotVisible("\100\144\x65\154\141\171\x2d\163\150\x6f\x72\164")->assertVisible("\100\144\145\x6c\x61\x79\55\x73\x68\x6f\x72\164\x65\x72"); })->waitForLivewire(function (Browser $browser) { $browser->click("\100\154\157\x61\x64")->pause(151)->assertNotVisible("\x40\x64\145\x6c\x61\171")->assertNotVisible("\x40\x64\145\154\x61\x79\x2d\144\x65\x66\x61\x75\154\x74")->assertVisible("\x40\x64\x65\154\141\171\x2d\x73\150\157\162\164"); })->waitForLivewire(function (Browser $browser) { $browser->click("\x40\x6c\x6f\x61\x64")->pause(201)->assertNotVisible("\x40\144\145\154\141\171\x2d\x6c\157\156\147")->assertVisible("\100\144\x65\154\141\171")->assertVisible("\x40\x64\145\x6c\141\x79\x2d\144\x65\x66\141\165\154\164"); })->waitForLivewire(function (Browser $browser) { $browser->click("\x40\154\x6f\x61\144")->pause(301)->assertNotVisible("\x40\x64\145\x6c\x61\171\55\x6c\157\156\x67\x65\162")->assertVisible("\100\144\x65\154\141\x79\x2d\154\x6f\x6e\x67"); })->waitForLivewire(function (Browser $browser) { $browser->click("\x40\154\x6f\141\144")->pause(501)->assertNotVisible("\100\x64\145\x6c\141\x79\55\154\x6f\x6e\x67\145\163\164")->assertVisible("\x40\144\145\154\141\171\x2d\154\157\x6e\x67\145\162"); }); }); } protected function assertInitialState() { return function (Browser $browser) { $browser->assertNotVisible("\x40\x73\x68\157\167"); $browser->assertVisible("\x40\x68\x69\x64\145"); $browser->assertNotVisible("\x40\x73\x68\x6f\x77\55\167\x2d\144\145\x6c\x61\x79"); $browser->assertAttribute("\x40\141\x64\144\x2d\x63\154\x61\163\x73", "\x63\x6c\141\163\163", ''); $browser->assertAttribute("\x40\x72\145\155\x6f\166\x65\55\143\x6c\x61\163\163", "\x63\154\x61\163\x73", "\146\157\157"); $browser->assertAttributeMissing("\100\x61\x64\144\55\x61\x74\164\x72", "\x64\x69\163\x61\142\x6c\x65\x64"); $browser->assertAttribute("\x40\162\145\x6d\157\166\145\55\141\x74\x74\x72", "\144\x69\x73\141\142\154\145\x64", "\164\162\165\145"); $browser->assertClassMissing("\100\x61\x64\x64\55\142\x6f\164\150", "\146\157\x6f"); $browser->assertHasClass("\100\162\x65\x6d\157\x76\x65\x2d\x62\157\x74\150", "\146\x6f\x6f"); $browser->assertAttributeMissing("\x40\141\144\x64\x2d\x62\157\x74\150", "\144\x69\x73\x61\142\x6c\145\x64"); $browser->assertAttribute("\x40\162\x65\x6d\x6f\166\145\x2d\142\157\x74\x68", "\144\x69\163\141\x62\154\145\x64", "\x74\162\165\145"); $browser->assertNotVisible("\x40\164\141\162\147\145\164\151\156\x67"); $browser->assertNotVisible("\100\164\141\162\x67\145\164\151\x6e\x67\x2d\142\157\164\150"); $browser->assertNotVisible("\100\x74\x61\x72\x67\145\x74\x69\x6e\x67\55\160\x61\x72\x61\155"); $browser->assertNotVisible("\100\x74\141\x72\x67\x65\x74\x69\156\x67\55\x6a\163\x2d\160\141\162\x61\x6d"); $browser->assertNotVisible("\100\x74\141\x72\147\x65\x74\x69\156\147\55\152\163\x2d\x6f\142\152\x65\x63\164\55\x70\x61\162\141\155"); $browser->assertNotVisible("\x40\164\141\162\x67\145\164\x69\x6e\x67\55\152\x73\55\x77\x72\x6f\156\147\x2d\x6f\142\x6a\145\143\x74\55\160\141\x72\x61\155"); $browser->assertClassMissing("\100\x73\x65\x6c\146\55\164\141\162\147\145\164\55\142\165\164\x74\157\156", "\x66\157\157"); $browser->assertClassMissing("\100\x73\x65\154\146\x2d\164\x61\162\147\145\164\x2d\x6d\157\x64\145\154", "\x66\x6f\x6f"); }; } }
Function Calls
None |
Stats
MD5 | 2e249d6670462856766fd7254b0cd371 |
Eval Count | 0 |
Decode Time | 92 ms |