mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 23:46:10 +02:00
✨ Add e2e tests for fix color palette default library
This commit is contained in:
parent
d8184fb756
commit
edfc47d3de
10 changed files with 362 additions and 6 deletions
242
frontend/playwright/data/workspace/get-file-library.json
Normal file
242
frontend/playwright/data/workspace/get-file-library.json
Normal file
|
@ -0,0 +1,242 @@
|
|||
{
|
||||
"~:features":{
|
||||
"~#set":[
|
||||
"layout/grid",
|
||||
"styles/v2",
|
||||
"components/v2",
|
||||
"fdata/shape-data-type"
|
||||
]
|
||||
},
|
||||
"~:permissions":{
|
||||
"~:type":"~:membership",
|
||||
"~:is-owner":true,
|
||||
"~:is-admin":true,
|
||||
"~:can-edit":true,
|
||||
"~:can-read":true,
|
||||
"~:is-logged":true
|
||||
},
|
||||
"~:has-media-trimmed":false,
|
||||
"~:comment-thread-seqn":0,
|
||||
"~:name":"Testing library 1",
|
||||
"~:revn":2,
|
||||
"~:modified-at":"~m1717512948250",
|
||||
"~:id":"~uc1249a66-fce0-8175-8004-7433fe4be8bc",
|
||||
"~:is-shared":true,
|
||||
"~:version":48,
|
||||
"~:project-id": "~uc7ce0794-0992-8105-8004-38e630f7920b",
|
||||
"~:created-at":"~m1717512934704",
|
||||
"~:data":{
|
||||
"~:pages":[
|
||||
"~uc1249a66-fce0-8175-8004-7433fe4be8bd"
|
||||
],
|
||||
"~:pages-index":{
|
||||
"~uc1249a66-fce0-8175-8004-7433fe4be8bd":{
|
||||
"~:options":{
|
||||
|
||||
},
|
||||
"~:objects":{
|
||||
"~u00000000-0000-0000-0000-000000000000":{
|
||||
"~#shape":{
|
||||
"~:y":0,
|
||||
"~: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,
|
||||
"~:name":"Root Frame",
|
||||
"~:width":0.01,
|
||||
"~:type":"~:frame",
|
||||
"~:points":[
|
||||
{
|
||||
"~#point":{
|
||||
"~:x":0,
|
||||
"~:y":0
|
||||
}
|
||||
},
|
||||
{
|
||||
"~#point":{
|
||||
"~:x":0.01,
|
||||
"~:y":0
|
||||
}
|
||||
},
|
||||
{
|
||||
"~#point":{
|
||||
"~:x":0.01,
|
||||
"~:y":0.01
|
||||
}
|
||||
},
|
||||
{
|
||||
"~#point":{
|
||||
"~:x":0,
|
||||
"~:y":0.01
|
||||
}
|
||||
}
|
||||
],
|
||||
"~: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":"~u00000000-0000-0000-0000-000000000000",
|
||||
"~:parent-id":"~u00000000-0000-0000-0000-000000000000",
|
||||
"~:frame-id":"~u00000000-0000-0000-0000-000000000000",
|
||||
"~:strokes":[
|
||||
|
||||
],
|
||||
"~:x":0,
|
||||
"~:proportion":1.0,
|
||||
"~:selrect":{
|
||||
"~#rect":{
|
||||
"~:x":0,
|
||||
"~:y":0,
|
||||
"~:width":0.01,
|
||||
"~:height":0.01,
|
||||
"~:x1":0,
|
||||
"~:y1":0,
|
||||
"~:x2":0.01,
|
||||
"~:y2":0.01
|
||||
}
|
||||
},
|
||||
"~:fills":[
|
||||
{
|
||||
"~:fill-color":"#FFFFFF",
|
||||
"~:fill-opacity":1
|
||||
}
|
||||
],
|
||||
"~:flip-x":null,
|
||||
"~:height":0.01,
|
||||
"~:flip-y":null,
|
||||
"~:shapes":[
|
||||
"~uc70224ec-c410-807b-8004-743400e00be8"
|
||||
]
|
||||
}
|
||||
},
|
||||
"~uc70224ec-c410-807b-8004-743400e00be8":{
|
||||
"~#shape":{
|
||||
"~:y":255,
|
||||
"~: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":279.0000000000001,
|
||||
"~:type":"~:rect",
|
||||
"~:points":[
|
||||
{
|
||||
"~#point":{
|
||||
"~:x":523,
|
||||
"~:y":255
|
||||
}
|
||||
},
|
||||
{
|
||||
"~#point":{
|
||||
"~:x":802.0000000000001,
|
||||
"~:y":255
|
||||
}
|
||||
},
|
||||
{
|
||||
"~#point":{
|
||||
"~:x":802.0000000000001,
|
||||
"~:y":534
|
||||
}
|
||||
},
|
||||
{
|
||||
"~#point":{
|
||||
"~:x":523,
|
||||
"~:y":534
|
||||
}
|
||||
}
|
||||
],
|
||||
"~: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":"~uc70224ec-c410-807b-8004-743400e00be8",
|
||||
"~:parent-id":"~u00000000-0000-0000-0000-000000000000",
|
||||
"~:frame-id":"~u00000000-0000-0000-0000-000000000000",
|
||||
"~:strokes":[
|
||||
|
||||
],
|
||||
"~:x":523,
|
||||
"~:proportion":1,
|
||||
"~:selrect":{
|
||||
"~#rect":{
|
||||
"~:x":523,
|
||||
"~:y":255,
|
||||
"~:width":279.0000000000001,
|
||||
"~:height":279,
|
||||
"~:x1":523,
|
||||
"~:y1":255,
|
||||
"~:x2":802.0000000000001,
|
||||
"~:y2":534
|
||||
}
|
||||
},
|
||||
"~:fills":[
|
||||
{
|
||||
"~:fill-color":"#B1B2B5",
|
||||
"~:fill-opacity":1
|
||||
}
|
||||
],
|
||||
"~:flip-x":null,
|
||||
"~:ry":0,
|
||||
"~:height":279,
|
||||
"~:flip-y":null
|
||||
}
|
||||
}
|
||||
},
|
||||
"~:id":"~uc1249a66-fce0-8175-8004-7433fe4be8bd",
|
||||
"~:name":"Page 1"
|
||||
}
|
||||
},
|
||||
"~:id":"~uc1249a66-fce0-8175-8004-7433fe4be8bc",
|
||||
"~:options":{
|
||||
"~:components-v2":true
|
||||
},
|
||||
"~:recent-colors":[
|
||||
{
|
||||
"~:color":"#187cd5",
|
||||
"~:opacity":1
|
||||
}
|
||||
],
|
||||
"~:colors":{
|
||||
"~uc70224ec-c410-807b-8004-74340616cffb":{
|
||||
"~:path":"",
|
||||
"~:color":"#187cd5",
|
||||
"~:name":"test-color-187cd5",
|
||||
"~:modified-at":"~m1717512945259",
|
||||
"~:opacity":1,
|
||||
"~:id":"~uc70224ec-c410-807b-8004-74340616cffb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
"~#set":[
|
||||
{
|
||||
"~:name":"Testing library 1",
|
||||
"~:revn":2,
|
||||
"~:modified-at":"~m1717512948250",
|
||||
"~:thumbnail-uri":"http://localhost:3000/assets/by-id/5ad7a7a7-c64e-4bb8-852d-15708d125905",
|
||||
"~:id":"~uc1249a66-fce0-8175-8004-7433fe4be8bc",
|
||||
"~:is-shared":true,
|
||||
"~:project-id":"~uc7ce0794-0992-8105-8004-38e630f7920b",
|
||||
"~:created-at":"~m1717512934704",
|
||||
"~:library-summary":{
|
||||
"~:components":{
|
||||
"~:count":0,
|
||||
"~:sample":[
|
||||
|
||||
]
|
||||
},
|
||||
"~:media":{
|
||||
"~:count":0,
|
||||
"~:sample":[
|
||||
|
||||
]
|
||||
},
|
||||
"~:colors":{
|
||||
"~:count":1,
|
||||
"~:sample":[
|
||||
{
|
||||
"~:path":"",
|
||||
"~:color":"#187cd5",
|
||||
"~:name":"test-color",
|
||||
"~:modified-at":"~m1717512945259",
|
||||
"~:opacity":1,
|
||||
"~:id":"~uc70224ec-c410-807b-8004-74340616cffb"
|
||||
}
|
||||
]
|
||||
},
|
||||
"~:typographies":{
|
||||
"~:count":0,
|
||||
"~:sample":[
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
{}
|
|
@ -0,0 +1 @@
|
|||
{}
|
Loading…
Add table
Add a link
Reference in a new issue