Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamsi committed Apr 11, 2020
1 parent c571fe8 commit a661040
Showing 1 changed file with 6 additions and 6 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('shows 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 Expand Up @@ -241,14 +241,14 @@ describe('Access Control Fields > Admin UI', () => {
});
});

it.skip('does not show non-updatable inputs', () => {
it.skip('shows 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 a661040

Please sign in to comment.