-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5101014
commit de405ce
Showing
17 changed files
with
1,021 additions
and
714 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { defineConfig } from "cypress"; | ||
|
||
export default defineConfig({ | ||
viewportWidth: 1600, | ||
viewportHeight: 800, | ||
defaultCommandTimeout: 10000, | ||
projectId: "tjknpb", | ||
|
||
e2e: { | ||
// We've imported your old cypress plugins here. | ||
// You may want to clean this up later by importing these. | ||
setupNodeEvents(on, config) { | ||
return require("./cypress/plugins/index.js")(on, config); | ||
}, | ||
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}", | ||
}, | ||
|
||
component: { | ||
devServer: { | ||
framework: "react", | ||
bundler: "webpack", | ||
}, | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/// <reference types="cypress" /> | ||
|
||
describe('netflow-overview', () => { | ||
beforeEach(() => { | ||
cy.openNetflowTrafficPage(); | ||
//clear default app filters | ||
cy.get('#clear-all-filters-button').click(); | ||
}); | ||
|
||
it('displays overview and panels', () => { | ||
cy.get('#overview-container').should('exist'); | ||
cy.checkPanels(); | ||
}); | ||
|
||
it('manage panels', () => { | ||
//first open modal | ||
cy.openPanelsModal(); | ||
|
||
//Select all panels | ||
cy.get('#overview-panels-modal').contains('Select all').click(); | ||
|
||
//Save | ||
cy.get('#overview-panels-modal').contains('Save').click(); | ||
cy.checkPanels(6); | ||
|
||
//reopen modal | ||
cy.openPanelsModal(); | ||
|
||
//Unselect all panels | ||
cy.get('#overview-panels-modal').contains('Unselect all').click(); | ||
|
||
//Save should be disabled | ||
cy.get('#overview-panels-modal').contains('Save').should('be.disabled'); | ||
|
||
//Select some panels | ||
cy.selectPopupItems('#overview-panels-modal', ['Total rate (line)']); | ||
|
||
//Save new panels | ||
cy.get('#overview-panels-modal').contains('Save').click(); | ||
|
||
//Should have 1 panel | ||
cy.checkPanels(1); | ||
|
||
//reopen modal | ||
cy.openPanelsModal(); | ||
|
||
//Restore default panels | ||
cy.get('#overview-panels-modal').contains('Restore default panels').click(); | ||
|
||
//Save default panels | ||
cy.get('#overview-panels-modal').contains('Save').click(); | ||
cy.checkPanels(); | ||
}); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.