Skip to content

Commit

Permalink
revert hidden checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Nov 28, 2024
1 parent 4f4709c commit a0a0403
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions e2e/hot-reload.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@ test.describe('hot reload', () => {
await expect(page.getByTestId('count')).toHaveText('1');
await modifyFile('src/pages/index.tsx', 'Home Page', 'Modified Page');
await page.waitForTimeout(100);
await expect(page.getByText('Home Page')).toBeHidden();
await expect(page.getByText('Modified Page')).toBeVisible();
await expect(page.getByTestId('count')).toHaveText('1');
await page.getByTestId('increment').click();
await expect(page.getByTestId('count')).toHaveText('2');
await modifyFile('src/components/counter.tsx', 'Increment', 'Plus One');
await page.waitForTimeout(100);
await expect(page.getByText('Increment')).toBeHidden();
await expect(page.getByText('Plus One')).toBeVisible();
await expect(page.getByTestId('count')).toHaveText('2');
await page.getByTestId('increment').click();
Expand Down

0 comments on commit a0a0403

Please sign in to comment.