Skip to content

Commit

Permalink
Merge pull request EGCETSII#54 from Full-Tortuga/test/53-test_automat…
Browse files Browse the repository at this point in the history
…izacion_backups

Test/53 test automatizacion backups
  • Loading branch information
eveyugyug authored Jan 8, 2022
2 parents e943be3 + 5236fa4 commit 904cc5a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions decide_panel/cypress/integration/components/Backups.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,25 @@ describe("Backup generation", () => {

it("backups page can be opened", () => {
cy.contains("Generar nuevo backup");
cy.contains("Activar automatización de backup");
cy.contains("Desactivar automatización de backup");
});

it("backups can be generated", () => {
cy.contains("Generar nuevo backup").click();
cy.contains("Se ha creado correctamente el backup");
});

it("backups aumotatitations can be deactivate", () => {
cy.contains("Desactivar automatización de backup").click();
cy.contains("Se ha desactivado la creación automática de backups");
});

it("backups aumotatitations can be activate", () => {
cy.contains("Desactivar automatización de backup").click();
cy.contains("Activar automatización de backup").click();
cy.contains("Se ha activado la creación automática de backups");
});

it("dropdown to restore backup exists and is clickable", () => {
cy.get(".p-dropdown-trigger-icon").click();
Expand Down
2 changes: 1 addition & 1 deletion decide_panel/src/components/Backups.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const Backups = () => {
return (
<div>
<Messages ref={messages}></Messages>
La creación automatica de backup se realizará a las 20:49:15. Hora actual: {hora}
La creación automatica de backup se realizará a las 18:22:14. Hora actual: {hora}
<br></br>
<br></br>
<Button color="green" onClick={activate} disabled={activado}>
Expand Down

0 comments on commit 904cc5a

Please sign in to comment.