feat: Add e2e user invite test suite (no-changelog) (#5412)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
:label="$locale.baseText('settings.users.invite')"
|
||||
@click="onInvite"
|
||||
size="large"
|
||||
data-test-id="settings-users-invite-button"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
31
packages/editor-ui/src/views/SignoutView.vue
Normal file
31
packages/editor-ui/src/views/SignoutView.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<script lang="ts">
|
||||
import { VIEWS } from '@/constants';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useUsersStore } from '@/stores/users';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
|
||||
export default mixins(showMessage).extend({
|
||||
name: 'SignoutView',
|
||||
computed: {
|
||||
...mapStores(useUsersStore),
|
||||
},
|
||||
methods: {
|
||||
async logout() {
|
||||
try {
|
||||
await this.usersStore.logout();
|
||||
this.$router.replace({ name: VIEWS.SIGNIN });
|
||||
} catch (e) {
|
||||
this.$showError(e, this.$locale.baseText('auth.signout.error'));
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.logout();
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div />
|
||||
</template>
|
||||
Reference in New Issue
Block a user