mirror of
https://github.com/freqtrade/frequi.git
synced 2024-09-20 17:41:08 +00:00
Fix valuePair cypress test by reverting script setup conversion for now
This commit is contained in:
parent
b2ef4343ec
commit
d227360942
|
@ -1,12 +1,8 @@
|
|||
import ValuePair from './ValuePair.vue';
|
||||
import ValuePair from '@/components/general/ValuePair.vue';
|
||||
|
||||
it('renders a message', () => {
|
||||
const msg = 'Test description';
|
||||
cy.mount(ValuePair, {
|
||||
propsData: {
|
||||
description: msg,
|
||||
},
|
||||
});
|
||||
cy.mount(ValuePair, { props: { description: msg } });
|
||||
|
||||
cy.get('label').contains(msg);
|
||||
});
|
||||
|
|
|
@ -10,14 +10,20 @@
|
|||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
<script lang="ts">
|
||||
import InfoBox from '@/components/general/InfoBox.vue';
|
||||
|
||||
defineProps({
|
||||
description: { type: String, required: true },
|
||||
help: { type: String, default: '', required: false },
|
||||
classLabel: { type: String, default: 'col-4 fw-bold mb-0' },
|
||||
classValue: { type: String, default: 'col-8' },
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ValuePair',
|
||||
components: { InfoBox },
|
||||
props: {
|
||||
description: { type: String, required: true },
|
||||
help: { type: String, default: '', required: false },
|
||||
classLabel: { type: String, default: 'col-4 fw-bold mb-0' },
|
||||
classValue: { type: String, default: 'col-8' },
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user