Skip to content

Commit 54cde0c

Browse files
committed
actualizaciones de prueba local y en CI/CD
1 parent fc4be7d commit 54cde0c

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

tests/S3Reports.spec.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test, expect } from "@playwright/test";
22
import { S3Service } from "../utils/S3Service";
3-
import { existsSync } from "fs"; // ✅ Ya lo tienes importado
3+
import { existsSync } from "fs";
44

55
const bucketName = "playwright-reports-clima";
66
const reportDir = "playwright-report";
@@ -15,7 +15,7 @@ test.describe.serial("S3 Reports - En orden", () => {
1515
});
1616

1717
test("1. Subir reporte a S3", async () => {
18-
test.fixme();
18+
//test.fixme();
1919

2020
await test.step("Verificar directorio existe", async () => {
2121
const exists = existsSync(reportDir);
@@ -45,7 +45,7 @@ test.describe.serial("S3 Reports - En orden", () => {
4545
});
4646

4747
test("2. Verificar archivo existe", async () => {
48-
test.fixme();
48+
//test.fixme();
4949

5050
await test.step("Verificar existencia", async () => {
5151
const exists = await s3Service.fileExists(`${keyPrefix}index.html`);
@@ -55,7 +55,7 @@ test.describe.serial("S3 Reports - En orden", () => {
5555
});
5656

5757
test("3. Leer contenido", async () => {
58-
test.fixme();
58+
//test.fixme();
5959

6060
await test.step("Leer HTML", async () => {
6161
// ✅ Verificar que existe en lugar de leer contenido
@@ -67,7 +67,7 @@ test.describe.serial("S3 Reports - En orden", () => {
6767
});
6868

6969
test("Generar múltiples URLs pre-firmadas con diferentes tiempos", async () => {
70-
test.fixme();
70+
//test.fixme();
7171

7272
const s3Service = new S3Service("playwright-reports-clima");
7373
const testKey = "test/sample.html";
@@ -86,7 +86,11 @@ test("Generar múltiples URLs pre-firmadas con diferentes tiempos", async () =>
8686

8787
await test.step("Verificar URLs únicas", async () => {
8888
const url1 = await s3Service.getPresignedUrl(testKey, 3600);
89+
90+
await new Promise((resolve) => setTimeout(resolve, 1000));
91+
8992
const url2 = await s3Service.getPresignedUrl(testKey, 3600);
93+
9094
expect(url1).not.toBe(url2);
9195
console.log("✅ URLs únicas generadas correctamente");
9296
});

0 commit comments

Comments
 (0)