diff --git a/backend/test/features/support/steps.js b/backend/test/features/support/steps.js index e11c69faa..e15801f83 100644 --- a/backend/test/features/support/steps.js +++ b/backend/test/features/support/steps.js @@ -13,7 +13,7 @@ function createUser (slug) { return Factory.build('user', { name: slug, }, { - password: '1234' + password: '1234', email: 'example@test.org', }) // await login({ email: 'example@test.org', password: '1234' }) diff --git a/cypress/integration/common/post.js b/cypress/integration/common/post.js index 04bc23a8e..c7cad0829 100644 --- a/cypress/integration/common/post.js +++ b/cypress/integration/common/post.js @@ -109,7 +109,7 @@ Then("I add all required fields", () => { .get(".editor .ProseMirror") .type('new post content') .get(".base-button") - .contains("Just for Fun") + .contains("Global Peace & Nonviolence") .click() .get('.ds-flex-item > .ds-form-item .ds-select ') .click() diff --git a/cypress/integration/common/steps.js b/cypress/integration/common/steps.js index d9c9e8ddd..5beb43f96 100644 --- a/cypress/integration/common/steps.js +++ b/cypress/integration/common/steps.js @@ -238,17 +238,6 @@ Given("we have the following comments in our database:", table => { }); Given("we have the following posts in our database:", table => { - cy.factory().build('category', { - id: `cat-456`, - name: "Just For Fun", - slug: `just-for-fun`, - icon: "smile" - }).then(categoryJson => { - return new Cypress.Promise((resolve, _reject) => { - return categoryJson.toJson().then(category => resolve(category)) - }) - }) - .then(category => { table.hashes().forEach((attributesOrOptions, i) => { cy.factory().build("post", { ...attributesOrOptions, @@ -257,10 +246,8 @@ Given("we have the following posts in our database:", table => { pinned: Boolean(attributesOrOptions.pinned), }, { ...attributesOrOptions, - categoryIds: category.id }); }) - }) }) Then("I see a success message:", message => {