mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +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', () => {
|
it('renders a message', () => {
|
||||||
const msg = 'Test description';
|
const msg = 'Test description';
|
||||||
cy.mount(ValuePair, {
|
cy.mount(ValuePair, { props: { description: msg } });
|
||||||
propsData: {
|
|
||||||
description: msg,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
cy.get('label').contains(msg);
|
cy.get('label').contains(msg);
|
||||||
});
|
});
|
||||||
|
|
|
@ -10,14 +10,20 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script lang="ts">
|
||||||
import InfoBox from '@/components/general/InfoBox.vue';
|
import InfoBox from '@/components/general/InfoBox.vue';
|
||||||
|
|
||||||
defineProps({
|
import { defineComponent } from 'vue';
|
||||||
description: { type: String, required: true },
|
|
||||||
help: { type: String, default: '', required: false },
|
export default defineComponent({
|
||||||
classLabel: { type: String, default: 'col-4 fw-bold mb-0' },
|
name: 'ValuePair',
|
||||||
classValue: { type: String, default: 'col-8' },
|
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>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user