Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Nov 2, 2024
1 parent 9a307c7 commit e556b89
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
8 changes: 8 additions & 0 deletions tests/App/Layouts/DependentSumListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
10 changes: 0 additions & 10 deletions tests/App/Screens/DependentListenerModalScreen.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
];
Expand Down
10 changes: 0 additions & 10 deletions tests/App/Screens/DependentListenerScreen.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Browser/LoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testLogout(): void
//Redirect to home
$browser
->visitRoute('platform.login')
->waitForLocation('/home');
->waitForLocation('/');

//Logout
$browser
Expand Down

0 comments on commit e556b89

Please sign in to comment.