diff --git a/cypress/integration/administration/TagsAndCategories.feature b/cypress/integration/administration/TagsAndCategories.feature index 813ff5d80..e55535ea9 100644 --- a/cypress/integration/administration/TagsAndCategories.feature +++ b/cypress/integration/administration/TagsAndCategories.feature @@ -32,6 +32,6 @@ Feature: Tags and Categories And I click on the menu item "Tags" Then I can see the following table: | | Name | Users | Posts | - | 1 | Democracy | 2 | 3 | - | 2 | Ecology | 1 | 1 | - | 3 | Nature | 1 | 2 | + | 1 | Democracy | 3 | 4 | + | 2 | Nature | 2 | 3 | + | 3 | Ecology | 1 | 1 | diff --git a/cypress/integration/common/steps.js b/cypress/integration/common/steps.js index 0be3f882f..387f33ac0 100644 --- a/cypress/integration/common/steps.js +++ b/cypress/integration/common/steps.js @@ -49,14 +49,23 @@ Given('we have a selection of tags and categories as well as posts', () => { email: 'author@example.org', password: '1234' } + const yetAnotherAuthor = { + id: 'yetAnotherAuthor', + email: 'yet-another-author@example.org', + password: '1234' + } cy.factory() .create('User', someAuthor) .authenticateAs(someAuthor) .create('Post', { id: 'p0' }) .create('Post', { id: 'p1' }) cy.factory() - .authenticateAs(loginCredentials) + .create('User', yetAnotherAuthor) + .authenticateAs(yetAnotherAuthor) .create('Post', { id: 'p2' }) + cy.factory() + .authenticateAs(loginCredentials) + .create('Post', { id: 'p3' }) .relate('Post', 'Categories', { from: 'p0', to: 'cat1' }) .relate('Post', 'Categories', { from: 'p1', to: 'cat2' }) .relate('Post', 'Categories', { from: 'p2', to: 'cat1' }) @@ -65,7 +74,9 @@ Given('we have a selection of tags and categories as well as posts', () => { .relate('Post', 'Tags', { from: 'p0', to: 't3' }) .relate('Post', 'Tags', { from: 'p1', to: 't2' }) .relate('Post', 'Tags', { from: 'p1', to: 't3' }) + .relate('Post', 'Tags', { from: 'p2', to: 't2' }) .relate('Post', 'Tags', { from: 'p2', to: 't3' }) + .relate('Post', 'Tags', { from: 'p3', to: 't3' }) }) Given('we have the following user accounts:', table => {