Skip to content

Commit 11c4039

Browse files
committed
Restore all tests
1 parent 26376db commit 11c4039

6 files changed

+54
-70
lines changed

packages/matrix/tests/forgot-password.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ test.describe('Forgot password', () => {
108108
await assertLoggedIn(resetPasswordPage);
109109
});
110110

111-
test.skip('It shows an error when email does not belong to any account', async ({
111+
test('It shows an error when email does not belong to any account', async ({
112112
page,
113113
}) => {
114114
await gotoForgotPassword(page);
@@ -147,7 +147,7 @@ test.describe('Forgot password', () => {
147147
);
148148
});
149149

150-
test.skip('It shows an error when password does not meet the requirement', async ({
150+
test('It shows an error when password does not meet the requirement', async ({
151151
page,
152152
}) => {
153153
await gotoForgotPassword(page);
@@ -217,7 +217,7 @@ test.describe('Forgot password', () => {
217217
await resetPasswordPage.locator('[data-test-reset-password-btn]').click();
218218
});
219219

220-
test.skip('it can resend email validation message', async ({ page }) => {
220+
test('it can resend email validation message', async ({ page }) => {
221221
await gotoForgotPassword(page);
222222

223223
await expect(

packages/matrix/tests/login.spec.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test.describe('Login', () => {
3232
await synapseStop(synapse.synapseId);
3333
});
3434

35-
test.skip('it can login', async ({ page }) => {
35+
test('it can login', async ({ page }) => {
3636
await openRoot(page);
3737
await toggleOperatorMode(page);
3838

@@ -91,7 +91,7 @@ test.describe('Login', () => {
9191
await assertLoggedOut(page);
9292
});
9393

94-
test.skip('it can logout using the profile popover', async ({ page }) => {
94+
test('it can logout using the profile popover', async ({ page }) => {
9595
await login(page, 'user1', 'pass');
9696

9797
await expect(
@@ -107,7 +107,7 @@ test.describe('Login', () => {
107107
await expect(page.locator('[data-test-login-btn]')).toBeVisible();
108108
});
109109

110-
test.skip('it shows an error when invalid credentials are provided', async ({
110+
test('it shows an error when invalid credentials are provided', async ({
111111
page,
112112
}) => {
113113
await openRoot(page);
@@ -133,7 +133,7 @@ test.describe('Login', () => {
133133
await assertLoggedIn(page);
134134
});
135135

136-
test.skip('it reacts to enter keypresses', async ({ page }) => {
136+
test('it reacts to enter keypresses', async ({ page }) => {
137137
await openRoot(page);
138138
await toggleOperatorMode(page);
139139

@@ -145,7 +145,7 @@ test.describe('Login', () => {
145145
await assertLoggedIn(page);
146146
});
147147

148-
test.skip('it returns to login when auth is invalid', async ({ page }) => {
148+
test('it returns to login when auth is invalid', async ({ page }) => {
149149
await page.addInitScript({
150150
content: `
151151
window.localStorage.setItem(

packages/matrix/tests/messages.spec.ts

+22-30
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ test.describe('Room messages', () => {
7070
await assertMessages(page, [{ from: 'user1', message: 'Message 1' }]);
7171
});
7272

73-
test.skip(`it can load all events back to beginning of timeline for timelines that truncated`, async ({
73+
test(`it can load all events back to beginning of timeline for timelines that truncated`, async ({
7474
page,
7575
}) => {
7676
// generally the matrix server paginates after 10 messages
@@ -92,7 +92,7 @@ test.describe('Room messages', () => {
9292
);
9393
});
9494

95-
test.skip(`it can send a markdown message`, async ({ page }) => {
95+
test(`it can send a markdown message`, async ({ page }) => {
9696
await login(page, 'user1', 'pass');
9797
let room1 = await getRoomId(page);
9898
await sendMessage(page, room1, 'message with _style_');
@@ -107,9 +107,7 @@ test.describe('Room messages', () => {
107107
).toContainText('style');
108108
});
109109

110-
test.skip(`it can create a room specific pending message`, async ({
111-
page,
112-
}) => {
110+
test(`it can create a room specific pending message`, async ({ page }) => {
113111
await login(page, 'user1', 'pass');
114112
let room1 = await getRoomId(page);
115113
await sendMessage(page, room1, 'Hello');
@@ -143,7 +141,7 @@ test.describe('Room messages', () => {
143141
).toHaveValue('room 2 message');
144142
});
145143

146-
test.skip('can add a card to a markdown message', async ({ page }) => {
144+
test('can add a card to a markdown message', async ({ page }) => {
147145
const testCard = `${testHost}/hassan`;
148146
await login(page, 'user1', 'pass');
149147
await page.locator(`[data-test-room-settled]`).waitFor();
@@ -176,7 +174,7 @@ test.describe('Room messages', () => {
176174
).toContainText('my');
177175
});
178176

179-
test.skip('can add a card that is over 65K to a message (i.e. split card into multiple matrix events)', async ({
177+
test('can add a card that is over 65K to a message (i.e. split card into multiple matrix events)', async ({
180178
page,
181179
}) => {
182180
const testCard = `${testHost}/big-card`; // this is a 153KB card
@@ -219,7 +217,7 @@ test.describe('Room messages', () => {
219217
]);
220218
});
221219

222-
test.skip('it can strip out base64 image fields from cards sent in messages', async ({
220+
test('it can strip out base64 image fields from cards sent in messages', async ({
223221
page,
224222
}) => {
225223
const testCard = `${testHost}/mango-puppy`; // this is a 153KB card
@@ -253,7 +251,7 @@ test.describe('Room messages', () => {
253251
expect(serializeCard.data.attributes.picture).toBeUndefined();
254252
});
255253

256-
test.skip(`it does include patch function in message event when top-most card is writable and context is shared`, async ({
254+
test(`it does include patch function in message event when top-most card is writable and context is shared`, async ({
257255
page,
258256
}) => {
259257
await login(page, 'user1', 'pass');
@@ -312,7 +310,7 @@ test.describe('Room messages', () => {
312310
]);
313311
});
314312

315-
test.skip(`it does not include patch function in message event for an open card that is not attached`, async ({
313+
test(`it does not include patch function in message event for an open card that is not attached`, async ({
316314
page,
317315
}) => {
318316
await login(page, 'user1', 'pass');
@@ -337,7 +335,7 @@ test.describe('Room messages', () => {
337335
expect(boxelMessageData.context.functions).toMatchObject([]);
338336
});
339337

340-
test.skip(`it does not include patch function in message event when top-most card is read-only`, async ({
338+
test(`it does not include patch function in message event when top-most card is read-only`, async ({
341339
page,
342340
}) => {
343341
// the base realm is a read-only realm
@@ -360,7 +358,7 @@ test.describe('Room messages', () => {
360358
expect(boxelMessageData.context.functions).toMatchObject([]);
361359
});
362360

363-
test.skip('can send only a card as a message', async ({ page }) => {
361+
test('can send only a card as a message', async ({ page }) => {
364362
const testCard = `${testHost}/hassan`;
365363
await login(page, 'user1', 'pass');
366364
let room1 = await getRoomId(page);
@@ -373,9 +371,7 @@ test.describe('Room messages', () => {
373371
]);
374372
});
375373

376-
test.skip('can send cards with types unsupported by matrix', async ({
377-
page,
378-
}) => {
374+
test('can send cards with types unsupported by matrix', async ({ page }) => {
379375
const testCard = `${testHost}/type-examples`;
380376
await login(page, 'user1', 'pass');
381377
let room1 = await getRoomId(page);
@@ -390,7 +386,7 @@ test.describe('Room messages', () => {
390386
]);
391387
});
392388

393-
test.skip('can remove a card from a pending message', async ({ page }) => {
389+
test('can remove a card from a pending message', async ({ page }) => {
394390
const testCard = `${testHost}/hassan`;
395391
const testCard2 = `${testHost}/mango`;
396392
await login(page, 'user1', 'pass');
@@ -446,7 +442,7 @@ test.describe('Room messages', () => {
446442
]);
447443
});
448444

449-
test.skip('can render multiple cards in a room', async ({ page }) => {
445+
test('can render multiple cards in a room', async ({ page }) => {
450446
// the loader deadlocking issue would otherwise prevent this
451447

452448
const testCard1 = `${testHost}/hassan`;
@@ -481,7 +477,7 @@ test.describe('Room messages', () => {
481477
await assertMessages(page, [message1, message2]);
482478
});
483479

484-
test.skip('can send multiple cards in a message', async ({ page }) => {
480+
test('can send multiple cards in a message', async ({ page }) => {
485481
const testCard1 = `${testHost}/hassan`;
486482
const testCard2 = `${testHost}/mango`;
487483
const message = {
@@ -511,7 +507,7 @@ test.describe('Room messages', () => {
511507
await assertMessages(page, [message]);
512508
});
513509

514-
test.skip('attached cards are not duplicated', async ({ page }) => {
510+
test('attached cards are not duplicated', async ({ page }) => {
515511
const testCard1 = `${testHost}/hassan`;
516512
const testCard2 = `${testHost}/mango`;
517513
const testCard3 = `${testHost}/type-examples`;
@@ -538,7 +534,7 @@ test.describe('Room messages', () => {
538534
]);
539535
});
540536

541-
test.skip('displays view all pill if attached card more than 4', async ({
537+
test('displays view all pill if attached card more than 4', async ({
542538
page,
543539
}) => {
544540
const testCard1 = `${testHost}/hassan`;
@@ -568,7 +564,7 @@ test.describe('Room messages', () => {
568564
await expect(page.locator(`[data-test-attached-card]`)).toHaveCount(5);
569565
});
570566

571-
test.skip('displays auto-attached card', async ({ page }) => {
567+
test('displays auto-attached card', async ({ page }) => {
572568
const testCard1 = `${testHost}/hassan`;
573569
const testCard2 = `${testHost}/mango`;
574570

@@ -624,7 +620,7 @@ test.describe('Room messages', () => {
624620
]);
625621
});
626622

627-
test.skip('does not auto attach index card', async ({ page }) => {
623+
test('does not auto attach index card', async ({ page }) => {
628624
const testCard1 = `${testHost}/hassan`;
629625

630626
await login(page, 'user1', 'pass');
@@ -670,7 +666,7 @@ test.describe('Room messages', () => {
670666
]);
671667
});
672668

673-
test.skip('can remove auto-attached card', async ({ page }) => {
669+
test('can remove auto-attached card', async ({ page }) => {
674670
const testCard1 = `${testHost}/hassan`;
675671
const testCard2 = `${testHost}/mango`;
676672
const testCard3 = `${testHost}/type-examples`;
@@ -734,7 +730,7 @@ test.describe('Room messages', () => {
734730
]);
735731
});
736732

737-
test.skip('it can send the prompts on new-session room as chat message on click', async ({
733+
test('it can send the prompts on new-session room as chat message on click', async ({
738734
page,
739735
}) => {
740736
const prompt = {
@@ -752,9 +748,7 @@ test.describe('Room messages', () => {
752748
await assertMessages(page, [prompt]);
753749
});
754750

755-
test.skip('sends message when no card open in the stack', async ({
756-
page,
757-
}) => {
751+
test('sends message when no card open in the stack', async ({ page }) => {
758752
await login(page, 'user1', 'pass');
759753
await page
760754
.locator('[data-test-stack-card] [data-test-close-button]')
@@ -773,9 +767,7 @@ test.describe('Room messages', () => {
773767
]);
774768
});
775769

776-
test.skip('attaches a card in a coversation multiple times', async ({
777-
page,
778-
}) => {
770+
test('attaches a card in a coversation multiple times', async ({ page }) => {
779771
const testCard = `${testHost}/hassan`;
780772

781773
await login(page, 'user1', 'pass');

packages/matrix/tests/profile.spec.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ test.describe('Profile', () => {
7272
).toBeDisabled();
7373
});
7474

75-
test.skip('it can change email in settings', async ({ page }) => {
75+
test('it can change email in settings', async ({ page }) => {
7676
await gotoProfileSettings(page);
7777
await expect(page.locator('[data-test-current-email]')).toContainText(
7878
'user1@localhost',
@@ -154,7 +154,7 @@ test.describe('Profile', () => {
154154
await expect(page.locator('[data-test-new-email]')).toHaveCount(0);
155155
});
156156

157-
test.skip('it can handle incorrect password when changing email', async ({
157+
test('it can handle incorrect password when changing email', async ({
158158
page,
159159
}) => {
160160
await gotoProfileSettings(page);
@@ -183,7 +183,7 @@ test.describe('Profile', () => {
183183
).toHaveCount(0);
184184
});
185185

186-
test.skip('it can handle setting email to an already existing email when changing email', async ({
186+
test('it can handle setting email to an already existing email when changing email', async ({
187187
page,
188188
}) => {
189189
await gotoProfileSettings(page);
@@ -211,7 +211,7 @@ test.describe('Profile', () => {
211211
).toHaveCount(0);
212212
});
213213

214-
test.skip('it can resend email verification message', async ({ page }) => {
214+
test('it can resend email verification message', async ({ page }) => {
215215
await gotoProfileSettings(page);
216216
await expect(page.locator('[data-test-current-email]')).toContainText(
217217
'user1@localhost',
@@ -238,7 +238,7 @@ test.describe('Profile', () => {
238238
});
239239
});
240240

241-
test.skip('it can cancel email verification', async ({ page }) => {
241+
test('it can cancel email verification', async ({ page }) => {
242242
await gotoProfileSettings(page);
243243
await expect(page.locator('[data-test-current-email]')).toContainText(
244244
'user1@localhost',
@@ -262,7 +262,7 @@ test.describe('Profile', () => {
262262
await expect(page.locator('[data-test-new-email]')).toHaveCount(0);
263263
});
264264

265-
test.skip('it can cancel password confirmation when changing email', async ({
265+
test('it can cancel password confirmation when changing email', async ({
266266
page,
267267
}) => {
268268
await gotoProfileSettings(page);
@@ -287,7 +287,7 @@ test.describe('Profile', () => {
287287
);
288288
});
289289

290-
test.skip('it can cancel changing an email', async ({ page }) => {
290+
test('it can cancel changing an email', async ({ page }) => {
291291
await gotoProfileSettings(page);
292292
await expect(page.locator('[data-test-current-email]')).toContainText(
293293
'user1@localhost',
@@ -304,7 +304,7 @@ test.describe('Profile', () => {
304304
);
305305
});
306306

307-
test.skip('it can change password in settings', async ({ page }) => {
307+
test('it can change password in settings', async ({ page }) => {
308308
await gotoProfileSettings(page);
309309
await expect(page.locator('[data-test-current-email]')).toContainText(
310310
'user1@localhost',
@@ -347,7 +347,7 @@ test.describe('Profile', () => {
347347
await assertLoggedIn(page);
348348
});
349349

350-
test.skip('It shows an error when new password does not meet the requirement', async ({
350+
test('It shows an error when new password does not meet the requirement', async ({
351351
page,
352352
}) => {
353353
await gotoProfileSettings(page);
@@ -427,7 +427,7 @@ test.describe('Profile', () => {
427427
await assertLoggedIn(page);
428428
});
429429

430-
test.skip('It shows an error when current password is invalid', async ({
430+
test('It shows an error when current password is invalid', async ({
431431
page,
432432
}) => {
433433
await gotoProfileSettings(page);

0 commit comments

Comments
 (0)