Commit Graph

56 Commits

Author SHA1 Message Date
Jesse Hallam
803d0c6e60 MM-52487: fix more playbooks tests (#23475)
* fix playbooks/channels/rhs/template_spec.js

* fix playbooks/channels/update_request_post_spec.js

* fix playbooks/runs/rdp_rhs_runinfo_spec.js

* fix playbooks/runs/rdp_rhs_statusupdates_spec.js

* remove enableexperimentalfeatures flag in e2e tests

* rdp_main_header_spec: simplify channel loaded assertion

* playbooks rhs participants: fix infinite fetch loop

* improved onboarding skipping

* simplify participants fetching
2023-06-07 16:28:47 -03:00
Caleb Roseland
36027ac1c4 MM-52995: Fix opening DM/GM thread from thread footer (#23579) 2023-06-07 12:54:29 -05:00
Jesse Hallam
305fac6507 Service environment (#23443)
* fix fileutils.TestFindFile on MacOS

* introduce model.ExternalServiceEnvironment

* pick license public key from external service env

* pick Stripe public key from external service env

* pick Rudder key from external service env

* configure Sentry DSN from external service env

* always log external_service_environment, Unsetenv

* clear faked BuildEnv, improve logging

* strip out unset GOTAGS

* fix Sentry tests

* simplify to just ServiceEnvironment

* relocate ServiceEnvironment in client config

* initialize CWS URLs based on service environment

* unset rudder key for boards dev

* harden service environment to avoid accidental production

* fix TestSentry again

* fix DEFAULT -> ENTERPRISE

* s/dev/test when naming playbooks rudder key

* simplify boards rudder key switch

* use uniform rudderKey variable names

* retain compatibility with existing pipeline

* reduce to just production/test

* unit test with valid test license

* simplify Playbooks telemetry initialization

* restore dev service environment

* emit ServiceEnvironment when running e2e tests
2023-06-07 10:15:33 -03:00
Julien Tant
0468e772a9 [MM-52926] Deprecating work templates (#23466)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-06-05 18:42:03 -07:00
Scott Bishel
22275fa0f5 MM-52818 - create config setting to enable/disable playbooks product (#23508)
* create config setting to enable/disable playbooks product

* fix to config name

* fix typo

* revert changes to package-lock.json

* update name of test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-06-05 15:18:20 -06:00
KyeongSoo Kim
fbd6b5efe1 [MM-30432]: Allow users to specify different desktop notification sounds per channel (#21671) 2023-06-05 17:28:05 +05:30
Harshil Sharma
412109b02e [MM-45802] Clear CRT notification on deleted reply (#23568)
* reduce the counter on post deletion

* add test

* change translations

* fix collecting mentions for DMs

* add translation texts

* extract logic for getting mentions

* send WS event

* add e2e tests

* tidy mod

* WIP

* Deleting notification async

* Fixed a unit test

* Added more tests

* Updated i18n

* CI

* mattermost-server -> mattermost

* mattermost-server -> mattermost

---------

Co-authored-by: Konstantinos Pittas <konstantinos.pittas@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-06-05 16:02:40 +05:30
mvitale1989
74beab5ad5 Revert "Prepare: run E2E smoketests with GitHub actions (#23301)" (#23553)
This reverts commit 68be3a6bcd.
2023-05-31 16:32:51 +02:00
Harrison Healey
676a83b351 Make save_post_spec less affected by other E2E tests (#23541) 2023-05-31 19:08:43 +08:00
mvitale1989
68be3a6bcd Prepare: run E2E smoketests with GitHub actions (#23301)
- Port E2E testing scripts from cypress-ui-automation
- Move server to docker-compose, move E2E images to ecrpublic
* Integrate General channel renaming, fixes
- Add local automation-dashboard
- Add readme
- Add E2E smoketests
- Bump postgres to 12

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com>
Co-authored-by: Antonis Stamatiou <stamatiou.antonis@gmail.com>
2023-05-30 17:34:15 +02:00
Harshil Sharma
0cb3a406da Fixed image attachment e2e cypress test (#23445) 2023-05-22 10:50:05 +05:30
Vishal
9399ce8637 [MM-47751][MM-48102] MPA: Send Persistent Notifications (#21619)
* MM-46410: adds urgency on mention counts

We have introduced priority for posts in
https://github.com/mattermost/mattermost-webapp/pull/10951.
We do need to color the mention badges in the webapp with a prominent
color when a mention is posted in an urgent message.
A thread has urgent mentions if the root post is marked as urgent, and
the replies contain mentions to the user viewing the thread.

This PR adds two columns, urgentmentioncount, and isurgent, in
channelmembers, and threads tables respectively.
Furthermore when asking for team/thread mention counts, we also return
urgent mention counts for the user.

* Adds PostAcknowledgements table and apis

* job init and fetch mentions

* add-migrations

* delete-expired

* send-notifications

* Fetches post priority in batches

* stop-notifications

* stop-notification-on-reply

* MM-47750: Adds PostAcknowledgements table and apis

- Adds post acknowledgement api/app/store methods to be able to save and
delete post acknowledgements by users.
- Adds wesbsocket events for acknowledgement created/deleted
- Returns post acknowledgements in the post's metadata

* add-license-check

* add-pagination

* delete on channel and team

* validate guests

* add configs

* move create priority post check from app to api

* Add desktop notifications

* check status

* use config in job

* add IsUrgent check

* Add last-sent-at

* validate max recipients

* Update lastSentAt

* Validate min. recipient

* send email notification only once

* remove email notifications

* use latest time from config to run job

* Add notifications counter

* publish events to mentioned users only

* pickup license updates in scheduler

* don't allow post owner to stop notifications

* follow normal notifications behaviour

* Validates persistent notifications interval

* move logic of handling valid and expired posts into sql

* Adds persistent notifications in the webapp

---------

Co-authored-by: koox00 <3829551+koox00@users.noreply.github.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-18 23:44:12 +05:30
Caleb Roseland
f815c20fca MM-51798: Fix Boards+Playbooks channel header RHS button styling (#23276)
* fix playbook icon

* fix boards icon

* lint

* fix test
2023-05-09 10:39:34 +02:00
Saturnino Abril
aa39e5758e chore: upgrade cypress to 12.11.0 and other dependencies (#23294)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-09 06:11:40 +08:00
Jesse Hallam
212ac800a6 MM-52453: fix playbooks/edit_spec (#23208)
* Refactor and fix edit_spec

Refactor edit_spec into multiple discrete specs, fix various issues running the specs, and un-skip several tests that now pass.

Fixes: https://mattermost.atlassian.net/browse/MM-52453

* remove skipped tests
2023-05-05 14:01:48 -03:00
Rohitesh Gupta
4db0512580 MM-52428: Fix few E2E integration tests (#23311)
* Fixed E2E Integration tests

* Fixed step to close emoji picker
2023-05-05 07:45:54 -04:00
Saturnino Abril
8fdbbf3d5b E2E/Playwright: MM-T5424 Find channel limit to 50 results (#23248)
* fix aria-label of Find Channels modal

* add components

* add test for MM-T5424

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-05-05 06:20:23 +08:00
Ashish Dhama
e000d52eb1 fix MM-T2927_1 (#23258) 2023-05-04 14:13:53 +05:30
Harrison Healey
d001994ef9 MM-52282 Remove ExperimentalSettings.PatchPluginsReactDOM (#23172)
* MM-52282 Remove ExperimentalSettings.PatchPluginsReactDOM

* Fix missing file from last commit

* Fix test usage of plugin.NewEnvironment
2023-05-03 15:04:10 -04:00
Harrison Healey
3ba75afa08 MM-52173 Add setting to delay channel autocomplete (#22952)
* Add unit tests for ChannelMentionProvider.handleCompleteWord

* Add a minimum length before the ChannelMentionProvider triggers

* MM-52173 Move delayed autcomplete behind a setting

* Fix e2e test type check

* Update Textbox tests

* Add new setting to server telemetry
2023-05-02 10:11:15 -04:00
Saturnino Abril
0147a1e781 e2e/fix: enable skipped tests in playbooks (#23102) 2023-04-27 14:25:16 +08:00
Ben Cooke
3995f4a724 [MM-52339] Top playbooks missing from insights (#23076)
Automatic Merge
2023-04-26 22:34:29 +03:00
Saturnino Abril
ac35bdff68 fix: dot menu accessibility (#23133) 2023-04-26 21:25:02 +08:00
yasserfaraazkhan
2c5eb63181 chore: lint 2023-04-25 17:11:25 +05:30
Mattermost Build
f147b37dca Merge branch 'master' into MM-52097 2023-04-25 14:34:39 +03:00
Saturnino Abril
b7a5f22bcf fix/e2e: remove use_slash_commands in roles (#23098) 2023-04-25 15:34:41 +08:00
yasserfaraazkhan
3055a5e935 Revert "MM-49603 : Remove fetching of deleted channels on page load (#22981)"
This reverts commit 1bbfdefad7.
2023-04-20 13:56:37 +05:30
yasserfaraazkhan
f0a54f6804 chore: review comment 2023-04-20 13:46:01 +05:30
Pablo Andrés Vélez Vidal
b073ab2e3a MM 50960 - Add company name and invite members pages to preparing-workspace for self-hosted (#22838)
* MM-50960 - store system organization name

* restore the preparing workspace plugins and invite screens

* add back the page lines for the design

* add lines back and organize styles

* set back documentation to monorepo style and disable board as a product

* fix organization link and style skip button

* create team on organization name screen continue button click

* make sure there are not already created team and if so just update team name

* update the team display name if team has already been created

* cover error scenarios during team creation

* add pr feedback and add a couple of unit tests

* fix translation server error; make sure only update display name if it has changed in the form

* temp advances

* rewrite unit tests using react-testing library; fix unit tests

* fix translations

* make sure the launching workspace finish in cloud installations

* remove redundant validation

* fix unit tests

* remove unintended config value left after merge conflict
2023-04-20 13:46:01 +05:30
Conor Macpherson
c4efd2647c Merge branch 'master' into MM-50966-in-product-expansion 2023-04-19 11:40:50 -04:00
Pablo Andrés Vélez Vidal
b5c48e75b3 MM 50960 - Add company name and invite members pages to preparing-workspace for self-hosted (#22838)
* MM-50960 - store system organization name

* restore the preparing workspace plugins and invite screens

* add back the page lines for the design

* add lines back and organize styles

* set back documentation to monorepo style and disable board as a product

* fix organization link and style skip button

* create team on organization name screen continue button click

* make sure there are not already created team and if so just update team name

* update the team display name if team has already been created

* cover error scenarios during team creation

* add pr feedback and add a couple of unit tests

* fix translation server error; make sure only update display name if it has changed in the form

* temp advances

* rewrite unit tests using react-testing library; fix unit tests

* fix translations

* make sure the launching workspace finish in cloud installations

* remove redundant validation

* fix unit tests

* remove unintended config value left after merge conflict
2023-04-19 15:31:47 +02:00
Mattermost Build
bdc7abadd1 Merge branch 'master' into MM-52097 2023-04-19 13:15:27 +03:00
M-ZubairAhmed
7b9d43e308 MM-50122 : Remove and test refetching of channels on browser focus change (#22973) 2023-04-19 11:48:27 +05:30
Saturnino Abril
6ca5824ea1 E2E/Playwright: Update dependencies, screenshots, config and type (#23000)
* update dependencies

* update default server config and client type

* close browser context once test is done

* fix test when switching a product

* update screenshots and readme

* add cross-env and make headless mode as default

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-19 12:04:25 +08:00
Aditya Jain
4ef3081f65 MM-T4276 : E2E for set up Board emoji (#22887)
* MM-T4276 Added cypress tests for board emoji

* Update e2e-tests/cypress/tests/integration/boards/create_board_spec.ts

---------

Co-authored-by: Aditya Jain <adityajain@Adityas-MacBook-Air-2.local>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com>
2023-04-19 11:02:32 +08:00
Conor Macpherson
3a76a324f6 Merge branch 'master' into MM-50966-in-product-expansion 2023-04-18 12:05:00 -04:00
yasserfaraazkhan
c207b4ce0f chore: fix channels test 2023-04-18 18:17:43 +05:30
yasserfaraazkhan
89026c1061 chore: revert channels changes 2023-04-18 17:52:00 +05:30
yasserfaraazkhan
c120e72931 chore: revert channels changes 2023-04-18 17:51:24 +05:30
yasserfaraazkhan
965bca421a Merge remote-tracking branch 'origin/master' into MM-52097 2023-04-18 17:50:03 +05:30
José Peso
831ea38f7e Playwright upgrade and small addition to ChannelsPage helper (#22978)
* partial commit

* upgrade playwright to 1.32.3 (ui + project dependencies support)

* revert empty line

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-18 10:46:49 +08:00
Conor Macpherson
f613c655e7 remove self hosted expansion flag in favor of grouping hosted expansion with hosted purhcase and it's flag. 2023-04-17 16:11:43 -04:00
GitStart
4bf31bd227 MM-50746 : Edits to messages persist after cancelling (#22676) 2023-04-14 14:27:22 +05:30
yasserfaraazkhan
b6f77e8bdc e2e: fix more channels tests 2023-04-11 18:57:06 +05:30
Saturnino Abril
5b5ee1160e expect boards product by default in e2e (#22911) 2023-04-11 18:59:10 +08:00
yasserfaraazkhan
2ef9c7a634 e2e: fix yearly subscription test 2023-04-11 14:56:10 +05:30
Jesse Hallam
d6cf013775 Fix playbooks e2e (#22816) 2023-04-06 15:56:22 -03:00
Konstantinos Pittas
9c4455d103 [MM-51302] Fix scroll to the bottom of editor after pasting long text (#22491)
Automatic Merge
2023-04-05 19:04:28 +03:00
Saturnino Abril
f6cae9ab42 fix: e2e tests (#22807)
* fix: e2e tests

* add more fix

* fixed_custom_categories

---------

Co-authored-by: Furqan Malik <furqan.malik@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-05 06:50:49 +08:00
Furqan Malik
f1f54508f4 Fixed Add Channel_test_cases (#22768)
* Fixed Add Channel_test_cases

* fixed more test cases

* fixed lint
2023-04-04 06:22:48 +08:00