-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from adrianrbp/4-frontend-company-service-avail…
…ability-management 4-frontend company service availability management
- Loading branch information
Showing
30 changed files
with
1,128 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
POSTGRES_USER=user | ||
POSTGRES_PASSWORD=password | ||
POSTGRES_DB=monitoring_sys | ||
|
||
|
||
DATABASE_HOST=postgres | ||
DATABASE_USER=user | ||
DATABASE_PASSWORD=password | ||
DATABASE_NAME=monitoring_sys_development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { test, expect } from "@playwright/test"; | ||
|
||
test.describe("Shift and Availability Table", () => { | ||
test("should render the correct availability and save it", async ({ | ||
page, | ||
}) => { | ||
await page.goto("/"); | ||
|
||
// Select a service | ||
await page.selectOption('select[aria-label="Selecciona un Servicio"]', { | ||
label: "Service A", | ||
}); | ||
|
||
// Select a week | ||
await page.selectOption('select[aria-label="Selecciona una Semana"]', { | ||
label: "Semana 32 del 2024", | ||
}); | ||
|
||
await page.click('button:has-text("Editar Disponibilidad")'); | ||
|
||
// Check the rendering of the shift table | ||
await expect( | ||
page.locator('[aria-label="Day Lunes 05 de Agosto"]') | ||
).toBeVisible(); | ||
|
||
// Check the rendering of checkboxes | ||
await expect( | ||
page.locator('[aria-label="Availability Monday 09:00 Engineer 1"]') | ||
).toBeVisible(); | ||
|
||
// Check some checkboxes | ||
await page.check('[aria-label="Availability Monday 09:00 Engineer 1"]'); | ||
await page.check('[aria-label="Availability Monday 10:00 Engineer 2"]'); | ||
|
||
// Save availability | ||
await page.click('button:has-text("Ver Turnos")'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
module.exports = { | ||
preset: "@vue/cli-plugin-unit-jest/presets/typescript-and-babel", | ||
testPathIgnorePatterns: [".*\\.page\\.ts$"], | ||
reporters: [ | ||
"default", | ||
[ | ||
"jest-junit", | ||
{ | ||
outputDirectory: "./test-reports", | ||
outputName: "junit.xml", | ||
}, | ||
], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.