2020-07-15 16:28:34 +00:00
|
|
|
const random = require('./helpers/random');
|
|
|
|
const value = random(20);
|
|
|
|
const data = {
|
|
|
|
server: 'https://mobile.rocket.chat',
|
|
|
|
adminUser: 'e2e_admin',
|
|
|
|
adminPassword: 'p7mFh4yLwCRXSnMvG',
|
|
|
|
alternateServer: 'https://stable.rocket.chat',
|
|
|
|
users: {
|
|
|
|
regular: {
|
|
|
|
username: `userone${ value }`,
|
|
|
|
password: '123',
|
2020-07-24 19:19:30 +00:00
|
|
|
email: `mobile+regular${ value }@rocket.chat`
|
2020-07-15 16:28:34 +00:00
|
|
|
},
|
|
|
|
alternate: {
|
|
|
|
username: `usertwo${ value }`,
|
|
|
|
password: '123',
|
2020-07-24 19:19:30 +00:00
|
|
|
email: `mobile+alternate${ value }@rocket.chat`,
|
2020-07-15 16:28:34 +00:00
|
|
|
totpSecret: 'NA4GOMZGHBQSK6KEFRVT62DMGJJGSYZJFZIHO3ZOGVXWCYZ6MMZQ'
|
|
|
|
},
|
|
|
|
profileChanges: {
|
|
|
|
username: `userthree${ value }`,
|
|
|
|
password: '123',
|
2020-07-24 19:19:30 +00:00
|
|
|
email: `mobile+profileChanges${ value }@rocket.chat`
|
2020-07-15 16:28:34 +00:00
|
|
|
},
|
|
|
|
existing: {
|
|
|
|
username: `existinguser${ value }`,
|
|
|
|
password: '123',
|
2020-07-24 19:19:30 +00:00
|
|
|
email: `mobile+existing${ value }@rocket.chat`
|
2020-07-15 16:28:34 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
channels: {
|
2020-07-22 16:32:21 +00:00
|
|
|
detoxpublic: {
|
2020-07-15 16:28:34 +00:00
|
|
|
name: 'detox-public'
|
2020-12-01 17:30:39 +00:00
|
|
|
},
|
|
|
|
detoxpublicprotected: {
|
|
|
|
name: 'detox-public-protected',
|
|
|
|
joinCode: '123'
|
2020-07-15 16:28:34 +00:00
|
|
|
}
|
|
|
|
},
|
2020-07-22 16:32:21 +00:00
|
|
|
groups: {
|
|
|
|
private: {
|
|
|
|
name: `detox-private-${ value }`
|
|
|
|
}
|
|
|
|
},
|
[TEST] E2E Tests for Teams (#3178)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Added moveChannelToTeam and convertToTeam functionality
* Fix SelectListView RadioButton
* Fix moveToTeam
* Added searchBar to SelectListVIew
* Update RoomView , SelectListVIew and string translation for error
* E2E for Teams
* Fix tests and cleanup
* Minor refactor
* Wrong label
* Move/convert
* Fix convert
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-06-04 16:16:05 +00:00
|
|
|
teams: {
|
|
|
|
private: {
|
|
|
|
name: `detox-team-${ value }`
|
|
|
|
}
|
|
|
|
},
|
2020-07-15 16:28:34 +00:00
|
|
|
registeringUser: {
|
|
|
|
username: `newuser${ value }`,
|
|
|
|
password: `password${ value }`,
|
2020-07-24 19:19:30 +00:00
|
|
|
email: `mobile+registering${ value }@rocket.chat`
|
2020-07-15 16:28:34 +00:00
|
|
|
},
|
2021-04-01 19:27:46 +00:00
|
|
|
registeringUser2: {
|
|
|
|
username: `newusertwo${ value }`,
|
|
|
|
password: `passwordtwo${ value }`,
|
|
|
|
email: `mobile+registeringtwo${ value }@rocket.chat`
|
|
|
|
},
|
|
|
|
registeringUser3: {
|
|
|
|
username: `newuserthree${ value }`,
|
|
|
|
password: `passwordthree${ value }`,
|
|
|
|
email: `mobile+registeringthree${ value }@rocket.chat`
|
|
|
|
},
|
[TEST] E2E Tests for Teams (#3178)
* Added Create Team
* Added actionTypes, actions, ENG strings for Teams and updated NewMessageView
* Added createTeam sagas, createTeam reducer, new Team string and update CreateChannelView
* Remove unnecessary actionTypes, reducers and sagas, e2e tests and navigation to team view
* Minor tweaks
* Show TeamChannelsView only if joined the team
* Minor tweak
* Added AddChannelTeamView
* Added permissions, translations strings for teams, deleteTeamRoom and addTeamRooms, AddExistingChannelView, updated CreateChannelView, TeamChannelsView
* Refactor touch component and update removeRoom and deleteRoom methods
* Minor tweaks
* Minor tweaks for removing channels and addExistingChannelView
* Added missing events and fixed channels list
* Minor tweaks for refactored touch component
* Added SelectListView and logic for leaving team
* Added addTeamMember and removeTeamMember
* Minor tweak
* Added deleteTeam function
* Minor tweak
* Minor tweaks
* Remove unnecesary changes, update TeamChannelsView, AddExistingChannelView, AddChannelTeamView, createChannel, goRoom and Touchable
* Remove unnecesary prop
* Add screens to ModalStack, events, autoJoin, update createChannel, addRoomsToTeam and Touchable
* Minor tweak
* Update loadMessagesForRoom.js
* Updated schema, tag component, touch, AddChannelTeamView, AddExistingChannelView, ActionSheet Item
* Fix unnecessary changes
* Add i18n, update createChannel, AddExistingChannelTeamView, AddChannelTeamView, RightButton and TeamChannelsView
* Updated styles, added tag story
* Minor tweak
* Minor tweaks
* Auto-join tweak
* Minor tweaks
* Minor tweak on search
* Minor refactor to ListItem, add SelectListView to ModalStack, update handleLeaveTeam
* Minor tweaks
* Update SelectListView
* Update handleLeaveTeam, remove unnecessary method, add story
* Minor tweak
* Minor visual tweaks
* Update SelectListView.js
* Update index.js
* Update RoomMembersView
* Updated SelectListView, RoomActionsView, leaveTeam method and string translations
* Update SelectListVIew
* Minor tweak
* Update SelectListView
* Minor tweak
* Minor tweaks
* Fix for List.Item subtitles being pushed down by title's flex
* Minor tweaks
* Update RoomActionsView
* Use showConfirmationAlert and showErrorAlert
* Remove addTeamMember, update removeTeamMember
* Update Alert
* Minor tweaks
* Minor tweaks
* Minor tweak
* Update showActionSheet on RoomMembersView
* Remove team main from query and move code around
* Fetch roles
* Update RoomMembersView and SelectListView
* Update rocketchat.js
* Updated leaveTeam and handleRemoveFromTeam
* Fix validation
* Remove unnecessary function
* Update RoomActionsView
* Update en.json
* updated deleteTeam function and permissions
* Added showConfirmationAlert
* Added string translations for teams
* Fix permission
* Added moveChannelToTeam and convertToTeam functionality
* Fix SelectListView RadioButton
* Fix moveToTeam
* Added searchBar to SelectListVIew
* Update RoomView , SelectListVIew and string translation for error
* E2E for Teams
* Fix tests and cleanup
* Minor refactor
* Wrong label
* Move/convert
* Fix convert
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-06-04 16:16:05 +00:00
|
|
|
registeringUser4: {
|
|
|
|
username: `newuserfour${ value }`,
|
|
|
|
password: `passwordfour${ value }`,
|
|
|
|
email: `mobile+registeringfour${ value }@rocket.chat`
|
|
|
|
},
|
2020-07-15 16:28:34 +00:00
|
|
|
random: value
|
|
|
|
}
|
|
|
|
module.exports = data;
|