This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from cisagov/cypress/light-theme-test
upgrade cypress, toggle theme test, changed cypress config
- Loading branch information
Showing
15 changed files
with
145 additions
and
44 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
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 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
34 changes: 34 additions & 0 deletions
34
applications/redeye-e2e/src/integration/e2e/blueteam/toggle-themes.cy.js
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,34 @@ | ||
/// <reference types="cypress" /> | ||
|
||
describe('Light Theme Test', () => { | ||
const camp = 'togglethemes'; | ||
const fileName = 'gt.redeye'; | ||
|
||
it('Toggle Themes From Campaign', () => { | ||
cy.uploadCampaignBlue(camp, fileName); | ||
|
||
cy.selectCampaign(camp); | ||
|
||
cy.toggleLightTheme(); | ||
|
||
cy.get('[cy-test=graph]').should('have.css', 'color-scheme', 'light'); | ||
|
||
cy.toggleDarkTheme(); | ||
|
||
cy.get('[cy-test=graph]').should('have.css', 'color-scheme', 'dark'); | ||
}); | ||
|
||
it('Toggle Themes From Explorer Card', () => { | ||
cy.toggleLightTheme(); | ||
|
||
cy.get('#root').should('have.css', 'color-scheme', 'light'); | ||
|
||
cy.toggleDarkTheme(); | ||
|
||
cy.get('#root').should('have.css', 'color-scheme', 'dark'); | ||
}); | ||
|
||
after(() => { | ||
cy.deleteCampaignGraphQL(camp); | ||
}); | ||
}); |
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 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
34 changes: 34 additions & 0 deletions
34
applications/redeye-e2e/src/integration/e2e/redteam/toggle-themes.cy.js
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,34 @@ | ||
/// <reference types="cypress" /> | ||
|
||
describe('Light Theme Test', () => { | ||
const camp = 'togglethemes'; | ||
const fileName = 'gt.redeye'; | ||
|
||
it('Toggle Themes From Campaign', () => { | ||
cy.uploadCampaign(camp, fileName); | ||
|
||
cy.selectCampaign(camp); | ||
|
||
cy.toggleLightTheme(); | ||
|
||
cy.get('[cy-test=graph]').should('have.css', 'color-scheme', 'light'); | ||
|
||
cy.toggleDarkTheme(); | ||
|
||
cy.get('[cy-test=graph]').should('have.css', 'color-scheme', 'dark'); | ||
}); | ||
|
||
it('Toggle Themes From Explorer Card', () => { | ||
cy.toggleLightTheme(); | ||
|
||
cy.get('#root').should('have.css', 'color-scheme', 'light'); | ||
|
||
cy.toggleDarkTheme(); | ||
|
||
cy.get('#root').should('have.css', 'color-scheme', 'dark'); | ||
}); | ||
|
||
after(() => { | ||
cy.deleteCampaignGraphQL(camp); | ||
}); | ||
}); |
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 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 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