From 5016e5d69995f63974c9b4e17f053d7b536fbeac Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 30 Dec 2021 16:49:04 +0100 Subject: [PATCH] chore: use v-cy for test --- cypress/integration/list/namespaces.spec.js | 2 +- src/views/namespaces/ListNamespaces.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/list/namespaces.spec.js b/cypress/integration/list/namespaces.spec.js index 97d40588..ee1351ac 100644 --- a/cypress/integration/list/namespaces.spec.js +++ b/cypress/integration/list/namespaces.spec.js @@ -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) }) diff --git a/src/views/namespaces/ListNamespaces.vue b/src/views/namespaces/ListNamespaces.vue index acb85f95..bd836ed0 100644 --- a/src/views/namespaces/ListNamespaces.vue +++ b/src/views/namespaces/ListNamespaces.vue @@ -1,5 +1,5 @@