mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #2027 from Human-Connection/new-terms-conditions-version-0.0.3
🍰 New terms and conditions version 0.0.3
This commit is contained in:
commit
d3b3d9231e
2
cypress/constants/terms-and-conditions-version.js
Normal file
2
cypress/constants/terms-and-conditions-version.js
Normal file
@ -0,0 +1,2 @@
|
||||
// please change also version in file "webapp/constants/terms-and-conditions-version.js"
|
||||
export const VERSION = '0.0.3'
|
||||
@ -1,4 +1,5 @@
|
||||
import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
|
||||
import { VERSION } from '../../constants/terms-and-conditions-version.js'
|
||||
|
||||
/* global cy */
|
||||
|
||||
@ -31,7 +32,7 @@ Given('I am logged in with a {string} role', role => {
|
||||
cy.factory().create('User', {
|
||||
email: `${role}@example.org`,
|
||||
password: '1234',
|
||||
termsAndConditionsAgreedVersion: "0.0.2",
|
||||
termsAndConditionsAgreedVersion: VERSION,
|
||||
role
|
||||
})
|
||||
cy.login({
|
||||
|
||||
@ -4,6 +4,7 @@ import {
|
||||
Then
|
||||
} from "cypress-cucumber-preprocessor/steps";
|
||||
import helpers from "../../support/helpers";
|
||||
import { VERSION } from '../../constants/terms-and-conditions-version.js'
|
||||
|
||||
/* global cy */
|
||||
|
||||
@ -14,7 +15,7 @@ let loginCredentials = {
|
||||
password: "1234"
|
||||
};
|
||||
const termsAndConditionsAgreedVersion = {
|
||||
termsAndConditionsAgreedVersion: "0.0.2"
|
||||
termsAndConditionsAgreedVersion: VERSION
|
||||
};
|
||||
const narratorParams = {
|
||||
id: 'id-of-peter-pan',
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { config, mount, createLocalVue } from '@vue/test-utils'
|
||||
import { VERSION } from '~/constants/terms-and-conditions-version.js'
|
||||
import CreateUserAccount from './CreateUserAccount'
|
||||
import { SignupVerificationMutation } from '~/graphql/Registration.js'
|
||||
import Styleguide from '@human-connection/styleguide'
|
||||
@ -81,7 +82,7 @@ describe('CreateUserAccount', () => {
|
||||
email: 'sixseven@example.org',
|
||||
nonce: '666777',
|
||||
password: 'hellopassword',
|
||||
termsAndConditionsAgreedVersion: '0.0.2',
|
||||
termsAndConditionsAgreedVersion: VERSION,
|
||||
locale: 'en',
|
||||
},
|
||||
})
|
||||
|
||||
@ -1 +1,2 @@
|
||||
export const VERSION = '0.0.2'
|
||||
// please change also version in file "cypress/constants/terms-and-conditions-version.js"
|
||||
export const VERSION = '0.0.3'
|
||||
|
||||
@ -26,6 +26,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// if you change terms and conditions please change also version in file "webapp/constants/terms-and-conditions-version.js"
|
||||
sections: [
|
||||
'terms-of-service',
|
||||
'use-and-license',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user