mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
make sure e2e tests use the visible timer button only
This commit is contained in:
@@ -354,7 +354,10 @@ test('test that timer started on dashboard is visible on time page', async ({ pa
|
||||
|
||||
// Timer should still be running (the timer button should be red/active)
|
||||
await expect(
|
||||
page.locator('[data-testid="dashboard_timer"] [data-testid="timer_button"]')
|
||||
page
|
||||
.getByTestId('dashboard_timer')
|
||||
.getByTestId('timer_button')
|
||||
.and(page.locator(':visible'))
|
||||
).toHaveClass(/bg-red-400\/80/);
|
||||
|
||||
// Stop the timer
|
||||
|
||||
Reference in New Issue
Block a user