Refactor playwright tests, change button text for better usability and validate mimetype in API layer

This commit is contained in:
thiloho
2024-10-25 19:23:38 +02:00
parent 4e98df5790
commit f79cbffa5a
38 changed files with 1396 additions and 1167 deletions

View File

@@ -39,7 +39,7 @@
<input type="text" name="title" maxlength="50" pattern="\S(.*\S)?" required />
</label>
<button type="submit">Submit</button>
<button type="submit">Create website</button>
</form>
</Modal>
</section>
@@ -72,7 +72,7 @@
>
</select>
</label>
<button type="submit">Submit</button>
<button type="submit">Apply</button>
</form>
</details>
@@ -105,7 +105,7 @@
>
<input type="hidden" name="id" value={id} />
<label>
Title
Title:
<input
type="text"
name="title"
@@ -119,7 +119,7 @@
<button
type="submit"
disabled={data.user.id !== user_id && collab[0].permission_level !== 30}
>Submit</button
>Update website</button
>
</form>
</Modal>