chore: use v-cy for test

This commit is contained in:
kolaente 2021-12-30 16:49:04 +01:00 committed by Dominik Pschenitschni
parent 27446bf995
commit 5016e5d699
Signed by untrusted user: dpschen
GPG Key ID: B257AC0149F43A77
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ describe('Namepaces', () => {
cy.get('.namespace-container .menu.namespaces-lists')
.should('contain', newNamespaceName)
.should('not.contain', newNamespaces[0].title)
cy.get('.content')
cy.get('[data-cy="namespaces-list"]')
.should('contain', newNamespaceName)
.should('not.contain', newNamespaces[0].title)
})

View File

@ -1,5 +1,5 @@
<template>
<div class="content loader-container" :class="{'is-loading': loading}">
<div class="content loader-container" :class="{'is-loading': loading}" v-cy="'namespaces-list'">
<div class="create-buttons">
<fancycheckbox v-model="showArchived" @change="saveShowArchivedState" v-cy="'show-archived-check'">
{{ $t('namespace.showArchived') }}