import { test, expect } from '@playwright/test'; // Test to verify the currently running application at port 9323 test('My Weekly To Do List should be accessible at port 9323', async ({ page }) => { // Navigate to the running application await page.goto('http://localhost:9323'); // Check that the main elements are present await expect(page).toHaveTitle(/My Weekly To Do List/); // Check for main UI elements await expect(page.getByText('My Weekly To Do List')).toBeVisible(); await expect(page.getByText('Weekly View')).toBeVisible(); }); test('Should be able to access tasks page from port 9323', async ({ page }) => { await page.goto('http://localhost:9323'); // Try to navigate to tasks page const tasksLink = page.getByText('Tasks'); await expect(tasksLink).toBeVisible(); });