[TESTS] Fix some simple text (#2332)
* Clearer infrastructure wait message * Use a generic mailbox rather than spamming Diego Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
09a8be8b59
commit
b4e353c3d3
10
e2e/data.js
10
e2e/data.js
|
@ -9,23 +9,23 @@ const data = {
|
||||||
regular: {
|
regular: {
|
||||||
username: `userone${ value }`,
|
username: `userone${ value }`,
|
||||||
password: '123',
|
password: '123',
|
||||||
email: `diego.mello+regular${ value }@rocket.chat`
|
email: `mobile+regular${ value }@rocket.chat`
|
||||||
},
|
},
|
||||||
alternate: {
|
alternate: {
|
||||||
username: `usertwo${ value }`,
|
username: `usertwo${ value }`,
|
||||||
password: '123',
|
password: '123',
|
||||||
email: `diego.mello+alternate${ value }@rocket.chat`,
|
email: `mobile+alternate${ value }@rocket.chat`,
|
||||||
totpSecret: 'NA4GOMZGHBQSK6KEFRVT62DMGJJGSYZJFZIHO3ZOGVXWCYZ6MMZQ'
|
totpSecret: 'NA4GOMZGHBQSK6KEFRVT62DMGJJGSYZJFZIHO3ZOGVXWCYZ6MMZQ'
|
||||||
},
|
},
|
||||||
profileChanges: {
|
profileChanges: {
|
||||||
username: `userthree${ value }`,
|
username: `userthree${ value }`,
|
||||||
password: '123',
|
password: '123',
|
||||||
email: `diego.mello+profileChanges${ value }@rocket.chat`
|
email: `mobile+profileChanges${ value }@rocket.chat`
|
||||||
},
|
},
|
||||||
existing: {
|
existing: {
|
||||||
username: `existinguser${ value }`,
|
username: `existinguser${ value }`,
|
||||||
password: '123',
|
password: '123',
|
||||||
email: `diego.mello+existing${ value }@rocket.chat`
|
email: `mobile+existing${ value }@rocket.chat`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
channels: {
|
channels: {
|
||||||
|
@ -41,7 +41,7 @@ const data = {
|
||||||
registeringUser: {
|
registeringUser: {
|
||||||
username: `newuser${ value }`,
|
username: `newuser${ value }`,
|
||||||
password: `password${ value }`,
|
password: `password${ value }`,
|
||||||
email: `diego.mello+registering${ value }@rocket.chat`
|
email: `mobile+registering${ value }@rocket.chat`
|
||||||
},
|
},
|
||||||
random: value
|
random: value
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,23 +9,23 @@ const data = {
|
||||||
regular: {
|
regular: {
|
||||||
username: `userone${ value }`,
|
username: `userone${ value }`,
|
||||||
password: '123',
|
password: '123',
|
||||||
email: `diego.mello+regular${ value }@rocket.chat`
|
email: `mobile+regular${ value }@rocket.chat`
|
||||||
},
|
},
|
||||||
alternate: {
|
alternate: {
|
||||||
username: `usertwo${ value }`,
|
username: `usertwo${ value }`,
|
||||||
password: '123',
|
password: '123',
|
||||||
email: `diego.mello+alternate${ value }@rocket.chat`,
|
email: `mobile+alternate${ value }@rocket.chat`,
|
||||||
totpSecret: 'NA4GOMZGHBQSK6KEFRVT62DMGJJGSYZJFZIHO3ZOGVXWCYZ6MMZQ'
|
totpSecret: 'NA4GOMZGHBQSK6KEFRVT62DMGJJGSYZJFZIHO3ZOGVXWCYZ6MMZQ'
|
||||||
},
|
},
|
||||||
profileChanges: {
|
profileChanges: {
|
||||||
username: `userthree${ value }`,
|
username: `userthree${ value }`,
|
||||||
password: '123',
|
password: '123',
|
||||||
email: `diego.mello+profileChanges${ value }@rocket.chat`
|
email: `mobile+profileChanges${ value }@rocket.chat`
|
||||||
},
|
},
|
||||||
existing: {
|
existing: {
|
||||||
username: `existinguser${ value }`,
|
username: `existinguser${ value }`,
|
||||||
password: '123',
|
password: '123',
|
||||||
email: `diego.mello+existing${ value }@rocket.chat`
|
email: `mobile+existing${ value }@rocket.chat`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
channels: {
|
channels: {
|
||||||
|
@ -41,7 +41,7 @@ const data = {
|
||||||
registeringUser: {
|
registeringUser: {
|
||||||
username: `newuser${ value }`,
|
username: `newuser${ value }`,
|
||||||
password: `password${ value }`,
|
password: `password${ value }`,
|
||||||
email: `diego.mello+registering${ value }@rocket.chat`
|
email: `mobile+registering${ value }@rocket.chat`
|
||||||
},
|
},
|
||||||
random: value
|
random: value
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,23 +9,23 @@ const data = {
|
||||||
regular: {
|
regular: {
|
||||||
username: `userone${ value }`,
|
username: `userone${ value }`,
|
||||||
password: '123',
|
password: '123',
|
||||||
email: `diego.mello+regular${ value }@rocket.chat`
|
email: `mobile+regular${ value }@rocket.chat`
|
||||||
},
|
},
|
||||||
alternate: {
|
alternate: {
|
||||||
username: `usertwo${ value }`,
|
username: `usertwo${ value }`,
|
||||||
password: '123',
|
password: '123',
|
||||||
email: `diego.mello+alternate${ value }@rocket.chat`,
|
email: `mobile+alternate${ value }@rocket.chat`,
|
||||||
totpSecret: 'NA4GOMZGHBQSK6KEFRVT62DMGJJGSYZJFZIHO3ZOGVXWCYZ6MMZQ'
|
totpSecret: 'NA4GOMZGHBQSK6KEFRVT62DMGJJGSYZJFZIHO3ZOGVXWCYZ6MMZQ'
|
||||||
},
|
},
|
||||||
profileChanges: {
|
profileChanges: {
|
||||||
username: `userthree${ value }`,
|
username: `userthree${ value }`,
|
||||||
password: '123',
|
password: '123',
|
||||||
email: `diego.mello+profileChanges${ value }@rocket.chat`
|
email: `mobile+profileChanges${ value }@rocket.chat`
|
||||||
},
|
},
|
||||||
existing: {
|
existing: {
|
||||||
username: `existinguser${ value }`,
|
username: `existinguser${ value }`,
|
||||||
password: '123',
|
password: '123',
|
||||||
email: `diego.mello+existing${ value }@rocket.chat`
|
email: `mobile+existing${ value }@rocket.chat`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
channels: {
|
channels: {
|
||||||
|
@ -41,7 +41,7 @@ const data = {
|
||||||
registeringUser: {
|
registeringUser: {
|
||||||
username: `newuser${ value }`,
|
username: `newuser${ value }`,
|
||||||
password: `password${ value }`,
|
password: `password${ value }`,
|
||||||
email: `diego.mello+registering${ value }@rocket.chat`
|
email: `mobile+registering${ value }@rocket.chat`
|
||||||
},
|
},
|
||||||
random: value
|
random: value
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ if [ "$COMMAND" == "start" ]; then
|
||||||
MAX_ATTEMPTS=60
|
MAX_ATTEMPTS=60
|
||||||
while [ $ATTEMPT_NUMBER -lt $MAX_ATTEMPTS ]; do # https://stackoverflow.com/a/21189312/399007
|
while [ $ATTEMPT_NUMBER -lt $MAX_ATTEMPTS ]; do # https://stackoverflow.com/a/21189312/399007
|
||||||
ATTEMPT_NUMBER=$((ATTEMPT_NUMBER + 1 ))
|
ATTEMPT_NUMBER=$((ATTEMPT_NUMBER + 1 ))
|
||||||
echo "Waiting for server to be up ($ATTEMPT_NUMBER of $MAX_ATTEMPTS)"
|
echo "Checking if servers are ready (attempt $ATTEMPT_NUMBER of $MAX_ATTEMPTS)"
|
||||||
LOGS=$(docker logs rc_test_env_rocketchat_1 2> /dev/null)
|
LOGS=$(docker logs rc_test_env_rocketchat_1 2> /dev/null)
|
||||||
if grep -q 'SERVER RUNNING' <<< $LOGS ; then
|
if grep -q 'SERVER RUNNING' <<< $LOGS ; then
|
||||||
echo "RocketChat is ready!"
|
echo "RocketChat is ready!"
|
||||||
|
|
|
@ -85,7 +85,7 @@ describe('Profile screen', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should change email and password', async() => {
|
it('should change email and password', async() => {
|
||||||
await element(by.id('profile-view-email')).replaceText(`diego.mello+profileChangesNew${ data.random }@rocket.chat`);
|
await element(by.id('profile-view-email')).replaceText(`mobile+profileChangesNew${ data.random }@rocket.chat`);
|
||||||
await element(by.id('profile-view-new-password')).replaceText(`${ profileChangeUser.password }new`);
|
await element(by.id('profile-view-new-password')).replaceText(`${ profileChangeUser.password }new`);
|
||||||
await element(by.id('profile-view-submit')).tap();
|
await element(by.id('profile-view-submit')).tap();
|
||||||
await element(by.type('_UIAlertControllerTextField')).replaceText(`${ profileChangeUser.password }`)
|
await element(by.type('_UIAlertControllerTextField')).replaceText(`${ profileChangeUser.password }`)
|
||||||
|
|
Loading…
Reference in New Issue