Skip to content

classicCreatePost fails if default tab is "Text" #84

Description

@cadic

Describe the bug

In some testing scenarios user might change the tab from "Visual" to "Text". The next call of classicCreatePost() will fail.

Steps to Reproduce

// This will succeed.
cy.classicCreatePost({
	title: "First post",
	beforeSave: () => {
		cy.get("#content-html").click(); // Change tab to "Text"
		cy.get("#content")
			.click()
			.type("Add raw text");
	},
});

// This one will fail.
cy.classicCreatePost({ title: "Second post" });

Screenshots, screen recording, code snippet

image

Environment information

No response

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions