Slop cleanup
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
|
||||
test.describe('Sleep Timetable Timezone Alignment', () => {
|
||||
test.use({
|
||||
timezoneId: 'America/Los_Angeles',
|
||||
@@ -78,9 +80,6 @@ test.describe('Sleep Timetable Timezone Alignment', () => {
|
||||
if (markerBox) {
|
||||
// The marker is at 08:00, which is (8*60)/1440 = 33.33% from the top of the container
|
||||
// We can check if the cell at that height is green.
|
||||
const timetableContainer = page.locator('.relative');
|
||||
// Note: 'relative' is the container for the grid and marker.
|
||||
// We look for a green cell that intersects with the red marker's Y position.
|
||||
const allGreenCells = page.locator('.bg-green-500');
|
||||
const count = await allGreenCells.count();
|
||||
let foundAlignedCell = false;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
||||
|
||||
import { render, screen, fireEvent, waitFor } from '@testing-library/react';
|
||||
import '@testing-library/jest-dom';
|
||||
import SleepButton from '../../src/components/tracker/SleepButton';
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
||||
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import '@testing-library/jest-dom';
|
||||
import StatusBanner from '../../src/components/tracker/StatusBanner';
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { render, screen } from '@testing-library/react';
|
||||
|
||||
import '@testing-library/jest-dom';
|
||||
import { vi, describe, it, expect } from 'vitest';
|
||||
import Timetable from '../../../../src/components/stats/SleepTimetable';
|
||||
@@ -78,7 +80,6 @@ describe('SleepTimetable', () => {
|
||||
|
||||
// We are looking for the grid cells.
|
||||
// Since they don't have text, we look at their classes/backgrounds.
|
||||
const cells = container.querySelectorAll('.h-8');
|
||||
|
||||
const greenCells = container.querySelectorAll('.bg-green-500');
|
||||
expect(greenCells.length).toBeGreaterThan(0);
|
||||
|
||||
Reference in New Issue
Block a user