fixed terms and conditions version check

This commit is contained in:
Ulf Gebhardt 2021-04-10 11:55:42 +02:00
parent c52dceddf2
commit 19ca8390e7
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
4 changed files with 2 additions and 7 deletions

View File

@ -1,2 +0,0 @@
// please change also version in file "webapp/constants/terms-and-conditions-version.js"
export const VERSION = '0.0.4'

View File

@ -2,6 +2,7 @@ Feature: Authentication
As an user
I want to sign in
In order to be able to posts and do other contributions as myself
Furthermore I want to be able to stay logged in and logout again
Background:
Given I have an user account

View File

@ -4,7 +4,6 @@ import {
Then
} from "cypress-cucumber-preprocessor/steps";
import helpers from "../../support/helpers";
import { VERSION } from '../../constants/terms-and-conditions-version.js'
import locales from '../../../webapp/locales'
import orderBy from 'lodash/orderBy'
@ -13,10 +12,6 @@ import orderBy from 'lodash/orderBy'
const languages = orderBy(locales, 'name')
let lastPost = {};
const termsAndConditionsAgreedVersion = {
termsAndConditionsAgreedVersion: VERSION
};
const annoyingParams = {
email: "spammy-spammer@example.org",
slug: 'spammy-spammer',

View File

@ -2,6 +2,7 @@ const narrator = {
id: 'id-of-peter-pan',
name: "Peter Pan",
slug: "peter-pan",
termsAndConditionsAgreedVersion: '0.0.4',
}
export default narrator