mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Refactor playwright tests, change button text for better usability and validate mimetype in API layer
This commit is contained in:
@@ -40,7 +40,6 @@ export const actions: Actions = {
|
||||
};
|
||||
|
||||
if (coverFile) {
|
||||
headers["X-Mimetype"] = coverFile.type;
|
||||
headers["X-Original-Filename"] = coverFile.name;
|
||||
}
|
||||
|
||||
@@ -82,7 +81,6 @@ export const actions: Actions = {
|
||||
"Content-Type": "application/octet-stream",
|
||||
Accept: "application/vnd.pgrst.object+json",
|
||||
"X-Website-Id": params.websiteId,
|
||||
"X-Mimetype": file.type,
|
||||
"X-Original-Filename": file.name
|
||||
},
|
||||
body: await file.arrayBuffer(),
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
content={data.article.main_content ?? ""}
|
||||
/>
|
||||
|
||||
<button type="submit" disabled={data.permissionLevel === 10}>Submit</button>
|
||||
<button type="submit" disabled={data.permissionLevel === 10}>Update article</button>
|
||||
</form>
|
||||
</section>
|
||||
</WebsiteEditor>
|
||||
|
||||
Reference in New Issue
Block a user