summaryrefslogtreecommitdiffstats
path: root/tests/acceptance
AgeCommit message (Collapse)Author
2020-05-12Run cs:fixJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-07Update lobby acceptance testsIvan Sein
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2019-09-26Add acceptance tests for chats in a file shared by link with a passwordDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-09-26Add acceptance tests for chats in a file shared by linkDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-09-26Add acceptance tests for mentions in the public share pageDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-09-26Add acceptance tests for mentioning users in the Files appDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-09-26Add acceptance tests for registered users in the public share pageDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-09-26Add basic acceptance tests for the Talk sidebar in the public share pageDaniel Calviño Sánchez
The "I see that the current page is the shared link I wrote down" step is defined in the server but needs to be extended in Talk to also set (in the tests) the Talk sidebar as the ancestor of the chat view. In order to extend a step the whole Context that it belongs to must be extended. Note, however, that the step in the child Context should not include any "Given", "When" or "Then" annotation, as it would clash with the step defined in the parent Context (the "Override" annotation is simply informative, as it is ignored by Behat); as long as the method has the same signature the step from the child Context will be used instead if the step from the parent Context. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-09-26Add support for public shares to file roomsDaniel Calviño Sánchez
Until now file rooms were available only to users with direct access to the file. Now file rooms are available to any user or guest too if the link is publicly shared (with a link share, for example). Public shares are identified by a share token instead of a file id, so a new endpoint, which is a counterpart of FilesController but for share tokens, was added. The file room, however, is still associated to the file id like before. When checking if a participant can join a room if the current user is a user without direct access to the file or a guest it is not even possible to know if the file id belongs to a publicly shared file. Due to this when the room is got for a share token the share token is stored in the session and then used in following requests when checking whether the participant can join a room or not. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-09-13Unify lobby with mobile clientsDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-08-28Add acceptance tests for joining a room with a lobbyDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-08-28Merge pull request #1974 from nextcloud/feature/noid/guest-mentionsJoas Schilling
👤🏷️ Guest mentions
2019-08-28Merge pull request #2121 from ↵Joas Schilling
nextcloud/get-password-from-session-if-not-given-when-joining-room Get password from session if not given when joining room
2019-08-28Move password from its own menu to the room moderation menuDaniel Calviño Sánchez
The password input is no longer the only element of the menu so pressing "Esc" does not close the menu. There is no longer a password button in the CallInfoView, so now the acceptance tests need to open the room moderation menu to know if the conversation is password protected or not. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-08-28Fix participant items being focusableDaniel Calviño Sánchez
The participant items were link elements, so they were taken into account in keyboard navigation. However, although it is possible to interact with some of its children, it is not possible to interact with the participant item as a whole, so they should not be focusable. As the link in the participant items led nowhere they are now simple span elements instead of links. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-08-28Add acceptance tests for joining again a password protected roomDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-08-28Add acceptance tests for joining a password protected room as a userDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-08-28Add acceptance tests for mentions in Files app and password request pageDaniel Calviño Sánchez
Although in the main Talk UI there is only one "atwho" container in the Files app there are several of them; the only way to distinguish between them is based on their contents, so the locator for the mention autocomplete container was adjusted to take this into account. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-08-28Add acceptance tests for mentions of guests without nameDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-08-28Add acceptance tests for mentions of all users of a public roomDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-08-28Add acceptance test for guest mentionsDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-08-28Add acceptance test for mentions choosing from the mention autocompleteDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-08-28Check mention of current user in acceptance testsDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-07-19Add acceptance tests for joining a password protected public roomDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-07-19Add acceptance test for joining a public roomDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-20Disable always failing test (although it works locally)Joas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-14FIx acceptance testsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-03-01Add acceptance tests for last moderator leaving a roomDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-03-01Adjust the logic for delete/leave buttonsJoas Schilling
Delete - is only available to logged in moderators and owners Leave - is always shown, when Delete is not shown, or when there are other other users and it's not one-to-one Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-27Adjust acceptance tests to mandatory names in group conversationsDaniel Calviño Sánchez
Now there is no longer a "New group conversation" item shown in the conversation list dropdown; instead first the desired conversation name needs to be typed in the search input and then the group conversation with that name is selected in the dropdown. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-05Add acceptance tests for chat in the public share authentication pageDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-05Add basic acceptance tests for the public share authentication pageDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01Add acceptance tests for chatting in the chat tab of the Files appDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01Add acceptance tests for file rooms in Talk main UIDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01Add acceptance tests for opening the chat tab in the Files appDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01Fix locator when asserting that the chat view is shown in the main viewDaniel Calviño Sánchez
To check that the chat view is shown in the main view the ancestor locator of the chat view must be the main view; if the chat ancestor set in other steps is used it just checks that the chat view is shown somewhere, but it does not guarantee that it is shown in the main view. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01Add acceptance test for sharing a file with a room from the Files appDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01Add acceptance test for sharing a file in a group roomDaniel Calviño Sánchez
As the scenario should be played by three actors a new one, named "Jim" for consistency with the acceptance tests of the server, was introduced. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01Add acceptance test for sharing a file in a one-to-one roomDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-12-05Fix acceptance tests regression from #1275Joas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-20Adjust acceptance tests to the virtual list for the message listDaniel Calviño Sánchez
As the virtual list removes its child elements that are no longer visible the index of the messages in the acceptance test is no longer an absolute index for the whole list, but an index only for the currently visible messages. However, as all the messages sent in each test fit in the available space no message is hidden and the previous indexes are still valid. The only change needed is in the locator for chat messages; as they are declared as direct children of their parent now they must be set as descendants of the wrapper instead of as descendants of the message list itself. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-06Show user avatar in mentions in the list of messagesDaniel Calviño Sánchez
Mentions in the list of messages now show the user avatar instead of an "@" before the user name. The markup and CSS are based on those used in the Comments app, although with some small differences (like using the "mention-user" CSS class) to keep the same visual appearance as before for "mentions" in system messages (which are not highlighted when they refer to the current user, and do not show the user name in bold in any case). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-07-30Merge pull request #1085 from nextcloud/adjust-ui-to-layout-changes-in-serverJoas Schilling
Adjust UI to layout changes in server
2018-07-30Fix step to rename a conversation in acceptance testsDaniel Calviño Sánchez
The edit button of editable text labels is always hidden, except when the cursor is on the editable text label. Due to this the step to rename a conversation first clicked on the editable text label and then, given that it was now visible, on the edit button. Before clicking on an element the cursor is moved to the middle of that element, and due to the layout changes, it turns out that the edit button is now at the middle of the editable text label; when the cursor was moved the edit button was shown and it ended receiving the click instead of the editable text label. This caused the editable text label to enter in edit mode, so the edit button was hidden, and then it could not be clicked in the next action as expected. Now only the label element is clicked instead of the containing editable text label; as the label element is a sibling of the edit button shown next to it and both are children of the editable text label this causes the edit button to be shown in the first action and then clicked in the second action, just like before. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-07-29Filter system messages in acceptance testsDaniel Calviño Sánchez
The specification of acceptance tests for chats do not take into account the system messages, so now the selector for chat messages filters them out and leaves only messages sent by users. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-06-22Set "wd_host" using the simulated "selenium.server" variableDaniel Calviño Sánchez
The "wd_host" parameter of Selenium2 sessions specify the URL used by the Selenium driver to connect with the Selenium server. Thus, when the Selenium server is at a different host or port than the default one (for example, when run on Drone) the "wd_host" parameter must be set for each of the Selenium2 sessions defined in "behat.yml". Before, this was done by the "run-local.sh" script in the acceptance tests of the server by extending the parameters from the "behat.yml" file, but this prevented adding custom Selenium2 sessions in the acceptance tests of apps (as "run-local.sh" had to know about those sessions). To address that limitation now "run-local.sh" replaces the simulated %selenium.server% variable by the appropriate value in the "behat.yml" file used by the acceptance tests before Behat is run, and thus the "wd_host" parameter must be explicitly included in all Selenium2 sessions. Note that the file that is modified is the one inside the Docker container used to run the acceptance tests, so the original file is not touched. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-06-20Fix wording for 'Leave conversation'Jan-Christoph Borchardt
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-05-09Make acceptance test for two users chatting more robustDaniel Calviño Sánchez
The chat between two users was tested by a sequence of one user sending a message and immediately after that the other user sending another message. Most of the time the messages were processed in the server in the order in which they were sent, but sometimes it could happen that a previous message took longer than usual to get to the server and then the next message from the other user was processed before it; in those cases the test failed due to the messages not matching the expected order. Now each user waits for the last message of the other user to be received before sending the next message. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-05-09Update acceptance test.Ivan Sein
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
2018-05-09Add acceptance tests for leaving the current roomDaniel Calviño Sánchez
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>