Skip to content

Commit

Permalink
test(e2e): added config-management test
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Mertens <[email protected]>

commit-id:2f10d1b6
  • Loading branch information
lukas-mertens committed Apr 10, 2024
1 parent 3a0aa16 commit 2b96b50
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 12 additions & 0 deletions cypress/e2e/config-management.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {faker} from "@faker-js/faker";

describe("ConfigManagement", () => {
it('should be possible to create and save a new config', () => {
cy.connectToSimulator();
const configName = faker.word.words(1);
cy.createConfig(configName);
cy.get('#config-save-button').click();
cy.get('[data-cy="configs-expansion-panel"]').click();
cy.get('[data-cy="config-list-item"]').contains(configName).should('be.visible');
});
});
1 change: 0 additions & 1 deletion cypress/e2e/module-selection.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ describe('Module Selection', () => {
it('should be possible to search for EvseManager', () => {
cy.connectToSimulator();
cy.createConfig(faker.word.words(1));
cy.get('[data-cy="modules-expansion-panel"]').click();
cy.get('[data-cy="modules-search"]').type("EvseManager");
cy.get('[data-cy="module-list-item"]').contains("EvseManager").should('be.visible');
cy.get('[data-cy="modules-search"]').type("{selectall}{backspace}LoremIpsumDolorModule");
Expand Down

0 comments on commit 2b96b50

Please sign in to comment.