[DO NOT MERGE]Feature/#145 ask question from room#232
[DO NOT MERGE]Feature/#145 ask question from room#232
Conversation
… into feature/0.61
…to feature/#142-ask-question-from-room
|
@ThomasRoehl @mrsimpson just realized that object from redlink:rocket-chat repo has messed my branch while pulling out test scripts updates. |
|
It is failing when looking for the last message in the request because there is none |
c108dc2 to
54f0f14
Compare
54f0f14 to
f54ad56
Compare
|
@ThomasRoehl> Test scripts issues were fixed. Please do the needful. |
ThomasRoehl
left a comment
There was a problem hiding this comment.
When the test is crashing after creating the topic and before writing the message, no further test run will be successful anymore.
|
|
||
| return findAndModifyResult.value.value; | ||
| }; | ||
| class CreateRequestBase { |
There was a problem hiding this comment.
Is this rearrangement necessary? Did you check if your changes are adapted to all files which use this method?
| import { checkIfUserIsValid, checkIfUserIsAdmin } from '../../data/checks'; | ||
| import globalObject from '../../pageobjects/global'; | ||
| const topicName = 'unit-testing'; | ||
| const message = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'; |
There was a problem hiding this comment.
The text is very long, for stability reasons you should take a shorter message
| describe('Help:', () => { | ||
| before(() => { | ||
| sideNav.spotlightSearch.waitForVisible(10000); | ||
| mainContent.openMessageActionMenu(); |
There was a problem hiding this comment.
This is crashing if the topic exists but no message is there
|
|
||
| get knowledgebasePostBtn() { | ||
| return browser.element('.external-search-content .smarti-widget .search-results .result-actions'); | ||
| get knowledgebasePickAnswer() { |
There was a problem hiding this comment.
make sure you don't mess up other tests which use this functions
There was a problem hiding this comment.
Basically, this has come from the redlink repo. So I just left it as is.
| } | ||
|
|
||
| createHelpRequest(topicName, message) { | ||
| createHelpRequest(topicName, message, requestTitle) { |
There was a problem hiding this comment.
make sure you don't mess up other tests which use this functions.
Is it possible to call this function with only 2 parameters or do you have to add '' if no requestTitle is needed?
There was a problem hiding this comment.
we would need to the function with 'requestTitle' because you would need to create a sub-request based on the requestTitle for tests scenario and when you do not pass the requestTitle it will be difficult figure out the request as it will get a random number.
…stify/Rocket.Chat into feature/#142-ask-question-from-room
|
@vickyokrm I fixed the tests but found another bug: |
|
@vickyokrm and me reviewed the current state. Results:
|
|
In a final version the request creation dialog should not appear to the user (asking a question). The name and users of the channel the user starts the question from shoul be taken as topic / experts. The display name of the newly created question can be set afterwards. |
|
@ruKurz @janrudolph your ideas about the target picture are opposite. I believe we should align it before @vickyokrm starts coding it |
closes #145 [Enable users to ask questions from an existing chat room]
Feature Overview:
To allow users to ask help about a conversation while they are in a chat room.
Motivation:
This feature will enable user to ask more questions in an isolated way which implies the new help request is created in the current conversation context.
Benefits of the solution:
Enable users to pro-actively communicate with out being afraid of leaving the chat room in which the user is conversing.
Using Assistify as a platform to ask and communicate more intensive.
What has changed/introduced:
A new Message Action so called 'Help' has been introduced shall be used to create help request for a particular message.
The new help request creation feature will prompt user to provide a request title a optional field.
Upon confirmation, a new help request room will be created propagating the experts users and the question/query to the new room.
What is missing:
Translation of the texts in Deutsch
Code review from reviewer
Feedback