Skip to content

Commit b5376bf

Browse files
committed
Fix theme issue.
1 parent 7d35532 commit b5376bf

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.wp-env.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
{
2-
"plugins": ["."],
2+
"plugins": [
3+
"."
4+
],
5+
"themes": [
6+
"https://downloads.wordpress.org/theme/twentytwentyone.zip"
7+
],
38
"env": {
49
"tests": {
510
"mappings": {
611
"wp-cli.yml": "./tests/bin/wp-cli.yml"
712
}
813
}
914
}
10-
}
15+
}

tests/cypress/integration/check-avatar-fe.test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ describe("Check avatar on a post", () => {
2828
cy.visit("/wp-admin/profile.php");
2929

3030
cy.get('input[name="simple_local_avatar_rating"][value="PG"]').check();
31-
cy.get("#description").type("Admin bio");
31+
cy.get("#description").clear().type("Admin bio");
3232
cy.get("#submit").click();
3333

3434
cy.reload();
3535

3636
cy.get('input[name="simple_local_avatar_rating"][value="PG"]').should(
3737
"be.checked"
3838
);
39+
cy.get('input[name="simple_local_avatar_rating"][value="G"]').check();
40+
cy.get("#submit").click();
3941
});
4042

4143
it("Does the avatar appear on a created post?", () => {
@@ -47,9 +49,9 @@ describe("Check avatar on a post", () => {
4749
cy.get("body").then(($body) => {
4850
if (
4951
0 !==
50-
$body.find('.theme[data-slug="twentytwenty"] .button.activate').length
52+
$body.find('.theme[data-slug="twentytwentyone"] .button.activate').length
5153
) {
52-
cy.get('.theme[data-slug="twentytwenty"] .button.activate').click({
54+
cy.get('.theme[data-slug="twentytwentyone"] .button.activate').click({
5355
force: true,
5456
});
5557
}

0 commit comments

Comments
 (0)