Fix readme version, fix frontend tests

This commit is contained in:
Ivan Diaz 2021-01-08 16:31:06 -03:00
parent e554bb64d1
commit 9f7b11413c
4 changed files with 10 additions and 5 deletions

View File

@ -1,6 +1,6 @@
![OpenSupports](http://www.opensupports.com/logo.png) ![OpenSupports](http://www.opensupports.com/logo.png)
[![Build Status](https://travis-ci.org/opensupports/opensupports.svg?branch=master)](https://travis-ci.org/opensupports/opensupports) v4.8.0 [![Build Status](https://travis-ci.org/opensupports/opensupports.svg?branch=master)](https://travis-ci.org/opensupports/opensupports) v4.9.0
OpenSupports is an open source ticket system built primarily with PHP and ReactJS. OpenSupports is an open source ticket system built primarily with PHP and ReactJS.
Please, visit our website for more information: [http://www.opensupports.com/](http://www.opensupports.com/) Please, visit our website for more information: [http://www.opensupports.com/](http://www.opensupports.com/)

View File

@ -99,7 +99,7 @@ describe('Login/Recover Widget', function () {
failMessage: 'INVALID_CREDENTIALS' failMessage: 'INVALID_CREDENTIALS'
} }
}); });
expect(loginForm.props.errors).to.deep.equal({password: 'ERROR_PASSWORD'}); expect(loginForm.props.errors).to.deep.equal({password: 'Invalid password'});
expect(loginForm.props.loading).to.equal(false); expect(loginForm.props.loading).to.equal(false);
}); });
@ -149,7 +149,7 @@ describe('Login/Recover Widget', function () {
it('should add error and stop loading when send recover fails', function () { it('should add error and stop loading when send recover fails', function () {
component.onRecoverPasswordFail(); component.onRecoverPasswordFail();
expect(recoverPassword.props.formProps.errors).to.deep.equal({email: 'EMAIL_NOT_EXIST'}); expect(recoverPassword.props.formProps.errors).to.deep.equal({email: 'Email does not exist'});
expect(recoverPassword.props.formProps.loading).to.equal(false); expect(recoverPassword.props.formProps.loading).to.equal(false);
}); });

View File

@ -59,7 +59,7 @@ describe('Recover Password form', function () {
let message = TestUtils.scryRenderedComponentsWithType(component, Message)[0]; let message = TestUtils.scryRenderedComponentsWithType(component, Message)[0];
expect(message).to.not.equal(null); expect(message).to.not.equal(null);
expect(message.props.type).to.equal('error'); expect(message.props.type).to.equal('error');
expect(message.props.children).to.equal('INVALID_RECOVER'); expect(message.props.children).to.equal('Invalid recover data');
}); });
it('should show message when recover success', function () { it('should show message when recover success', function () {
@ -69,6 +69,6 @@ describe('Recover Password form', function () {
let message = TestUtils.scryRenderedComponentsWithType(component, Message)[0]; let message = TestUtils.scryRenderedComponentsWithType(component, Message)[0];
expect(message).to.not.equal(null); expect(message).to.not.equal(null);
expect(message.props.type).to.equal('success'); expect(message.props.type).to.equal('success');
expect(message.props.children).to.equal('VALID_RECOVER'); expect(message.props.children).to.equal('Password recovered successfully');
}); });
}); });

View File

@ -42,3 +42,8 @@ replace({
from: `v${OLD_VERSION}`, from: `v${OLD_VERSION}`,
to: `v${NEW_VERSION}` to: `v${NEW_VERSION}`
}); });
replace({
files: `${WORKDIR}/README.md`,
from: `v${OLD_VERSION}`,
to: `v${NEW_VERSION}`
});