FLabelPageObject: formatDescription() method

Används för att hämta formatbeskrivning.

Syntax

formatDescription();

Returvärde

HTMLElement som innehåller formatbeskrivning.

Exempel

<template>
    <f-label v-test="'awesome-label'">
        <template #default> Etikett </template>

        <template #description="{ formatDescriptionClass }">
            <span :class="formatDescriptionClass"> Formatbeskrivning </span>
        </template>
    </f-label>
</template>
const awesomeLabel = new FLabelPageObject("[data-test=awesome-label]");
awesomeLabel
    .formatDescription()
    .should("contain.text", "Formatbeskrivning");

Relaterat

Esc för att stänga Pil upp/ner för att navigera Enter för att välja