From 0afd5005a440b852bc00c91d098b2792fc48b311 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 17 Jan 2021 14:25:50 +0100 Subject: [PATCH] Fix tests after changing button classes --- cypress/integration/list/list.spec.js | 2 +- cypress/integration/list/namespaces.spec.js | 2 +- cypress/integration/sharing/team.spec.js | 2 +- cypress/integration/task/task.spec.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/integration/list/list.spec.js b/cypress/integration/list/list.spec.js index 3d55f6fa2..51627f0b4 100644 --- a/cypress/integration/list/list.spec.js +++ b/cypress/integration/list/list.spec.js @@ -29,7 +29,7 @@ describe('Lists', () => { .contains('Create a new list') cy.get('input.input') .type('New List') - cy.get('button.is-success') + cy.get('button') .contains('Add') .click() diff --git a/cypress/integration/list/namespaces.spec.js b/cypress/integration/list/namespaces.spec.js index cce3a757c..a2b2edd1a 100644 --- a/cypress/integration/list/namespaces.spec.js +++ b/cypress/integration/list/namespaces.spec.js @@ -30,7 +30,7 @@ describe('Namepaces', () => { .should('contain', 'Create a new namespace') cy.get('input.input') .type('New Namespace') - cy.get('button.is-success') + cy.get('button') .contains('Add') .click() cy.url() diff --git a/cypress/integration/sharing/team.spec.js b/cypress/integration/sharing/team.spec.js index 95900e293..9a00a423a 100644 --- a/cypress/integration/sharing/team.spec.js +++ b/cypress/integration/sharing/team.spec.js @@ -17,7 +17,7 @@ describe('Team', () => { .contains('Create a new team') cy.get('input.input') .type('New Team') - cy.get('button.is-success') + cy.get('button') .contains('Add') .click() diff --git a/cypress/integration/task/task.spec.js b/cypress/integration/task/task.spec.js index 9d5733ca5..299af469c 100644 --- a/cypress/integration/task/task.spec.js +++ b/cypress/integration/task/task.spec.js @@ -28,7 +28,7 @@ describe('Task', () => { cy.visit('/lists/1/list') cy.get('input.input[placeholder="Add a new task..."') .type('New Task') - cy.get('button.button.is-success') + cy.get('button.button') .contains('Add') .click() cy.get('.tasks .task .tasktext') @@ -44,7 +44,7 @@ describe('Task', () => { .should('not.exist') cy.get('input.input[placeholder="Add a new task..."') .type('New Task') - cy.get('button.button.is-success') + cy.get('button.button') .contains('Add') .click()