Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1150 equivalent frontend test scope in cypress with admin UI changes #1803

Draft
wants to merge 113 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
994d876
Fix multiselect buttons with rounded corners
SamuelWei Nov 19, 2024
3f4a34e
Fix frontend user view / edit permissions
SamuelWei Nov 19, 2024
9fa0a66
Fix missing permissions for user index list
SamuelWei Nov 19, 2024
85b3160
Fix error handling
SamuelWei Nov 20, 2024
ff1b818
Close multiselect dropdown on selection
SamuelWei Nov 20, 2024
1785da1
Disable role select during loading
SamuelWei Nov 20, 2024
77c5832
Bugfix overlay reload buttons
SamuelWei Nov 20, 2024
7f2f633
Start adding AdminUsers Index and new tests
Sabr1n4W Nov 25, 2024
3a076f3
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Nov 25, 2024
269b146
Start adding AdminUsers View tests
Sabr1n4W Nov 27, 2024
9c2127f
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Nov 27, 2024
b6e8fd1
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Dec 2, 2024
52d7f8e
Start adding AdminUsers Edit tests (Base, Email, Others)
Sabr1n4W Dec 2, 2024
baa20a5
Continue adding AdminUsers Edit tests (Security)
Sabr1n4W Dec 4, 2024
20c67b1
Continue adding AdminServers Index tests and restructure permission t…
Sabr1n4W Dec 6, 2024
fd1da18
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Dec 6, 2024
aaf7cbb
Improve AdminUsers tests
Sabr1n4W Dec 7, 2024
aeb9ee0
Continue adding AdminServers tests (index, view, new)
Sabr1n4W Dec 8, 2024
8431985
Continue adding AdminServers tests (edit) and improve tests
Sabr1n4W Dec 9, 2024
c503b84
Improve tests
Sabr1n4W Dec 11, 2024
d172bf6
Improve tests
Sabr1n4W Dec 11, 2024
b24960b
Improve tests
Sabr1n4W Dec 11, 2024
ce0497b
Fix overlays not shown after loading error
Sabr1n4W Dec 12, 2024
55c44c5
Fix search not disabled during loading (index pages)
Sabr1n4W Dec 12, 2024
9f05773
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Dec 14, 2024
7de6e89
Fix dialog buttons not disabled correctly during actions on admin pages
Sabr1n4W Dec 16, 2024
fa6a61c
Fix add server pool button visibility/permission
Sabr1n4W Dec 16, 2024
8fe0961
Start adding AdminServerPools tests (index)
Sabr1n4W Dec 16, 2024
d92b298
Continue adding AdminServerPools tests (index, view)
Sabr1n4W Dec 17, 2024
3a35f1b
Continue adding AdminServerPools tests (new, edit)
Sabr1n4W Dec 18, 2024
7cae7f3
Fix AdminServerPoolsView server multiselect not disabled while loading
Sabr1n4W Dec 18, 2024
87fca1a
Fix AdminServerPoolsView server form error message
Sabr1n4W Dec 18, 2024
64fd362
Fix AdminServerPoolsView handleStaleError
Sabr1n4W Dec 18, 2024
84545f8
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Dec 20, 2024
0d1485d
Adjust admin server pools tests
Sabr1n4W Dec 20, 2024
674bb51
Start adding AdminRoomTypes tests
Sabr1n4W Dec 27, 2024
f113a97
Improve tests
Sabr1n4W Dec 31, 2024
cb203bd
Start adding MeetingsIndex tests
Sabr1n4W Dec 31, 2024
9386ddb
Start adding ForgotPassword and PasswordReset tests
Sabr1n4W Dec 31, 2024
e6e5cbe
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Dec 31, 2024
aa70196
Start adding VerifyEmail tests
Sabr1n4W Jan 2, 2025
f297844
Improve tests
Sabr1n4W Jan 2, 2025
1ba9546
Fix error message (AdminRoomTypesView)
Sabr1n4W Jan 2, 2025
4621996
Add missing loading retry button (AdminRoomTypesIndex)
Sabr1n4W Jan 2, 2025
869bcbf
Merge branch 'develop' of github.com:THM-Health/PILOS into fix-admin-…
Sabr1n4W Jan 2, 2025
55f336f
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Jan 7, 2025
e0bb6cd
Start adding AdminSettings tests (general, edit)
Sabr1n4W Jan 8, 2025
d31e21a
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Jan 9, 2025
5fff2ae
Merge branch 'develop' of github.com:THM-Health/PILOS into fix-admin-…
Sabr1n4W Jan 9, 2025
84fec0a
Add reload button for replacement room type (RoomTypesDeleteButton)
Sabr1n4W Jan 9, 2025
677c4c6
Fix bbb logo image url input
Sabr1n4W Jan 9, 2025
1cc9866
Adjust backend tests
Sabr1n4W Jan 9, 2025
aef6a1d
Merge branch 'develop' of github.com:THM-Health/PILOS into fix-admin-…
Sabr1n4W Jan 10, 2025
040eee2
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Jan 11, 2025
220a92f
Fix tests (locales and dark mode)
Sabr1n4W Jan 12, 2025
d8c3c1b
Improve AdminSettings tests
Sabr1n4W Jan 12, 2025
2b6f886
Improve AdminSettings tests
Sabr1n4W Jan 12, 2025
fb26e4f
Improve AdminSettings tests (add save changes errors test)
Sabr1n4W Jan 13, 2025
f3ef87e
Merge branch 'develop' of github.com:THM-Health/PILOS into fix-admin-…
Sabr1n4W Jan 13, 2025
612dbbf
Fix error message (AdminSettings)
Sabr1n4W Jan 13, 2025
854d2dc
Add AdminSettings only view tests
Sabr1n4W Jan 14, 2025
c67eae9
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Jan 15, 2025
5b18a11
Improve tests
Sabr1n4W Jan 15, 2025
1054d5b
Improve tests
Sabr1n4W Jan 15, 2025
4418476
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Jan 15, 2025
f3f90de
Merge branch 'develop' of github.com:THM-Health/PILOS into fix-admin-…
Sabr1n4W Jan 15, 2025
28a9d68
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Jan 17, 2025
c6a6f13
Code cleanup
Sabr1n4W Jan 17, 2025
c27c98e
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Jan 18, 2025
925a37e
Adjust AdminUsers tests
Sabr1n4W Jan 20, 2025
746b368
Fix tests
Sabr1n4W Jan 20, 2025
55b84d4
Improve tests
Sabr1n4W Jan 20, 2025
98be656
Start adding AdminRolesIndex tests
Sabr1n4W Jan 22, 2025
e042776
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Jan 22, 2025
8764660
Fix 404 handling
SamuelWei Jan 22, 2025
41723e9
Merge remote-tracking branch 'origin/fix-admin-ui-user-management' in…
SamuelWei Jan 22, 2025
a599445
Fix role naming in tests
Sabr1n4W Jan 22, 2025
69944f2
Merge branch '1150-equivalent-frontend-test-scope-in-cypress' of gith…
Sabr1n4W Jan 22, 2025
17ab5a9
Add missing data-test for replacement room types reload button
Sabr1n4W Jan 22, 2025
c235fb0
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Jan 23, 2025
faf650e
Improve tests
Sabr1n4W Jan 24, 2025
0ffc9b7
Start adding AdminRolesView tests
Sabr1n4W Jan 24, 2025
7b2b3e0
Merge branch '1150-equivalent-frontend-test-scope-in-cypress' of gith…
Sabr1n4W Jan 24, 2025
a2d317b
Continue adding AdminRolesView tests (New, Edit)
Sabr1n4W Jan 26, 2025
14ae339
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Jan 27, 2025
367b10e
Adjust ForgotPassword tests
Sabr1n4W Jan 27, 2025
708805a
Rename user roles fixture
Sabr1n4W Jan 27, 2025
8c28c4c
Improve tests
Sabr1n4W Jan 27, 2025
bd2f05b
Fix access superuser attribute
SamuelWei Jan 27, 2025
b15d9a7
Fix accessing multiselect ref
SamuelWei Jan 27, 2025
1530eed
Merge branch 'develop' of github.com:THM-Health/PILOS into fix-admin-…
SamuelWei Jan 27, 2025
d1872cc
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Jan 27, 2025
c0857e8
Merge branch 'fix-admin-ui-user-management' of github.com:THM-Health/…
Sabr1n4W Jan 27, 2025
f8aac21
Merge branch '1150-equivalent-frontend-test-scope-in-cypress' of gith…
Sabr1n4W Jan 27, 2025
059f88f
Add banner tests
Sabr1n4W Jan 28, 2025
c4f9963
Add Footer and helpButton tests
Sabr1n4W Jan 28, 2025
5d1263a
Add checks for breadcrumbs
Sabr1n4W Jan 29, 2025
0f4c332
Add missing data-test
Sabr1n4W Jan 29, 2025
74c2165
Add admin index tests
Sabr1n4W Jan 29, 2025
c641fb2
Code cleanup
Sabr1n4W Jan 29, 2025
f9f4fa6
Merge branch 'develop' of github.com:THM-Health/PILOS into 1150-equiv…
Sabr1n4W Jan 29, 2025
e12c956
Merge branch '1150-equivalent-frontend-test-scope-in-cypress' of gith…
Sabr1n4W Jan 29, 2025
e400f6d
Update changelog
Sabr1n4W Jan 29, 2025
239b4ce
Improve RoomsViewMeeting test
Sabr1n4W Jan 29, 2025
2468a7a
Fix access id attribute
SamuelWei Jan 29, 2025
45b76b1
Adjust AdminRolesEdit tests
Sabr1n4W Jan 29, 2025
26e7535
Change permissions loading behaviour (AdminRolesView)
Sabr1n4W Jan 29, 2025
49be3d1
Update changelog
Sabr1n4W Jan 29, 2025
04e4e16
Merge branch 'develop' into fix-admin-ui-user-management
Sabr1n4W Jan 29, 2025
d71d14c
Merge branch 'fix-admin-ui-user-management' into 1150-equivalent-fron…
Sabr1n4W Jan 29, 2025
eb6ef7a
Merge branch '1150-equivalent-frontend-test-scope-in-cypress' into 11…
Sabr1n4W Jan 29, 2025
c8524ec
Increase number of workers
Sabr1n4W Jan 29, 2025
352fae1
Increase number of workers
Sabr1n4W Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ jobs:
fail-fast: false
matrix:
# run copies of the current job in parallel
containers: [1, 2, 3, 4, 5]
containers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]

steps:
- name: Checkout
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add missing loading retry button (Admin RoomTypesIndex) ([#1588])
- Add reload button for replacement room type (RoomTypesDeleteButton) ([#1588])
- Permission restrictions to prevent non-superusers from editing and deleting superusers ([#1651])
- Permission restrictions to prevent non-superusers from assigning the superuser role ([#1651])
- Environment variable for configuring restricted permissions that cannot be assigned to non-superuser roles ([#1651])
Expand All @@ -21,11 +23,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Real-time input validation on create superuser command ([#1651])
- Error handling in room statistics ([#1535], [#1600])
- Error handling in room attendance ([#1535], [#1600])
- Close multiselect dropdowns on selection ([#1588])
- Permissions loading behaviour (AdminRolesView) ([#1588])
- Improve frontend tests for login page ([#1794])
- Access code input type on room settings section to hide browser arrow buttons ([#1827], [#1829])

### Fixed

- Search not disabled during loading (admin index pages) ([#1675], [#1588])
- Overlays not shown after loading error (admin view pages) ([#1677], [#1588])
- Dialog buttons not disabled correctly during actions on admin pages ([#1711], [#1588])
- Error messages (AdminServerPoolsView, AdminRoomTypesView, AdminSettings) ([#1588])
- Error handling (AdminUsersIndex, AdminServerPoolsView (staleError), RoomTypesDeleteButton (404 error)) ([#1588])
- BBB logo image url input ([#1751], [#1588])
- Access superuser attribute ([#1588])
- Accessing multiselect ref ([#1588])
- Overlay reload buttons ([#1588])
- Wrong error message shown for 422 errors when verifying email ([#1744], [#1758])
- Broken banner link style 'warning' ([#1759], [#1760])
- Inconsistent select/multiselect loading states ([#1772])
Expand Down Expand Up @@ -331,6 +344,7 @@ You can find the changelog for older versions there [here](https://github.com/TH
[#1559]: https://github.com/THM-Health/PILOS/issues/1559
[#1561]: https://github.com/THM-Health/PILOS/pull/1561
[#1565]: https://github.com/THM-Health/PILOS/pull/1565
[#1588]: https://github.com/THM-Health/PILOS/pull/1588
[#1569]: https://github.com/THM-Health/PILOS/pull/1569
[#1595]: https://github.com/THM-Health/PILOS/pull/1595
[#1600]: https://github.com/THM-Health/PILOS/pull/1600
Expand All @@ -342,13 +356,17 @@ You can find the changelog for older versions there [here](https://github.com/TH
[#1618]: https://github.com/THM-Health/PILOS/pull/1618
[#1636]: https://github.com/THM-Health/PILOS/issues/1636
[#1651]: https://github.com/THM-Health/PILOS/issues/1651
[#1675]: https://github.com/THM-Health/PILOS/issues/1675
[#1677]: https://github.com/THM-Health/PILOS/issues/1677
[#1678]: https://github.com/THM-Health/PILOS/pull/1678
[#1679]: https://github.com/THM-Health/PILOS/issues/1679
[#1702]: https://github.com/THM-Health/PILOS/pull/1702
[#1704]: https://github.com/THM-Health/PILOS/pull/1704
[#1711]: https://github.com/THM-Health/PILOS/issues/1711
[#1721]: https://github.com/THM-Health/PILOS/issues/1721
[#1724]: https://github.com/THM-Health/PILOS/pull/1724
[#1744]: https://github.com/THM-Health/PILOS/issues/1744
[#1751]: https://github.com/THM-Health/PILOS/issues/1751
[#1758]: https://github.com/THM-Health/PILOS/pull/1758
[#1759]: https://github.com/THM-Health/PILOS/issues/1759
[#1760]: https://github.com/THM-Health/PILOS/pull/1760
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Requests/UpdateSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function rules()
'recording_attendance_retention_period' => ['required', 'numeric', Rule::enum(TimePeriod::class)],
'recording_recording_retention_period' => ['required', 'numeric', Rule::enum(TimePeriod::class)->except($disabledRecordingRetentionPeriods)],

'bbb_logo' => ['string', 'max:255'],
'bbb_logo' => ['nullable', 'string', 'max:255'],
'bbb_logo_file' => ['image', 'max:500'],
'bbb_style' => ['nullable', 'file', 'max:500'],
'bbb_default_presentation' => ['nullable', 'file', 'max:'.(config('bigbluebutton.max_filesize') * 1000), 'mimes:'.config('bigbluebutton.allowed_file_mimes')],
Expand Down
14 changes: 10 additions & 4 deletions resources/js/components/AppBanner.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<Message
data-test="app-banner"
:style="{
'border-color': background,
'background-color': background,
Expand All @@ -20,14 +21,19 @@
<template #messageicon> </template>

<div class="container flex flex-col gap-2">
<p v-if="title" class="m-0 text-lg font-bold">
<i v-if="icon" :class="`${icon}`" />
<p v-if="title" class="m-0 text-lg font-bold" data-test="banner-title">
<i v-if="icon" :class="`${icon}`" data-test="banner-icon" />
{{ title }}
</p>
<p class="m-0 whitespace-pre-wrap">
<p class="m-0 whitespace-pre-wrap" data-test="banner-message">
{{ message }}
</p>
<a v-if="link" :href="link" :target="`_${linkTarget}`">
<a
v-if="link"
:href="link"
:target="`_${linkTarget}`"
data-test="banner-link-button"
>
<Button
:link="linkStyle === 'link'"
:style="linkStyle === 'link' ? { color: color } : {}"
Expand Down
5 changes: 5 additions & 0 deletions resources/js/components/AppFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"
ref="footer_container"
class="border-t bg-white p-2 border-surface dark:bg-surface-900"
data-test="app-footer"
>
<div class="container">
<div
Expand All @@ -21,6 +22,7 @@
link
:href="settingsStore.getSetting('general.legal_notice_url')"
class="p-0 text-sm"
data-test="legal-notice-button"
>
{{ $t("app.footer.legal_notice") }}
</Button>
Expand All @@ -41,6 +43,7 @@
rel="privacy-policy nofollow"
:href="settingsStore.getSetting('general.privacy_policy_url')"
class="p-0 text-sm"
data-test="privacy-policy-button"
>
{{ $t("app.footer.privacy_policy") }}
</Button>
Expand All @@ -53,11 +56,13 @@
class="p-0 text-sm"
href="https://github.com/THM-Health/PILOS"
target="_blank"
data-test="github-button"
><raw-text>PILOS</raw-text></Button
>
<span
v-if="settingsStore.getSetting('general.version')"
class="ml-2 text-sm"
data-test="version"
>
{{ $t("app.version") }}
{{ settingsStore.getSetting("general.version") }}
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/ColorSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
selected: isColorSelected(color),
'pointer-events-none cursor-not-allowed opacity-80': props.disabled,
}"
data-test="color-button"
@click="selectColor(color)"
>
<div class="overlay">
Expand Down
2 changes: 2 additions & 0 deletions resources/js/components/FileInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
class="p-button p-component shrink-0"
:class="{ 'p-disabled': disabled }"
tabindex="0"
data-test="file-input-button"
@keyup.enter="fileInputRef.click()"
@keyup.space="fileInputRef.click()"
>
Expand All @@ -17,6 +18,7 @@
class="sr-only"
:disabled="disabled"
:accept="accept"
data-test="file-input-input"
@input="fileSelected"
/>
</template>
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/LoginTabLocal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
link
class="self-start p-0"
to="/forgot_password"
data-test="forgot-password-button"
>
{{ $t("auth.forgot_password") }}
</Button>
Expand Down
11 changes: 7 additions & 4 deletions resources/js/components/RoleSelect.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<InputGroup>
<multiselect
ref="rolesMultiselectRef"
ref="roles-multiselect"
:aria-labelledby="ariaLabelledby"
data-test="role-dropdown"
:placeholder="$t('admin.roles.select_roles')"
Expand Down Expand Up @@ -44,7 +44,7 @@
</div>
</template>
<template #tag="{ option, remove }">
<Chip :label="option.name">
<Chip :label="option.name" data-test="role-chip">
<span>{{ option.name }}</span>
<Button
v-if="
Expand All @@ -56,6 +56,7 @@
class="h-5 w-5 rounded-full text-sm"
icon="fas fa-xmark"
:aria-label="$t('admin.users.remove_role', { name: option.name })"
data-test="remove-role-button"
@click="remove(option)"
/>
</Chip>
Expand All @@ -68,6 +69,7 @@
outlined
icon="fa-solid fa-arrow-left"
:label="$t('app.previous_page')"
data-test="previous-page-button"
@click="loadRoles(Math.max(1, currentPage - 1))"
/>
<Button
Expand All @@ -76,6 +78,7 @@
outlined
icon="fa-solid fa-arrow-right"
:label="$t('app.next_page')"
data-test="next-page-button"
@click="loadRoles(currentPage + 1)"
/>
</div>
Expand All @@ -94,7 +97,7 @@
</template>

<script setup>
import { onBeforeMount, ref, watch } from "vue";
import { onBeforeMount, ref, useTemplateRef, watch } from "vue";
import { useApi } from "../composables/useApi.js";
import { Multiselect } from "vue-multiselect";

Expand Down Expand Up @@ -139,7 +142,7 @@ const loading = ref(false);
const loadingError = ref(false);
const currentPage = ref(1);
const hasNextPage = ref(false);
const rolesMultiselectRef = ref(null);
const rolesMultiselectRef = useTemplateRef("roles-multiselect");

watch(
() => props.modelValue,
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/RoomTypeBadge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:pt="{
root: { style: { background: roomType.color } },
}"
data-test="room-type-badge"
>
{{ roomType.name }}
</Tag>
Expand Down
4 changes: 4 additions & 0 deletions resources/js/components/SettingsFileSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
severity="danger"
:label="$t('app.cancel')"
icon="fa-solid fa-times"
data-test="settings-file-cancel-button"
@click="resetFileUpload"
/>

Expand All @@ -27,13 +28,15 @@
severity="danger"
:label="$t('app.delete')"
icon="fa-solid fa-trash"
data-test="settings-file-delete-button"
@click="fileDeleted = true"
/>
<Button
v-if="fileDeleted"
severity="secondary"
icon="fa-solid fa-undo"
:label="$t('app.undo_delete')"
data-test="settings-file-undo-delete-button"
@click="fileDeleted = false"
/>

Expand All @@ -44,6 +47,7 @@
:href="fileUrl"
target="_blank"
:label="$t('app.view')"
data-test="settings-file-view-button"
icon="fa-solid fa-eye"
/>
</div>
Expand Down
5 changes: 5 additions & 0 deletions resources/js/components/SettingsImageSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
type="text"
:invalid="urlInvalid"
:required="!showDelete"
data-test="settings-image-url-input"
/>

<FileInput
Expand All @@ -27,6 +28,7 @@
severity="danger"
:label="$t('app.cancel')"
icon="fa-solid fa-times"
data-test="settings-image-cancel-button"
@click="resetFileUpload"
/>

Expand All @@ -36,13 +38,15 @@
severity="danger"
:label="$t('app.delete')"
icon="fa-solid fa-trash"
data-test="settings-image-delete-button"
@click="imageDeleted = true"
/>
<Button
v-if="imageDeleted"
severity="secondary"
:label="$t('app.undo_delete')"
icon="fa-solid fa-undo"
data-test="settings-image-undo-delete-button"
@click="imageDeleted = false"
/>
</div>
Expand All @@ -66,6 +70,7 @@
:src="newImageUrl ?? imageUrl"
:width="previewWidth"
:alt="previewAlt"
data-test="settings-image-preview"
/>
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions resources/js/components/SettingsRolesDeleteButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:disabled="isBusy"
severity="danger"
icon="fa-solid fa-trash"
data-test="roles-delete-button"
@click="showModal"
/>

Expand All @@ -18,20 +19,24 @@
:dismissable-mask="!isBusy"
:closeable="!isBusy"
:draggable="false"
data-test="roles-delete-dialog"
>
<span>
{{ $t("admin.roles.delete.confirm", { name: props.name }) }}
</span>
<template #footer>
<Button
:label="$t('app.no')"
:disabled="isBusy"
severity="secondary"
data-test="dialog-cancel-button"
@click="modalVisible = false"
/>
<Button
:label="$t('app.yes')"
severity="danger"
:loading="isBusy"
data-test="dialog-continue-button"
@click="deleteRole"
/>
</template>
Expand Down
Loading
Loading