Skip to content

Commit

Permalink
Update roundtrip.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dmihalcik-virtru committed Dec 16, 2024
1 parent 06b1fdb commit 193e020
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions web-app/tests/tests/roundtrip.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ for (const [name, { encryptSelector }] of Object.entries(scenarios)) {
}

test('Remote Source Streaming', async ({ page }) => {
const server = await serve('.', 8000);
const server = await serve('.', 8086);

try {
await authorize(page);
await page.locator('#urlSelector').fill('http://localhost:8000/README.md');
await page.locator('#urlSelector').fill('http://localhost:8086/README.md');

const downloadPromise = page.waitForEvent('download');
await page.locator('#zipEncrypt').click();
Expand All @@ -93,9 +93,8 @@ test('Remote Source Streaming', async ({ page }) => {
fs.copyFileSync(cipherTextPath, targetPath);

// Clear file selector and upload againg
await page.locator('#urlSelector').fill('http://localhost:8000/README.md.tdf');
await page.locator('#urlSelector').fill('http://localhost:8086/README.md.tdf');
const plainDownloadPromise = page.waitForEvent('download');
await page.locator('#tdfDecrypt').click();
await page.locator('#fileSink').click();
await page.locator('#decryptButton').click();
const download2 = await plainDownloadPromise;
Expand Down

0 comments on commit 193e020

Please sign in to comment.