chore: Cypress test case for create label flow

This commit is contained in:
Sanju
2021-07-23 16:38:44 +05:30
committed by GitHub
parent d955d8e7dc
commit 7e0937f3ed
5 changed files with 33 additions and 6 deletions

View File

@@ -30,6 +30,7 @@
color-scheme="success"
icon="ion-android-add-circle"
@click="onToggleCreate"
data-testid="create-new-contact"
>
{{ $t('CREATE_CONTACT.BUTTON_LABEL') }}
</woot-button>

View File

@@ -12,6 +12,7 @@
:label="$t('LABEL_MGMT.FORM.NAME.LABEL')"
:placeholder="$t('LABEL_MGMT.FORM.NAME.PLACEHOLDER')"
:error="getLabelTitleErrorMessage"
data-testid="label-title"
@input="$v.title.$touch"
/>
@@ -21,6 +22,7 @@
class="medium-12 columns"
:label="$t('LABEL_MGMT.FORM.DESCRIPTION.LABEL')"
:placeholder="$t('LABEL_MGMT.FORM.DESCRIPTION.PLACEHOLDER')"
data-testid="label-description"
@input="$v.description.$touch"
/>
@@ -41,6 +43,7 @@
<woot-button
:is-disabled="$v.title.$invalid || uiFlags.isCreating"
:is-loading="uiFlags.isCreating"
data-testid="label-submit"
>
{{ $t('LABEL_MGMT.FORM.CREATE') }}
</woot-button>