test(web-app): add e2e fetch process
It tests the normal request case of timeserie
This commit is contained in:
16
web-app/cypress/e2e/fetch_process.cy.ts
Normal file
16
web-app/cypress/e2e/fetch_process.cy.ts
Normal 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");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user