Fixed tag and categories tests by trimming names

This commit is contained in:
Grzegorz Leoniec 2019-03-12 18:44:51 +01:00
parent 968365187a
commit 4810fd1497
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -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',