mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 20:28:34 +02:00
✨ Add visual testing to dashboard
This commit is contained in:
parent
4e6c1857dd
commit
4e770fd326
26 changed files with 976 additions and 11 deletions
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"~:id": "~u62edaeb8-e212-81ca-8004-80a6f8a42e8e",
|
||||
"~:profile-id": "~uc7ce0794-0992-8105-8004-38e630f29a9b",
|
||||
"~:created-at": "~m1718348381840",
|
||||
"~:updated-at": "~m1718348381840",
|
||||
"~:name": "new token",
|
||||
"~:token": "eyJhbGciOiJBMjU2S1ciLCJlbmMiOiJBMjU2R0NNIn0.9aFN5YdOI-b-NQPos5uqF8J8b9iMyeri3yYhV5FlHuhNbRwk0YuftA.Dygx9O5-KsAHpuqD.ryTDCqelYOk1XYflTlDGFlzG8VLuElKHSGHdJyJvWqcCUANWzl8cVvezvU2GWg1Piin21KNrcV0TEcHPpDggySRbTn01MOIjw3vTVHdGrlHaVq5VpnWb5hCfs_P9kF7Y2IWOa4da4mM.IulvBQUllnay7clORd-NSg"
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
[]
|
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
{
|
||||
"~:id": "~u62edaeb8-e212-81ca-8004-80a6f8a42e8e",
|
||||
"~:name": "new token",
|
||||
"~:created-at": "~m1718348381840",
|
||||
"~:updated-at": "~m1718348381840"
|
||||
}
|
||||
]
|
15
frontend/playwright/data/dashboard/get-font-variants.json
Normal file
15
frontend/playwright/data/dashboard/get-font-variants.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
[
|
||||
{
|
||||
"~:font-style": "normal",
|
||||
"~:team-id": "~uc7ce0794-0992-8105-8004-38e630f40f6d",
|
||||
"~:font-id": "~u838cda51-c50f-8032-8004-6ac92ea6eaea",
|
||||
"~:font-weight": 400,
|
||||
"~:ttf-file-id": "~ue3710e43-7e40-405d-a4ea-8bb85443d44b",
|
||||
"~:modified-at": "~m1716880956479",
|
||||
"~:otf-file-id": "~u72bd3cda-478a-4e0e-a372-4a4f7cdc1371",
|
||||
"~:id": "~u28f4b65f-3667-8087-8004-6ac93050433a",
|
||||
"~:woff1-file-id": "~ua4c0a056-2eb6-47cc-bf80-3115d14e048d",
|
||||
"~:created-at": "~m1716880956479",
|
||||
"~:font-family": "Milligram Variable Trial"
|
||||
}
|
||||
]
|
19
frontend/playwright/data/dashboard/get-projects-full.json
Normal file
19
frontend/playwright/data/dashboard/get-projects-full.json
Normal file
|
@ -0,0 +1,19 @@
|
|||
[{
|
||||
"~:id": "~ue5a24d1b-ef1e-812f-8004-52bab84be6f7",
|
||||
"~:team-id": "~uc7ce0794-0992-8105-8004-38e630f40f6d",
|
||||
"~:created-at": "~m1715266551088",
|
||||
"~:modified-at": "~m1715266551088",
|
||||
"~:is-default": false,
|
||||
"~:name": "New Project 1",
|
||||
"~:is-pinned": false,
|
||||
"~:count": 1
|
||||
},
|
||||
{
|
||||
"~:id": "~uc7ce0794-0992-8105-8004-38e630f7920b",
|
||||
"~:team-id": "~uc7ce0794-0992-8105-8004-38e630f40f6d",
|
||||
"~:created-at": "~m1713533116382",
|
||||
"~:modified-at": "~m1713873823633",
|
||||
"~:is-default": true,
|
||||
"~:name": "Drafts",
|
||||
"~:count": 1
|
||||
}]
|
|
@ -0,0 +1 @@
|
|||
[]
|
219
frontend/playwright/data/dashboard/get-shared-files.json
Normal file
219
frontend/playwright/data/dashboard/get-shared-files.json
Normal file
|
@ -0,0 +1,219 @@
|
|||
{
|
||||
"~#set": [
|
||||
{
|
||||
"~:name": "New File 3",
|
||||
"~:revn": 1,
|
||||
"~:id": "~u28f4b65f-3667-8087-8004-69eca173cc07",
|
||||
"~:is-shared": true,
|
||||
"~:project-id": "~ue5a24d1b-ef1e-812f-8004-52bab84be6f7",
|
||||
"~:created-at": "~m1713518796912",
|
||||
"~:modified-at": "~m1713519762931",
|
||||
"~:library-summary": {
|
||||
"~:components": {
|
||||
"~:count": 1,
|
||||
"~:sample": [
|
||||
{
|
||||
"~:id": "~ua30724ae-f8d8-8003-8004-69ecacfc8a4c",
|
||||
"~:name": "Rectangle",
|
||||
"~:path": "",
|
||||
"~:modified-at": "~m1716823150739",
|
||||
"~:main-instance-id": "~ua30724ae-f8d8-8003-8004-69ecacfa2045",
|
||||
"~:main-instance-page": "~u28f4b65f-3667-8087-8004-69eca173cc08",
|
||||
"~:objects": {
|
||||
"~ua30724ae-f8d8-8003-8004-69ecacfa2045": {
|
||||
"~#shape": {
|
||||
"~:y": 168,
|
||||
"~:hide-fill-on-export": false,
|
||||
"~:transform": {
|
||||
"~#matrix": {
|
||||
"~:a": 1.0,
|
||||
"~:b": 0.0,
|
||||
"~:c": 0.0,
|
||||
"~:d": 1.0,
|
||||
"~:e": 0.0,
|
||||
"~:f": 0.0
|
||||
}
|
||||
},
|
||||
"~:rotation": 0,
|
||||
"~:hide-in-viewer": true,
|
||||
"~:name": "Rectangle",
|
||||
"~:width": 553,
|
||||
"~:type": "~:frame",
|
||||
"~:points": [
|
||||
{
|
||||
"~#point": {
|
||||
"~:x": 481,
|
||||
"~:y": 168
|
||||
}
|
||||
},
|
||||
{
|
||||
"~#point": {
|
||||
"~:x": 1034,
|
||||
"~:y": 168
|
||||
}
|
||||
},
|
||||
{
|
||||
"~#point": {
|
||||
"~:x": 1034,
|
||||
"~:y": 550
|
||||
}
|
||||
},
|
||||
{
|
||||
"~#point": {
|
||||
"~:x": 481,
|
||||
"~:y": 550
|
||||
}
|
||||
}
|
||||
],
|
||||
"~:component-root": true,
|
||||
"~:show-content": true,
|
||||
"~:proportion-lock": false,
|
||||
"~:transform-inverse": {
|
||||
"~#matrix": {
|
||||
"~:a": 1.0,
|
||||
"~:b": 0.0,
|
||||
"~:c": 0.0,
|
||||
"~:d": 1.0,
|
||||
"~:e": 0.0,
|
||||
"~:f": 0.0
|
||||
}
|
||||
},
|
||||
"~:id": "~ua30724ae-f8d8-8003-8004-69ecacfa2045",
|
||||
"~:parent-id": "~u00000000-0000-0000-0000-000000000000",
|
||||
"~:component-id": "~ua30724ae-f8d8-8003-8004-69ecacfc8a4c",
|
||||
"~:frame-id": "~u00000000-0000-0000-0000-000000000000",
|
||||
"~:strokes": [],
|
||||
"~:x": 481,
|
||||
"~:main-instance": true,
|
||||
"~:proportion": 1,
|
||||
"~:selrect": {
|
||||
"~#rect": {
|
||||
"~:x": 481,
|
||||
"~:y": 168,
|
||||
"~:width": 553,
|
||||
"~:height": 382,
|
||||
"~:x1": 481,
|
||||
"~:y1": 168,
|
||||
"~:x2": 1034,
|
||||
"~:y2": 550
|
||||
}
|
||||
},
|
||||
"~:fills": [],
|
||||
"~:flip-x": null,
|
||||
"~:height": 382,
|
||||
"~:component-file": "~u28f4b65f-3667-8087-8004-69eca173cc07",
|
||||
"~:flip-y": null,
|
||||
"~:shapes": [
|
||||
"~ua30724ae-f8d8-8003-8004-69eca9b27c8c"
|
||||
]
|
||||
}
|
||||
},
|
||||
"~ua30724ae-f8d8-8003-8004-69eca9b27c8c": {
|
||||
"~#shape": {
|
||||
"~:y": 168,
|
||||
"~:rx": 0,
|
||||
"~:transform": {
|
||||
"~#matrix": {
|
||||
"~:a": 1.0,
|
||||
"~:b": 0.0,
|
||||
"~:c": 0.0,
|
||||
"~:d": 1.0,
|
||||
"~:e": 0.0,
|
||||
"~:f": 0.0
|
||||
}
|
||||
},
|
||||
"~:rotation": 0,
|
||||
"~:grow-type": "~:fixed",
|
||||
"~:hide-in-viewer": false,
|
||||
"~:name": "Rectangle",
|
||||
"~:width": 553,
|
||||
"~:type": "~:rect",
|
||||
"~:points": [
|
||||
{
|
||||
"~#point": {
|
||||
"~:x": 481,
|
||||
"~:y": 168
|
||||
}
|
||||
},
|
||||
{
|
||||
"~#point": {
|
||||
"~:x": 1034,
|
||||
"~:y": 168
|
||||
}
|
||||
},
|
||||
{
|
||||
"~#point": {
|
||||
"~:x": 1034,
|
||||
"~:y": 550
|
||||
}
|
||||
},
|
||||
{
|
||||
"~#point": {
|
||||
"~:x": 481,
|
||||
"~:y": 550
|
||||
}
|
||||
}
|
||||
],
|
||||
"~:proportion-lock": false,
|
||||
"~:transform-inverse": {
|
||||
"~#matrix": {
|
||||
"~:a": 1.0,
|
||||
"~:b": 0.0,
|
||||
"~:c": 0.0,
|
||||
"~:d": 1.0,
|
||||
"~:e": 0.0,
|
||||
"~:f": 0.0
|
||||
}
|
||||
},
|
||||
"~:constraints-v": "~:scale",
|
||||
"~:constraints-h": "~:scale",
|
||||
"~:id": "~ua30724ae-f8d8-8003-8004-69eca9b27c8c",
|
||||
"~:parent-id": "~ua30724ae-f8d8-8003-8004-69ecacfa2045",
|
||||
"~:frame-id": "~ua30724ae-f8d8-8003-8004-69ecacfa2045",
|
||||
"~:strokes": [],
|
||||
"~:x": 481,
|
||||
"~:proportion": 1,
|
||||
"~:selrect": {
|
||||
"~#rect": {
|
||||
"~:x": 481,
|
||||
"~:y": 168,
|
||||
"~:width": 553,
|
||||
"~:height": 382,
|
||||
"~:x1": 481,
|
||||
"~:y1": 168,
|
||||
"~:x2": 1034,
|
||||
"~:y2": 550
|
||||
}
|
||||
},
|
||||
"~:fills": [
|
||||
{
|
||||
"~:fill-color": "#B1B2B5",
|
||||
"~:fill-opacity": 1
|
||||
}
|
||||
],
|
||||
"~:flip-x": null,
|
||||
"~:ry": 0,
|
||||
"~:height": 382,
|
||||
"~:flip-y": null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"~:media": {
|
||||
"~:count": 0,
|
||||
"~:sample": []
|
||||
},
|
||||
"~:colors": {
|
||||
"~:count": 0,
|
||||
"~:sample": []
|
||||
},
|
||||
"~:typographies": {
|
||||
"~:count": 0,
|
||||
"~:sample": []
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
[]
|
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
{ "~:email": "test1@mail.com", "~:role": "~:editor", "~:expired": true },
|
||||
{ "~:email": "test2@mail.com", "~:role": "~:editor", "~:expired": false },
|
||||
{ "~:email": "test3@mail.com", "~:role": "~:admin", "~:expired": true },
|
||||
{ "~:email": "test4@mail.com", "~:role": "~:admin", "~:expired": false }
|
||||
]
|
16
frontend/playwright/data/dashboard/get-team-members.json
Normal file
16
frontend/playwright/data/dashboard/get-team-members.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
[
|
||||
{
|
||||
"~:is-admin": true,
|
||||
"~:email": "foo@example.com",
|
||||
"~:team-id": "~udd33ff88-f4e5-8033-8003-8096cc07bdf3",
|
||||
"~:name": "Princesa Leia",
|
||||
"~:fullname": "Princesa Leia",
|
||||
"~:is-owner": false,
|
||||
"~:modified-at": "~m1713533116365",
|
||||
"~:can-edit": true,
|
||||
"~:is-active": true,
|
||||
"~:id": "~uc7ce0794-0992-8105-8004-38e630f29a9b",
|
||||
"~:profile-id": "~uf56647eb-19a7-8115-8003-b6bc939ecd1b",
|
||||
"~:created-at": "~m1713533116365"
|
||||
}
|
||||
]
|
|
@ -0,0 +1,29 @@
|
|||
[
|
||||
{
|
||||
"~:id": "~u8b479b80-e02d-8074-8004-4088dc6bfd11",
|
||||
"~:project-id": "~uc7ce0794-0992-8105-8004-38e630f7920b",
|
||||
"~:created-at": "~m1714045521389",
|
||||
"~:modified-at": "~m1714045654874",
|
||||
"~:name": "New File 2",
|
||||
"~:revn": 1,
|
||||
"~:is-shared": false
|
||||
},
|
||||
{
|
||||
"~:id": "~u95d6fdd8-48d8-8148-8004-38af910d2dbe",
|
||||
"~:project-id": "~uc7ce0794-0992-8105-8004-38e630f7920b",
|
||||
"~:created-at": "~m1713518796912",
|
||||
"~:modified-at": "~m1713519762931",
|
||||
"~:name": "New File 1",
|
||||
"~:revn": 1,
|
||||
"~:is-shared": false
|
||||
},
|
||||
{
|
||||
"~:id": "~u28f4b65f-3667-8087-8004-69eca173cc07",
|
||||
"~:project-id": "~ue5a24d1b-ef1e-812f-8004-52bab84be6f7",
|
||||
"~:created-at": "~m1713518796912",
|
||||
"~:modified-at": "~m1713519762931",
|
||||
"~:name": "New File 3",
|
||||
"~:revn": 1,
|
||||
"~:is-shared": true
|
||||
}
|
||||
]
|
1
frontend/playwright/data/dashboard/get-team-stats.json
Normal file
1
frontend/playwright/data/dashboard/get-team-stats.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"~:projects":1,"~:files":3}
|
|
@ -0,0 +1 @@
|
|||
[]
|
20
frontend/playwright/data/dashboard/get-webhooks.json
Normal file
20
frontend/playwright/data/dashboard/get-webhooks.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
[
|
||||
{
|
||||
"~:id": "~u29ce7ec9-e75d-81b4-8004-08100373558a",
|
||||
"~:uri": {
|
||||
"~#uri": "https://www.abc.es"
|
||||
},
|
||||
"~:mtype": "application/json",
|
||||
"~:is-active": false,
|
||||
"~:error-count": 0
|
||||
},
|
||||
{
|
||||
"~:id": "~u43d6b3b1-40f7-807b-8003-f9846292b4c7",
|
||||
"~:uri": {
|
||||
"~#uri": "https://www.google.com"
|
||||
},
|
||||
"~:mtype": "application/json",
|
||||
"~:is-active": true,
|
||||
"~:error-count": 0
|
||||
}
|
||||
]
|
29
frontend/playwright/data/dashboard/search-files.json
Normal file
29
frontend/playwright/data/dashboard/search-files.json
Normal file
|
@ -0,0 +1,29 @@
|
|||
[
|
||||
{
|
||||
"~:id": "~u8b479b80-e02d-8074-8004-4088dc6bfd11",
|
||||
"~:project-id": "~uc7ce0794-0992-8105-8004-38e630f7920b",
|
||||
"~:created-at": "~m1714045521389",
|
||||
"~:modified-at": "~m1714045654874",
|
||||
"~:name": "New File 2",
|
||||
"~:revn": 1,
|
||||
"~:is-shared": false
|
||||
},
|
||||
{
|
||||
"~:id": "~u95d6fdd8-48d8-8148-8004-38af910d2dbe",
|
||||
"~:project-id": "~uc7ce0794-0992-8105-8004-38e630f7920b",
|
||||
"~:created-at": "~m1713518796912",
|
||||
"~:modified-at": "~m1713519762931",
|
||||
"~:name": "New File 1",
|
||||
"~:revn": 1,
|
||||
"~:is-shared": false
|
||||
},
|
||||
{
|
||||
"~:id": "~u28f4b65f-3667-8087-8004-69eca173cc07",
|
||||
"~:project-id": "~ue5a24d1b-ef1e-812f-8004-52bab84be6f7",
|
||||
"~:created-at": "~m1713518796912",
|
||||
"~:modified-at": "~m1713519762931",
|
||||
"~:name": "New File 3",
|
||||
"~:revn": 1,
|
||||
"~:is-shared": true
|
||||
}
|
||||
]
|
|
@ -0,0 +1,48 @@
|
|||
[
|
||||
{
|
||||
"~:features": {
|
||||
"~#set": [
|
||||
"layout/grid",
|
||||
"styles/v2",
|
||||
"fdata/pointer-map",
|
||||
"fdata/objects-map",
|
||||
"components/v2",
|
||||
"fdata/shape-data-type"
|
||||
]
|
||||
},
|
||||
"~:permissions": {
|
||||
"~:type": "~:membership",
|
||||
"~:is-owner": true,
|
||||
"~:is-admin": true,
|
||||
"~:can-edit": true
|
||||
},
|
||||
"~:name": "Default",
|
||||
"~:modified-at": "~m1713533116375",
|
||||
"~:id": "~uc7ce0794-0992-8105-8004-38e630f40f6d",
|
||||
"~:created-at": "~m1713533116375",
|
||||
"~:is-default": true
|
||||
},
|
||||
{
|
||||
"~:features": {
|
||||
"~#set": [
|
||||
"layout/grid",
|
||||
"styles/v2",
|
||||
"fdata/pointer-map",
|
||||
"fdata/objects-map",
|
||||
"components/v2",
|
||||
"fdata/shape-data-type"
|
||||
]
|
||||
},
|
||||
"~:permissions": {
|
||||
"~:type": "~:membership",
|
||||
"~:is-owner": true,
|
||||
"~:is-admin": true,
|
||||
"~:can-edit": true
|
||||
},
|
||||
"~:name": "Second team",
|
||||
"~:modified-at": "~m1701164272671",
|
||||
"~:id": "~udd33ff88-f4e5-8033-8003-8096cc07bdf3",
|
||||
"~:created-at": "~m1701164272671",
|
||||
"~:is-default": false
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue