From 4810fd14974dcda5ae432c28447b02d572b0c013 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Tue, 12 Mar 2019 18:44:51 +0100 Subject: [PATCH] Fixed tag and categories tests by trimming names --- cypress/integration/common/admin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/common/admin.js b/cypress/integration/common/admin.js index d922d909f..059e34b27 100644 --- a/cypress/integration/common/admin.js +++ b/cypress/integration/common/admin.js @@ -16,7 +16,7 @@ Then('I can see a list of categories ordered by post count:', table => { table.hashes().forEach(({ Name, Posts }, index) => { cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(2)`).should( 'contain', - Name + Name.trim() ) cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(3)`).should( 'contain', @@ -32,7 +32,7 @@ Then('I can see a list of tags ordered by user count:', table => { table.hashes().forEach(({ Name, Users, Posts }, index) => { cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(2)`).should( 'contain', - Name + Name.trim() ) cy.get(`tbody > :nth-child(${index + 1}) > :nth-child(3)`).should( 'contain',