import { expect, test } from '@playwright/test';

test.describe('Resource', () => {
  test('should handle the resource correctly', async ({ page }) => {
    await page.goto('/qwikrouter-test/issue7254/');

    await page.getByText('Data: hello Bar');

    await page.getByRole('button', { name: 'Reset' }).click();

    await expect(page.getByText('Data: Foo Bar')).toBeVisible();
  });
});
