test(web-app): add e2e fetch process

It tests the normal request case of timeserie
This commit is contained in:
fastium
2025-06-13 19:45:13 +02:00
parent e26e7722f9
commit bd503d5641
14 changed files with 93 additions and 625 deletions

View File

@@ -0,0 +1,16 @@
/// <reference types="cypress" />
describe("Test fetch measurments button in the main page", () => {
beforeEach(() => {
cy.visit("http://localhost:8080/");
});
it("Fetch timeseries with valid user-room-device", () => {
cy.get('[data-cy="new-measurements-button"]').should("be.visible");
// keep default mulitselector value for the test
cy.get('[data-cy="new-measurements-button"]').click();
cy.get('[data-cy="main-chart"]').should("be.visible");
cy.get('[data-cy="no-data-display"]').should("not.exist");
});
});