Skip to content

Commit

Permalink
test: add file upload functionality to spider list tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Dec 20, 2024
1 parent 146cc5d commit 46e4200
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/spider/spiderList.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ test.describe('Spider List Tests', () => {
test('should run a spider', async ({ page }) => {
test.slow();

// Upload files
await spiderListPage.clickUploadFiles(0);
const fileUploadPage = new FileUploadPage(page);
const testFiles = [
path.join(__dirname, '../../fixtures/test-files/main.py'),
];
await fileUploadPage.selectMode('files');
await fileUploadPage.uploadFiles(testFiles);
await spiderListPage.confirm();

// Run the spider
await spiderListPage.runSpider(0);

Expand Down

0 comments on commit 46e4200

Please sign in to comment.