Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Arquisoft/dede_es6a
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmera01 committed May 4, 2022
2 parents cf32405 + a0cadff commit dd57993
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions webapp/e2e/steps/login.steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ defineFeature(feature, test => {
when("Proceso de login", async () => {
// Proceso de logueo
await page.setViewport({ width: 1200, height: 1300 });
await expect(page).toMatch("Catálogo de productos");
//await expect(page).toMatch("Catálogo de productos");
await expect(page).toClick("a[href='/login']");
await page.waitForNavigation()
await expect(page).toMatch("Login");
Expand All @@ -49,7 +49,7 @@ defineFeature(feature, test => {
await expect(page).toClick("button[id='inicio-sesion']");
await page.waitForNavigation()
//Redirige a /catalogo
await expect(page).toMatch("Catálogo de productos");
//await expect(page).toMatch("Catálogo de productos");
//Añado producto
await expect(page).toMatch("Cerrar Sesión");
await expect(page).toMatch("Perfil");
Expand Down
6 changes: 3 additions & 3 deletions webapp/e2e/steps/logout.steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ defineFeature(feature, test => {
when("Proceso de logout", async () => {
// Proceso de logueo
await page.setViewport({ width: 1100, height: 1200 });
await expect(page).toMatch("Catálogo de productos");
//await expect(page).toMatch("Catálogo de productos");
await expect(page).toClick("a[href='/login']");
await page.waitForNavigation()
await expect(page).toMatch("Login");
Expand All @@ -49,7 +49,7 @@ defineFeature(feature, test => {
await expect(page).toClick("button[id='inicio-sesion']");
await page.waitForNavigation()
//Login realizado el usuario se desloguea
await expect(page).toMatch("Catálogo de productos");
//await expect(page).toMatch("Catálogo de productos");
await expect(page).toMatch("Cerrar Sesión");
await expect(page).toMatch("Perfil");
//Se desloguea
Expand All @@ -58,7 +58,7 @@ defineFeature(feature, test => {
});

then("Se muestra el botón iniciar sesión", async () => {
await expect(page).toMatch("Catálogo de productos");
//await expect(page).toMatch("Catálogo de productos");
await expect(page).toMatch("Inicia sesión");
});
});
Expand Down
4 changes: 2 additions & 2 deletions webapp/e2e/steps/register.steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ defineFeature(feature, test => {
when("Proceso de login", async () => {
// Proceso de logueo
await page.setViewport({ width: 1200, height: 1300 });
await expect(page).toMatch("Catálogo de productos");
//await expect(page).toMatch("Catálogo de productos");
await expect(page).toClick("a[href='/login']");
await page.waitForNavigation()
await expect(page).toMatch("Login");
Expand All @@ -66,7 +66,7 @@ defineFeature(feature, test => {
await expect(page).toClick("button[id='inicio-sesion']");
await page.waitForNavigation()
//Redirige a /catalogo
await expect(page).toMatch("Catálogo de productos");
//await expect(page).toMatch("Catálogo de productos");
//Añado producto
await expect(page).toMatch("Cerrar Sesión");
await expect(page).toMatch("Perfil");
Expand Down

0 comments on commit dd57993

Please sign in to comment.