feat: Add e2e user invite test suite (no-changelog) (#5412)

This commit is contained in:
Alex Grozav
2023-02-08 22:41:35 +02:00
committed by GitHub
parent 9c1f827dad
commit e059caf993
14 changed files with 227 additions and 35 deletions

View File

@@ -7,6 +7,7 @@
:label="$locale.baseText('settings.users.invite')"
@click="onInvite"
size="large"
data-test-id="settings-users-invite-button"
/>
</div>
</div>

View 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>