From 6d635bac1dce7bdbd916d8cbcbe42edcc2f6bf87 Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Mon, 17 Feb 2020 12:41:46 +0100 Subject: [PATCH] Wait for category to be created --- cypress/integration/common/steps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/common/steps.js b/cypress/integration/common/steps.js index c51290537..f96ec78e6 100644 --- a/cypress/integration/common/steps.js +++ b/cypress/integration/common/steps.js @@ -196,8 +196,8 @@ Given("we have the following comments in our database:", table => { }) }); -Given("we have the following posts in our database:", table => { - cy.factory().build('category', { +Given("we have the following posts in our database:", async table => { + await cy.factory().build('category', { id: `cat-456`, name: "Just For Fun", slug: `just-for-fun`,