mirror of
https://github.com/bitnami/charts.git
synced 2026-03-10 15:07:49 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user