From e556b89cbb8cdeaca76662448b6b48d057707e4f Mon Sep 17 00:00:00 2001 From: Alexandr Chernyaev Date: Sun, 3 Nov 2024 02:08:51 +0300 Subject: [PATCH] test --- tests/App/Layouts/DependentSumListener.php | 8 ++++++++ tests/App/Screens/DependentListenerModalScreen.php | 10 ---------- tests/App/Screens/DependentListenerScreen.php | 10 ---------- tests/Browser/LoginTest.php | 2 +- 4 files changed, 9 insertions(+), 21 deletions(-) diff --git a/tests/App/Layouts/DependentSumListener.php b/tests/App/Layouts/DependentSumListener.php index be1317b63..766e97416 100644 --- a/tests/App/Layouts/DependentSumListener.php +++ b/tests/App/Layouts/DependentSumListener.php @@ -40,6 +40,14 @@ protected function layouts(): array { return [ Layout::rows([ + Input::make('first') + ->title('First argument') + ->type('number'), + + Input::make('second') + ->title('Second argument') + ->type('number'), + Input::make('sum') ->title('SUM') ->help('The result of adding the first argument and the second') diff --git a/tests/App/Screens/DependentListenerModalScreen.php b/tests/App/Screens/DependentListenerModalScreen.php index 94fcf09b8..fa528ef08 100644 --- a/tests/App/Screens/DependentListenerModalScreen.php +++ b/tests/App/Screens/DependentListenerModalScreen.php @@ -61,16 +61,6 @@ public function layout(): array { return [ Layout::modal('modal-listener', [ - Layout::rows([ - Input::make('first') - ->title('First argument') - ->type('number'), - - Input::make('second') - ->title('Second argument') - ->type('number'), - ]), - DependentSumListener::class, ])->title('Listener in modal'), ]; diff --git a/tests/App/Screens/DependentListenerScreen.php b/tests/App/Screens/DependentListenerScreen.php index d77a82076..69b6c291a 100644 --- a/tests/App/Screens/DependentListenerScreen.php +++ b/tests/App/Screens/DependentListenerScreen.php @@ -50,16 +50,6 @@ public function commandBar(): array public function layout(): array { return [ - Layout::rows([ - Input::make('first') - ->title('First argument') - ->type('number'), - - Input::make('second') - ->title('Second argument') - ->type('number'), - ]), - DependentSumListener::class, ]; } diff --git a/tests/Browser/LoginTest.php b/tests/Browser/LoginTest.php index 101b5afb9..497ef8a78 100644 --- a/tests/Browser/LoginTest.php +++ b/tests/Browser/LoginTest.php @@ -36,7 +36,7 @@ public function testLogout(): void //Redirect to home $browser ->visitRoute('platform.login') - ->waitForLocation('/home'); + ->waitForLocation('/'); //Logout $browser