[bitnami/ghost] cypress: Remove save wait in post creation (#12609)

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
This commit is contained in:
Miguel Ruiz
2022-09-21 13:02:40 +02:00
committed by GitHub
parent 3f4e662cf1
commit ba7df1b194

View File

@@ -24,13 +24,7 @@ it('allows to create and publish a new post', () => {
cy.get('textarea[placeholder="Post title"]').type(
`${$posts.newPost.title}-${random}`
);
// Clicking a different element to trigger save event
cy.get('article').click()
cy.contains('div[class=gh-editor-post-status]', 'Saved');
cy.get('article').type(`${$posts.newPost.content}-${random}`);
// Ensure content has been saved before publishing
cy.get('textarea[placeholder="Post title"]').click()
cy.contains('div[class=gh-editor-post-status]', 'Saved');
cy.get('article div[contenteditable="true"]').type(`${$posts.newPost.content}-${random}`, {force: true});
});
// Publishing a post needs 3 steps
// Step 1: Open drop-down menu