Wait for category to be created

This commit is contained in:
mattwr18 2020-02-17 12:41:46 +01:00
parent 7ce40b3b37
commit 6d635bac1d

View File

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