@@ -109,7 +109,7 @@ describe('Upload', () => {
109
109
110
110
await expect ( page . locator ( '.file-field .file-details img' ) ) . toHaveAttribute (
111
111
'src' ,
112
- / \/ a p i \/ u p l o a d s \/ f i l e \/ o g - i m a g e \. j p g ( \? . * ) ? $ / ,
112
+ / ^ d a t a : i m a g e \/ p n g ; b a s e 6 4 , / ,
113
113
)
114
114
} )
115
115
@@ -118,7 +118,7 @@ describe('Upload', () => {
118
118
await uploadImage ( )
119
119
await expect ( page . locator ( '.file-field .file-details img' ) ) . toHaveAttribute (
120
120
'src' ,
121
- / \/ a p i \/ u p l o a d s \/ f i l e \/ p a y l o a d - 1 \. j p g ( \? . * ) ? $ / ,
121
+ / ^ d a t a : i m a g e \/ p n g ; b a s e 6 4 , / ,
122
122
)
123
123
} )
124
124
@@ -147,11 +147,11 @@ describe('Upload', () => {
147
147
) . toContainText ( 'payload-1.png' )
148
148
await expect (
149
149
page . locator ( '.field-type.upload .upload-relationship-details img' ) ,
150
- ) . toHaveAttribute ( 'src' , '/api/uploads/file/payload-1. png' )
150
+ ) . toHaveAttribute ( 'src' , / ^ d a t a : i m a g e \/ p n g ; b a s e 6 4 , / )
151
151
await saveDocAndAssert ( page )
152
152
} )
153
153
154
- test ( 'should upload after editing image inside a document drawer' , async ( ) => {
154
+ test . skip ( 'should upload after editing image inside a document drawer' , async ( ) => {
155
155
await uploadImage ( )
156
156
await wait ( 1000 )
157
157
// Open the media drawer and create a png upload
@@ -173,6 +173,7 @@ describe('Upload', () => {
173
173
. locator ( '[id^=edit-upload] .edit-upload__input input[name="Height (px)"]' )
174
174
. nth ( 1 )
175
175
. fill ( '200' )
176
+
176
177
await page . locator ( '[id^=edit-upload] button:has-text("Apply Changes")' ) . nth ( 1 ) . click ( )
177
178
await page . locator ( '[id^=doc-drawer_uploads_1_] #action-save' ) . click ( )
178
179
await expect ( page . locator ( '.payload-toast-container' ) ) . toContainText ( 'successfully' )
0 commit comments