Merge branch 'test/add-cypress-on-event-creation' into 'master'

Add e2e seed and test event creation

See merge request framasoft/mobilizon!254
This commit is contained in:
Thomas Citharel
2019-10-12 19:47:19 +02:00
16 changed files with 237 additions and 30 deletions

View File

@@ -137,8 +137,8 @@ export default class NavBar extends Vue {
}
}
async handleErrors(errors: GraphQLError) {
if (errors[0].message === 'You need to be logged-in to view your list of identities') {
async handleErrors(errors: GraphQLError[]) {
if (errors.length > 0 && errors[0].message === 'You need to be logged-in to view your list of identities') {
await this.logout();
}
}