Files
MSE-SoftwEng/web-app/cypress/e2e/fetch_process.cy.ts
fastium bd503d5641 test(web-app): add e2e fetch process
It tests the normal request case of timeserie
2025-06-24 17:33:41 +02:00

17 lines
548 B
TypeScript

/// <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");
});
});