Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe authored and github-actions[bot] committed Oct 1, 2024
1 parent e9b70e1 commit 4bce413
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ final class BS4PaginationVisualsTest extends ThemedTestCase
protected function setupBasicTableForBrowsing()
{
return $this->setupBasicTableForLivewire()
->call('setTheme', 'bootstrap-4');
->call('setTheme', 'bootstrap-4');
}

protected function setupBasicTableSingleRecord()
{
return $this->setupSingleRecordBasicTable()
->call('setTheme', 'bootstrap-4');
->call('setTheme', 'bootstrap-4');
}


public function test_pagination_shows_by_default(): void
{
$this->setupBasicTableSingleRecord()
Expand Down Expand Up @@ -75,5 +74,4 @@ public function test_detailed_pagination_is_not_displayed_simple_bs4(): void
->assertDontSeeHtml('<span>Showing</span>')
->assertDontSeeHtml('<span>to</span>');
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@

final class BS5PaginationVisualsTest extends ThemedTestCase
{

protected function setupBasicTableForBrowsing()
{
return $this->setupBasicTableForLivewire()
->call('setTheme', 'bootstrap-5');
->call('setTheme', 'bootstrap-5');
}

protected function setupBasicTableSingleRecord()
{
return $this->setupSingleRecordBasicTable()
->call('setTheme', 'bootstrap-5');
->call('setTheme', 'bootstrap-5');
}

public function test_pagination_shows_by_default(): void
Expand All @@ -35,7 +34,6 @@ public function test_per_page_shows_by_default(): void
->assertSeeHtml('<select wire:model.live="perPage" id="table-perPage" class="form-select">');
}


public function test_detailed_pagination_is_displayed_standard_bs5(): void
{
$this->tableWithStandardDetailedPagination()
Expand Down Expand Up @@ -76,5 +74,4 @@ public function test_detailed_pagination_is_not_displayed_simple_bs5(): void
->assertDontSeeHtml('<span>Showing</span>')
->assertDontSeeHtml('<span>to</span>');
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ final class TWPaginationVisualsTest extends ThemedTestCase
protected function setupBasicTableForBrowsing()
{
return $this->setupBasicTableForLivewire()
->call('setTheme', 'tailwind');
->call('setTheme', 'tailwind');
}

protected function setupBasicTableSingleRecord()
{
return $this->setupSingleRecordBasicTable()
->call('setTheme', 'tailwind');
->call('setTheme', 'tailwind');
}

public function test_pagination_shows_by_default(): void
Expand Down Expand Up @@ -65,7 +65,7 @@ public function test_per_page_is_removed_when_pagination_disabled(): void
public function test_paged_results_label_shows_with_pagination_enabled_and_more_than_one_page(): void
{
$this->setupBasicTableSingleRecord()
->assertSeeHtml('<p class="paged-pagination-results text-sm text-gray-700 leading-5 dark:text-white">');
->assertSeeHtml('<p class="paged-pagination-results text-sm text-gray-700 leading-5 dark:text-white">');
}

public function test_paged_results_label_doesnt_show_with_pagination_enabled_and_less_than_one_page(): void
Expand Down Expand Up @@ -194,7 +194,6 @@ public function test_detailed_pagination_is_not_displayed_simple_tw(): void
->assertDontSeeHtml('<span>to</span>');
}


public function test_pagination_field_can_set_colors(): void
{
$this->setupBasicTableForBrowsing()
Expand Down
7 changes: 4 additions & 3 deletions tests/Traits/Visuals/Themed/ThemedTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
abstract class ThemedTestCase extends TestCase
{
abstract protected function setupBasicTableForBrowsing();

abstract protected function setupBasicTableSingleRecord();

protected function setupBasicTableForLivewire()
Expand All @@ -25,8 +26,8 @@ public function pagination_shows_by_default()
public function setupSingleRecordBasicTable()
{
return $this->setupBasicTableForLivewire()
->call('setPerPageAccepted', [1])
->call('setPerPage', 1);
->call('setPerPageAccepted', [1])
->call('setPerPage', 1);
}

public function tableWithStandardDetailedPagination()
Expand All @@ -40,4 +41,4 @@ public function tableWithSimpleDetailedPagination()
return $this->setupBasicTableSingleRecord()
->call('enableDetailedPagination', 'simple');
}
}
}

0 comments on commit 4bce413

Please sign in to comment.