Improved test structure

This commit is contained in:
Matthias 2023-05-10 06:47:59 +02:00
parent 7ef0ad4cb4
commit 5f5b332014

View File

@ -1,8 +1,10 @@
import ValuePair from '@/components/general/ValuePair.vue';
it('renders a message', () => {
const msg = 'Test description';
cy.mount(ValuePair, { props: { description: msg } });
describe('ValuePair.vue', () => {
it('Renders a message', () => {
const msg = 'Test description';
cy.mount(ValuePair, { props: { description: msg } });
cy.get('label').contains(msg);
cy.get('label').contains(msg);
});
});