17 lines
548 B
TypeScript
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");
|
|
});
|
|
});
|