jeudi 9 mai 2019

How to access vuetify-component with codeceptjs

I'd like to write some tests witch codecept.js but I'm not able to access the vuetify components.

<v-flex xs5>
    <v-checkbox
       v-model="defaultVideo"
       v-ruid="'defaultVideo'"
       label="Default Video"
       color="primary"
       class="default-video"
       @change="setDefaultVideo"
     />
 </v-flex>

I added an v-ruid which normally can be clicked like that:

I.click('[data-ruid=defaultVideo]');

But witch the vuetify components, I always got that error message: element not interactable

It's because the data-ruid is added to div around the checkbox. How can I access the checkbox directly?

Tank you in advance!

Aucun commentaire:

Enregistrer un commentaire