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
No known key found for this signature in database
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') cy.get('.namespace-container .menu.namespaces-lists')
.should('contain', newNamespaceName) .should('contain', newNamespaceName)
.should('not.contain', newNamespaces[0].title) .should('not.contain', newNamespaces[0].title)
cy.get('.content') cy.get('[data-cy="namespaces-list"]')
.should('contain', newNamespaceName) .should('contain', newNamespaceName)
.should('not.contain', newNamespaces[0].title) .should('not.contain', newNamespaces[0].title)
}) })

View file

@ -1,5 +1,5 @@
<template> <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"> <div class="create-buttons">
<fancycheckbox v-model="showArchived" @change="saveShowArchivedState" v-cy="'show-archived-check'"> <fancycheckbox v-model="showArchived" @change="saveShowArchivedState" v-cy="'show-archived-check'">
{{ $t('namespace.showArchived') }} {{ $t('namespace.showArchived') }}