Skip to content

Commit

Permalink
upgrade Deno to 2.0 (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
saturninoabril authored Oct 23, 2024
1 parent 47e7104 commit 65246da
Show file tree
Hide file tree
Showing 116 changed files with 215 additions and 794 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@ env:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Setup repo
uses: actions/checkout@v3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@4606d5cc6fb3f673efd4f594850e3f4b3e9d29cd # v2.0.0
with:
deno-version: v1.x
deno-version: v2.x

- name: Verify formatting
run: deno task check

- name: Validate changes
run: deno task validate

- name: Validate All
- name: Validate all
run: deno task validate-all

- name: Check spellings
uses: codespell-project/actions-codespell@master
uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 # v2.1
with:
ignore_words_file: .codespellignore
path: data
Expand Down
10 changes: 1 addition & 9 deletions data/test-cases/channels/MM-T5129.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ key: MM-T5129
created_on: "2022-09-06T16:48:44Z"
last_updated: "2022-12-01T21:05:10Z"
case_hashed: bd33b7ef99a872d6f294696c1d12441c8bab3ff17f100ed1641340168d642c2a9f7b6e30864c75899497362e6572a5d7
steps_hashed: 6cfa8947fa2d85c9b61a29da75651e2ab100457e72f22e6d43fc271d6b01a61742694827d6baea4ad2e83595df23437d
steps_hashed: 27a76821dca25c97f99a26a7b9105aa996f071a3e73fc524bfa0b1f1516ae1ecfb5798395df6950ccd2dcf93ec251339
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand All @@ -43,21 +43,13 @@ steps_hashed: 6cfa8947fa2d85c9b61a29da75651e2ab100457e72f22e6d43fc271d6b01a61742
**Step 1**

1. Enable group Unreads separately 

2. Have one unread channel, e.g. Channel A

3. Join and Mute channel B (Pre-requisite:  muted channel must have a mention, and there must be < 5 unread channels on the team)

4. Receive a mention in the muted channel B 

1. Verify muted channel is listed on the bottom of the Unreads section on the LHS

5. Open Find Channel modal (channel switcher)

1. Verify unread muted channel in not listed in the unread section 

6. Search for the muted channel on the find channel modal

1. Verify Channel B can still be found

**Expected**
Expand Down
7 changes: 1 addition & 6 deletions data/test-cases/channels/MM-T5188.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ key: MM-T5188
created_on: "2022-10-03T23:42:17Z"
last_updated: "2022-12-01T21:05:11Z"
case_hashed: 1765acdf67ad18a5121b9c66f64f659c6afed281747cbaefbe292a26b2302feb117c7167cfb02ec113c775468b891639
steps_hashed: cb4e64b1ec4936f476dd8e59a8c6902a8f612597a5e404d2a9593c07df318bb2df15d0fad27c9cf67af08ec9e99e7ffb
steps_hashed: 750d55f3d85962ba1899cad29b8d10c3c1b65150b1e28e3c758d1d267a5071bda03c10fe8927748ede1339410015bc84
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand All @@ -44,13 +44,8 @@ steps_hashed: cb4e64b1ec4936f476dd8e59a8c6902a8f612597a5e404d2a9593c07df318bb2df
_Muted channel mentions should not be counted on the Team icon badge_

1. Join and Mute channel C while viewing team A

2. Switch to a different team, e.g team B

3. Receive a mention in the muted channel C while viewing team B 

1. Verify muted channel mention is not counted on Team A icon on the team sidebar

4. Open team A

1. Verify unread muted channel is listed on the bottom of the unread section on the channel sidebar, shows mention badge, and reduced opacity
7 changes: 6 additions & 1 deletion data/test-cases/channels/ada-accessibility/MM-T3869.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ key: MM-T3869
created_on: "2021-03-04T19:27:06Z"
last_updated: ""
case_hashed: 52bc19e29af1b0a5762b648b242b29db36b1592d6f4e6c3aa1702bfed25e60df5f65788a4b9dade0aa59ec79e88f4b22
steps_hashed: 7138d0a58eef529d4e1a463c92b1ca1d93e2490f89f18da561fb185b5d51e21b3eb2be04eecf20486d22090f897725c2
steps_hashed: dbd829e97d707aa6a2b39cdd0243a9998e8487b718570d65072d4fd6685ddcad5b9c994a288ed32bb52806eb47f80b06
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand All @@ -46,10 +46,15 @@ steps_hashed: 7138d0a58eef529d4e1a463c92b1ca1d93e2490f89f18da561fb185b5d51e21b3e
_Channel Sidebar TAB navigation - move/re-arrange channels within the category_

1. Open Mattermost (with the new sidebar active).

2. Using F6 (or Ctrl/Cmd + F6) navigate to the sidebar

3. Tab until one of the channels is highlighted with a gray border. Make sure you're in a category with multiple channels (category can be set to manual sorting, if not channel will snap back to it's original sorted position, tabbing, selecting and dropping should still work)

4. Press SPACE and then use the arrow keys to move the channel down.

5. Press SPACE again to release the channel. The channel should be in its new position.

6. Continue to tab through channels on the LHS

**Expected**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ key: MM-T4071
created_on: "2021-05-19T00:24:00Z"
last_updated: "2022-09-09T20:29:09Z"
case_hashed: 22ebc60be4835d09c6109a43e969c99da7177746b7e2b8437b950696a7e0c1be49ce7ce8fe0c28d99d1b9027352c836c
steps_hashed: c45b5f9397426e0ed6bcdd2064118b9d4172e5ad81b5de951b10fe07274c3e9ba478b4884f9b1cba9f14823fabe0a8d0
steps_hashed: e5b7fb3e9eb1e1ae743c1727d9974f31a6d19257bc40416739577c4cded3404de57420e06d5765e13fd928c34460a1b1
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand Down Expand Up @@ -64,7 +64,6 @@ The user you're autocompleting should be returned

1. Unique but partial username returns single user\
–––––––––––––––––––––––––

1. In a message input box, type "@" followed by unique but partial text of a username you want to mention

**Expected**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ key: MM-T4072
created_on: "2021-05-19T00:28:58Z"
last_updated: "2022-09-09T20:29:07Z"
case_hashed: 2da96e339191807dadd88dcbd90bb7bf2c81304a0a894a4b0dfc622d8bff86c5b6daa4355592e1d06671237a8b8c5c89
steps_hashed: 2e4ee80a6c464f43b365a4886f4f6952e4e61edb6ef582a34763c54980b723649b666daac1fe51f03eb97020bfd29eb6
steps_hashed: 7d96c705441a012f146e3170df14eeacf75fb710177a13b724cd7d456b055e2cf27bd83a5ed8cf4e9a0e50f971f0dde5
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand Down Expand Up @@ -64,7 +64,6 @@ The user you're autocompleting should be returned

1. Unique but partial first name returns single user\
–––––––––––––––––––––––––

1. In a message input box, type "@" followed by unique but partial text of a first name you want to mention

**Expected**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ key: MM-T4073
created_on: "2021-05-19T00:31:36Z"
last_updated: "2022-09-09T20:29:07Z"
case_hashed: 2d8f591791254bce2f44ca82631be1658ac7919674874f0fcb999a822f456dcff82172d3d438edb691b6fb694968334b
steps_hashed: ca4ad8f1472037457c441767de85ff9845f32acc7f523b973208219778785318f7c64578a3f3d82819b018b92a94e4f7
steps_hashed: 6ef63b53d25982df5ab407e464f9c39f1720fd75c65e090094a8b454baf0e6184feae26da6ed275d355ae715ef670ab5
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand Down Expand Up @@ -64,7 +64,6 @@ The user you're autocompleting should be returned

1. Unique but partial last name returns single user\
–––––––––––––––––––––––––

1. In a message input box, type "@" followed by unique but partial text of a last name you want to mention

**Expected**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ key: MM-T4074
created_on: "2021-05-19T00:33:47Z"
last_updated: "2022-09-09T20:29:08Z"
case_hashed: 8b9a061d3bcc0c8ee7472f6d224233fbff89b0ed386cda636b2dd0af90a2c58410bb4d8cd3514533598d0d3e7a656f00
steps_hashed: a9299afb4b7ef976ace5ee6d6d8116f66a94dec5474cfa79dc4325e9af9693940595ac1615794bf3f03494685c923ef7
steps_hashed: bbe0021fe05f26378105acc896147f514e64b0bb2b491fcb1b71aae4a7cd5afbca3500edafb955208ba43ed88678c62d
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand Down Expand Up @@ -64,7 +64,6 @@ The user you're autocompleting should be returned

1. Unique but partial nickname returns single user\
–––––––––––––––––––––––––

1. In a message input box, type "@" followed by unique but partial text of a nickname you want to mention

**Expected**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ key: MM-T2506
created_on: "2020-05-26T20:27:36Z"
last_updated: "2022-09-09T20:29:04Z"
case_hashed: 394fc866761790094b6ee34d0c45cd236c2a16a855e38fb63d0f3bb2b964063b388d3462c60f1846b8f3727cb246d769
steps_hashed: 85ca5edc644793e8c85c456069389c6ed6228e1b88501ce95c32323911eddb54568fff0006375fef5df4b3982f092eba
steps_hashed: e6ad95a0f358405d20f89d0d2f8ba9e577d89b1ef4d0c762773fb3f9fdcf267a16359d8823c3334ad8c17a69c0df4d4b
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand Down Expand Up @@ -65,7 +65,6 @@ The user you're autocompleting should be returned

1. Unique but partial username returns single user\
–––––––––––––––––––––––––

1. In a message input box, type "@" followed by unique but partial text of a username you want to mention

**Expected**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ key: MM-T3860
created_on: "2021-02-24T17:35:09Z"
last_updated: "2022-09-09T20:29:00Z"
case_hashed: 55c75a9173769a3f110d1cd8248eb00e775f58f6f59e6a01c95562d053cde31a99f667164fd8f15d4baa427246479ca6
steps_hashed: 74b8ff06676191990ec935b5ffa445e9fb162eed679b8e4573892f6926ace6eeb84d7161bb668f127657d7d43bc65f61
steps_hashed: 29df509af89fd1f760367334b02d6fc333fd739fec604d97f391cd19f66b25e78d221111aad26d288645314f3970ba04
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand Down Expand Up @@ -64,7 +64,6 @@ The user you're autocompleting should be returned

1. Unique but partial first name returns single user\
–––––––––––––––––––––––––

1. In a message input box, type "@" followed by unique but partial text of a first name you want to mention

**Expected**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ key: MM-T3861
created_on: "2021-02-24T17:42:35Z"
last_updated: "2022-09-09T20:28:59Z"
case_hashed: 38679195d0b0fe77f7ed14a2298031c0e9a48b920b5935a2350414403641f1c45fb2cedd2b01c1a8188eb19f59e6b25b
steps_hashed: a64bb1208f98cbe943c60dda3187610059c4515a7e0d1c3d844df9155165821df7bdcd00c2a912ec62abd8ebf045ec9f
steps_hashed: d8e302bbad0ebbc9f01ead2b3b26c1838ee4fb98ce8f7aafc69a165884bf7773224a48fc53163b130e49013d09bd62e9
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand Down Expand Up @@ -64,7 +64,6 @@ The user you're autocompleting should be returned

1. Unique but partial last name returns single user\
–––––––––––––––––––––––––

1. In a message input box, type "@" followed by unique but partial text of a last name you want to mention

**Expected**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ key: MM-T3862
created_on: "2021-02-24T17:45:38Z"
last_updated: "2022-09-09T20:29:02Z"
case_hashed: c08492a97f8d3343dd3d1f96efefebeb12d59ac0f9a46b14290314e85700badaa3aecea0f4959a8aea2e12d45c173cbf
steps_hashed: 4d6f92252130119c28fe255f04a6b5a97a67deda6a918290abee07b868fa5859dedcbcbb47739b790c504f899d961865
steps_hashed: 227954356198ba8bb1299e021c1c52c454146049ef64ade1cea68457dc3e8fd7ab39465c5e931e27aa47c7e6b470e093
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand Down Expand Up @@ -64,7 +64,6 @@ The user you're autocompleting should be returned

1. Unique but partial nickname returns single user\
–––––––––––––––––––––––––

1. In a message input box, type "@" followed by unique but partial text of a nickname you want to mention

**Expected**
Expand Down
6 changes: 5 additions & 1 deletion data/test-cases/channels/channel-settings/MM-T3302.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ key: MM-T3302
created_on: "2020-08-11T10:28:42Z"
last_updated: ""
case_hashed: f0ae1e302d3c3433c9bf7aede6b5093f2d098fa582cf2bb164af9e02dcf4d011c5a0dc448064331f9ddc1c75d479f011
steps_hashed: 0db618d5dbf51ac2a08b8670203812d18b76b26369a70a594dcc8235b26e1abafdab17ffd40c008f200ff16ffa9150f7
steps_hashed: a71ece7f2f99c09e3183517e863450d9b9339964f73d18e9fed015eeb901696104b91502d9f7b33b961a6cebf1f7953a
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand All @@ -48,9 +48,13 @@ steps_hashed: 0db618d5dbf51ac2a08b8670203812d18b76b26369a70a594dcc8235b26e1abafd
**Step 1**

1. Log in to the mobile app as a member and leave it open

2. Have another user add you to a new team from the web app

3. Swipe left 2x on the mobile app to open Team sidebar

4. Tap on the new team

5. Open Channel sidebar on the new team

**Expected**
Expand Down
15 changes: 1 addition & 14 deletions data/test-cases/channels/channel-settings/MM-T4270.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ key: MM-T4270
created_on: "2021-10-08T13:21:57Z"
last_updated: ""
case_hashed: 1fffbe43919f036cc8140b08358cf55d314a2de4abb4d703b01861a2be68b64e9dc19be7342f36f66ffd716f8cf1bde9
steps_hashed: 9e41cfcd03c7cbe3e05dfd470a53a4de961d208f703c692f8464ea0d0ebfdb9cc6560518ababa428cae463bc4196f99a
steps_hashed: 6cc412edb4e74dad693c901587fde77b2fb601ec047486ac7e86db50b74645b2857ce17447386e89c3ffeb11a681b8c6
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand All @@ -48,31 +48,18 @@ steps_hashed: 9e41cfcd03c7cbe3e05dfd470a53a4de961d208f703c692f8464ea0d0ebfdb9cc6
\_Use "Move to" option on channel header menu to move channels into categories \_

1. Open the channel or DM you'd like to move.

2. Click the channel/DM’s menu in the conversation header. 

1. Verify menu opens and "Move to" option is available

3. Select "Move to..."

4. Select a custom category from the list 

1. Verify channel/DM has been moved to selected category and can be found on the LHS

5. Remain on the same channel and click on channel name to open the channel header menu

1. Verify that the category this channel is already in has a check mark next to it

6. Select\*\* New category\*\*

1. Verify Create New Category modal opens

7. Add Category name and click Create

1. Verify new category is created and added to the top of the left sidebar; channel can be found in the new category

8. Open channel header menu again

1. Verify Categories are in the same order in the menu as they appear in the sidebar.

**Expected**
Expand Down
8 changes: 1 addition & 7 deletions data/test-cases/channels/channel-settings/MM-T887.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ key: MM-T887
created_on: "2020-01-18T01:00:17Z"
last_updated: "2022-09-09T17:58:48Z"
case_hashed: c92ee2137a2b173cbb9b78b8f6a44f94179e48dbbe0021b8180f79b8094c9da3356a7f0fd3d4701cc36668690caa1b3d
steps_hashed: ebeda53d1eeb55b3a9e19d2f09e0db12509fc472e863e5030cfd438a6dae918dee3b9f08e54a5f29e374140cf8dee746
steps_hashed: 44c5f163313c4dbf96770d4d2e8cb0413afb4eebed9cc8adb344cf9e64cbcd8e509d141639c8d6cc86f565332e527a88
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand All @@ -49,17 +49,11 @@ steps_hashed: ebeda53d1eeb55b3a9e19d2f09e0db12509fc472e863e5030cfd438a6dae918dee
**Step 1**

1. Go to a channel that is NOT muted

2. In the center panel, to the right of a channel name, click on the dropdown arrow

3. Click on "Mute Channel"

1. Verify channels is muted

4. Stay/Go to a MUTED channel

5. Click on the dropdown arrow to the right of the channel name or the 'Unmute Channel' icon (Bell with a slash)

6. Click on "Unmute Channel"

**Expected**
Expand Down
5 changes: 1 addition & 4 deletions data/test-cases/channels/channels/MM-T3989.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ key: MM-T3989
created_on: "2021-04-12T21:03:40Z"
last_updated: ""
case_hashed: 8d62bb8b201674b8cff496d2c12b08e451f7bfd525922e7fc11d648efdeea6985270456ad85303033a39023fb51a8126
steps_hashed: 205fdb147fc61016445e7981de9c379d197ab62e7b44d4b26adebafd419fee57c3cb61089820408f781d6904ac3ff6cd
steps_hashed: a34510ef8b5ff05b45f9662d2ac1a7b188f9c93cd740df19a0b60457ef9810b8d5af5a793a65822b65cbc2aa3bcbe57e
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand All @@ -47,11 +47,8 @@ steps_hashed: 205fdb147fc61016445e7981de9c379d197ab62e7b44d4b26adebafd419fee57c3
Slow Typing investigation

1. Setup an environment with a steady state of background activity triggering websocket updates (i.e. other users posting on a semi-regular cadence to channels in which the user is a member)

2. Open 20+ DMs or GMs (the more, the easier this is to reproduce)

3. Test typing while this background activity is occurring

1. Verify there is no delay between user typing and text rendering on the screen

**Expected**
Expand Down
6 changes: 1 addition & 5 deletions data/test-cases/channels/channels/MM-T4056.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ key: MM-T4056
created_on: "2021-05-11T20:10:12Z"
last_updated: ""
case_hashed: aa6952ff44af3827c259aa52c1a5350b977f55d2b2a88badf3eb7b402d224600ea4ab04ea9e4ff4d762e1c790cdd1855
steps_hashed: 0619921bfb121ff285d010cd755ab4fc9bf478882b901ce1918715a9235d96f2193b3e284b3d2dca177786f67abcb253
steps_hashed: 30ca644d4bb5941b79f3efaa4a5a12bba486864ea803252ca9a4bc56788b8fab409df39c18f0222f2d0122db83316998
---

<!-- (Auto-generated) Based on frontmatter's "key" and "name" -->
Expand All @@ -46,13 +46,9 @@ steps_hashed: 0619921bfb121ff285d010cd755ab4fc9bf478882b901ce1918715a9235d96f219
_Show URL slug information in Find Channels modal_

1. Open Find Channels modal using cmd+K

2. Search for some channels

1. Verify URL slug information is displayed after channel name

3. Search for a GM

1. Verify URL slug information is **_not displayed_** after GM participants user names

**Test Data**
Expand Down
Loading

0 comments on commit 65246da

Please sign in to comment.