# Instructions

- Following Playwright test failed.
- Explain why, be concise, respect Playwright best practices.
- Provide a snippet of code with the fix, if possible.

# Test info

- Name: debug_tour.spec.js >> debug tour-pg Excel upload
- Location: tests/debug_tour.spec.js:4:1

# Error details

```
Error: ENOENT: no such file or directory, stat '/tmp/test_stores.csv'
```

# Page snapshot

```yaml
- generic [ref=e2]: 404 page not found
```

# Test source

```ts
  1  | const { test, expect, devices } = require('@playwright/test');
  2  | const path = require('path');
  3  | 
  4  | test('debug tour-pg Excel upload', async ({ page }) => {
  5  |   const consoleMsgs = [];
  6  |   page.on('console', m => consoleMsgs.push(`[${m.type()}] ${m.text()}`));
  7  |   page.on('pageerror', e => consoleMsgs.push(`[PAGEERROR] ${e.message}`));
  8  | 
  9  |   await page.addInitScript(() => {
  10 |     localStorage.setItem('lm360-session', JSON.stringify({
  11 |       empId: 'harish', name: 'Harish', role: 'admin',
  12 |       loginAt: new Date().toISOString(), source: 'hub'
  13 |     }));
  14 |   });
  15 | 
  16 |   await page.goto('https://srv1111289.hstgr.cloud/tour-pg/');
  17 |   await page.waitForTimeout(1500);
  18 | 
  19 |   console.log('URL:', page.url());
  20 |   const xlsxLoaded = await page.evaluate(() => typeof XLSX !== 'undefined');
  21 |   console.log('XLSX loaded:', xlsxLoaded);
  22 | 
  23 |   // Upload the CSV via file input
> 24 |   await page.locator('#excel-file').setInputFiles('/tmp/test_stores.csv');
     |   ^ Error: ENOENT: no such file or directory, stat '/tmp/test_stores.csv'
  25 |   await page.waitForTimeout(1000);
  26 | 
  27 |   const previewVisible = await page.locator('#parsed-preview').isVisible();
  28 |   const btnGoDisabled = await page.locator('#btn-go').getAttribute('disabled');
  29 |   const toastText = await page.locator('#toast').textContent();
  30 |   const summaryHtml = (await page.locator('#parsed-summary').innerHTML()).slice(0, 500);
  31 | 
  32 |   console.log('parsed-preview visible:', previewVisible);
  33 |   console.log('btn-go disabled:', btnGoDisabled);
  34 |   console.log('toast text:', toastText);
  35 |   console.log('parsed-summary:', summaryHtml);
  36 |   console.log('Console messages:', consoleMsgs.join('\n'));
  37 |   
  38 |   expect(xlsxLoaded).toBe(true);
  39 | });
  40 | 
```