Skip to content

Commit

Permalink
fix: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
filipgutica committed Oct 24, 2023
1 parent 8cab632 commit f7caa21
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,24 @@ describe('<ConfigCardItem />', () => {
cy.getTestId(`${item.key}-external-link`).should('contain.text', link)
cy.get(`a[href="${link}"]`).should('exist')
})

it('plaintext config card item has data-testid', () => {
const item: RecordItem = {
type: ConfigurationSchemaType.Text,
key: 'textItem',
label: 'textItem',
value: 'asdf',
}

cy.mount(ConfigCardItem, {
props: {
item,
},
})

cy.get('[data-testid="textItem-plain-text"]').should('exist')
cy.get('[data-testid="textItem-plain-text"]').should('contain.text', 'asdf')
})
})
})
})

0 comments on commit f7caa21

Please sign in to comment.