Skip to content

Commit 5e176b8

Browse files
committed
Added testPagesCardHeaderNavigation MK1
1 parent 2fa6061 commit 5e176b8

File tree

12 files changed

+616
-29
lines changed

12 files changed

+616
-29
lines changed
Lines changed: 51 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,56 @@
11
{
2-
"request": {
3-
"method": "GET",
4-
"urlPath": "/wpcom/v2/sites/106707880/dashboard/cards-data/",
5-
"queryParameters": {
6-
"_locale": {
7-
"matches": "(.*)"
8-
},
9-
"cards": {
10-
"equalTo": "todays_stats,posts"
11-
}
2+
"request": {
3+
"method": "GET",
4+
"urlPath": "/wpcom/v2/sites/106707880/dashboard/cards-data/",
5+
"queryParameters": {
6+
"_locale": {
7+
"matches": "(.*)"
8+
},
9+
"cards": {
10+
"equalTo": "todays_stats,posts,pages"
1211
}
13-
},
14-
"response": {
15-
"status": 200,
16-
"jsonBody": {
17-
"todays_stats": {
18-
"views": 56,
19-
"visitors": 44,
20-
"likes": 19,
21-
"comments": 0
12+
}
13+
},
14+
"response": {
15+
"status": 200,
16+
"jsonBody": {
17+
"todays_stats": {
18+
"views": 56,
19+
"visitors": 44,
20+
"likes": 19,
21+
"comments": 0
22+
},
23+
"posts": {
24+
"has_published": true,
25+
"draft": [],
26+
"scheduled": []
27+
},
28+
"pages": [
29+
{
30+
"id": 51,
31+
"title": "Blog",
32+
"content": "Introduce yourself and your blog My Latest Posts • • • • • •",
33+
"status": "publish",
34+
"modified": "2023-05-18 10:33:38",
35+
"date": "2023-05-18 10:33:38"
2236
},
23-
"posts": {
24-
"has_published": true,
25-
"draft": [],
26-
"scheduled": []
37+
{
38+
"id": 30,
39+
"title": "Cart",
40+
"content": "",
41+
"status": "publish",
42+
"modified": "2023-02-03 09:46:32",
43+
"date": "2023-02-03 09:46:32"
44+
},
45+
{
46+
"id": 31,
47+
"title": "Checkout",
48+
"content": "",
49+
"status": "publish",
50+
"modified": "2023-02-03 09:46:32",
51+
"date": "2023-02-03 09:46:32"
2752
}
28-
}
53+
]
2954
}
30-
}
55+
}
56+
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"request": {
3+
"method": "GET",
4+
"urlPathPattern": "/wpcom/v2/sites/106707880/external-services",
5+
"queryParameters": {
6+
"locale": {
7+
"matches": "(.*)"
8+
},
9+
"type": {
10+
"equalTo": "publicize"
11+
}
12+
}
13+
},
14+
"response": {
15+
"status": 200,
16+
"jsonBody": {
17+
18+
"services": {
19+
"facebook": {
20+
"ID": "facebook",
21+
"label": "Facebook",
22+
"type": "publicize",
23+
"description": "Publish your posts to your Facebook timeline or page.",
24+
"genericon": {
25+
"class": "facebook-alt",
26+
"unicode": "\\f203"
27+
},
28+
"icon": "http://i.wordpress.com/wp-content/admin-plugins/publicize/assets/publicize-fb-2x.png",
29+
"connect_URL": "https://public-api.wordpress.com/connect/?action=request&kr_nonce=c98be927cc&nonce=31e8eb987b&for=connect&service=facebook&blog=215224204&kr_blog_nonce=3d5d1f5eff&magic=keyring",
30+
"multiple_external_user_ID_support": true,
31+
"external_users_only": true,
32+
"jetpack_support": true,
33+
"jetpack_module_required": "publicize"
34+
},
35+
"twitter": {
36+
"ID": "twitter",
37+
"label": "Twitter",
38+
"type": "publicize",
39+
"description": "Publish your posts to your Twitter account.",
40+
"genericon": {
41+
"class": "twitter",
42+
"unicode": "\\f202"
43+
},
44+
"icon": "http://i.wordpress.com/wp-content/admin-plugins/publicize/assets/publicize-twitter-2x.png",
45+
"connect_URL": "https://public-api.wordpress.com/connect/?action=request&kr_nonce=c98be927cc&nonce=49e6f85e72&for=connect&service=twitter&blog=215224204&kr_blog_nonce=3d5d1f5eff&magic=keyring",
46+
"multiple_external_user_ID_support": false,
47+
"external_users_only": false,
48+
"jetpack_support": true,
49+
"jetpack_module_required": "publicize",
50+
"status": "unsupported"
51+
},
52+
"linkedin": {
53+
"ID": "linkedin",
54+
"label": "LinkedIn",
55+
"type": "publicize",
56+
"description": "Publish your posts to your LinkedIn profile.",
57+
"genericon": {
58+
"class": "linkedin",
59+
"unicode": "\\f207"
60+
},
61+
"icon": "http://i.wordpress.com/wp-content/admin-plugins/publicize/assets/publicize-linkedin-2x.png",
62+
"connect_URL": "https://public-api.wordpress.com/connect/?action=request&kr_nonce=c98be927cc&nonce=9ed430da6c&for=connect&service=linkedin&blog=215224204&kr_blog_nonce=3d5d1f5eff&magic=keyring",
63+
"multiple_external_user_ID_support": false,
64+
"external_users_only": false,
65+
"jetpack_support": true,
66+
"jetpack_module_required": "publicize"
67+
},
68+
"tumblr": {
69+
"ID": "tumblr",
70+
"label": "Tumblr",
71+
"type": "publicize",
72+
"description": "Publish your posts to your Tumblr blog.",
73+
"genericon": {
74+
"class": "tumblr",
75+
"unicode": "\\f214"
76+
},
77+
"icon": "http://i.wordpress.com/wp-content/admin-plugins/publicize/assets/publicize-tumblr-2x.png",
78+
"multiple_external_user_ID_support": true,
79+
"external_users_only": false,
80+
"connect_URL": "https://public-api.wordpress.com/connect/?action=request&kr_nonce=c98be927cc&nonce=99d8ed4fcc&for=connect&service=tumblr&blog=215224204&kr_blog_nonce=3d5d1f5eff&magic=keyring",
81+
"jetpack_support": true,
82+
"jetpack_module_required": "publicize"
83+
}
84+
}
85+
}
86+
}
87+
}

API-Mocks/WordPressMocks/src/main/assets/mocks/mappings/wpcom/feature-flags.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"status": 200,
1313
"jsonBody": {
1414
"dashboard_card_domain": false,
15-
"dashboard_card_free_to_paid_plans": true
15+
"dashboard_card_free_to_paid_plans": true,
16+
"dashboard_card_pages": true
1617
}
1718
}
1819
}

0 commit comments

Comments
 (0)