mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fixed tag and categories tests by trimming names
This commit is contained in:
parent
968365187a
commit
4810fd1497
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user