-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ctrl bar covered sharing dialog and cypress tests [DHIS2-10691] (#…
…1652) The z-index was causing the ctrl bar to cover the sharing dialog, which overlay has a lower z-index. The z-index on the control bar is only needed when it is expanded on small screen, in which case the Sharing dialog is not an option anyway. Cypress test added.
- Loading branch information
1 parent
d5223d2
commit b18069b
Showing
6 changed files
with
80 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { When, Then } from 'cypress-cucumber-preprocessor/steps' | ||
import { EXTENDED_TIMEOUT } from '../../../support/utils' | ||
import { dashboardTitleSel } from '../../../selectors/viewDashboard' | ||
|
||
const USER_NAME = 'Kevin Boateng' | ||
|
||
When('I change sharing settings', () => { | ||
cy.get('button').contains('Share', EXTENDED_TIMEOUT).click() | ||
|
||
//confirm that Boateng is not currently listed | ||
cy.get('hr').should('have.length', 3) | ||
|
||
cy.get('[placeholder="Enter names"]').type('Boateng') | ||
cy.contains(USER_NAME).click() | ||
|
||
cy.get('div').contains(USER_NAME).should('be.visible') | ||
|
||
cy.get('button').contains('close', { matchCase: false }).click() | ||
}) | ||
|
||
Then('the new sharing settings should be preserved', () => { | ||
cy.visit('/') | ||
cy.get(dashboardTitleSel, EXTENDED_TIMEOUT).should('be.visible') | ||
cy.get('button').contains('Share', EXTENDED_TIMEOUT).should('be.visible') | ||
cy.get('button').contains('Share', EXTENDED_TIMEOUT).click() | ||
|
||
cy.get('hr').should('have.length', 4) | ||
cy.get('div').contains(USER_NAME, EXTENDED_TIMEOUT).should('be.visible') | ||
}) |
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