From 74ca449ead8e8e33dd1646d9dcf5a860ab1204b7 Mon Sep 17 00:00:00 2001 From: Lukas Mertens Date: Wed, 10 Apr 2024 16:05:38 +0200 Subject: [PATCH] test(e2e): added config-management test Signed-off-by: Lukas Mertens commit-id:2f10d1b6 --- cypress/e2e/config-management.cy.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cypress/e2e/config-management.cy.ts diff --git a/cypress/e2e/config-management.cy.ts b/cypress/e2e/config-management.cy.ts new file mode 100644 index 00000000..685d1c61 --- /dev/null +++ b/cypress/e2e/config-management.cy.ts @@ -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'); + }); +});