Skip to content

Commit

Permalink
Fix theme activation.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Oct 13, 2023
1 parent b5376bf commit 4d0418d
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions tests/cypress/integration/check-avatar-fe.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,10 @@ describe("Check avatar on a post", () => {
});

it("Does the avatar appear on a created post?", () => {
// Make a new post
cy.visit("/wp-admin/post-new.php");

// Set the theme
cy.visit("/wp-admin/themes.php");
cy.get("body").then(($body) => {
if (
0 !==
$body.find('.theme[data-slug="twentytwentyone"] .button.activate').length
) {
cy.get('.theme[data-slug="twentytwentyone"] .button.activate').click({
force: true,
});
}
cy.get('.theme[data-slug="twentytwentyone"] .button.activate').click({
force: true,
});

cy.createPost({
Expand Down

0 comments on commit 4d0418d

Please sign in to comment.