Skip to content

Commit

Permalink
fix test case for disabled inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamsi committed Feb 24, 2020
1 parent 8585865 commit bb23890
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,14 @@ describe('Access Control Fields > Admin UI', () => {
});
});

it('does not show non-updatable inputs', () => {
it('show non-updatable inputs as disabled', () => {
fieldAccessVariations
.filter(({ update, read }) => !update && read)
.forEach(access => {
const field = getFieldName(access);
cy.get(`label[for="ks-input-${field}"]`)
.should('not.exist')
.then(() => cy.get(`#ks-input-${field}`).should('not.exist'));
.should('exist')
.then(() => cy.get(`#ks-input-${field}`).should('be.disabled'));
});
});

Expand Down

0 comments on commit bb23890

Please sign in to comment.