Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7b5ee36

Browse files
committed
Fix markerEventId typo
1 parent 32952e3 commit 7b5ee36

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

cypress/e2e/x-msc2716-historical-import/historical-import.spec.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -220,18 +220,18 @@ function sendMarkerEventAndEnsureHistoryDetectedStatusBar(asMatrixClient) {
220220
cy.get<string>("@roomId"),
221221
cy.get<string>("@baseInsertionEventId"),
222222
]).then(async ([roomId, baseInsertionEventId]) => {
223-
const { event_id: markeEventId } = await asMatrixClient.sendStateEvent(
223+
const { event_id: markerEventId } = await asMatrixClient.sendStateEvent(
224224
roomId,
225225
'org.matrix.msc2716.marker', {
226226
"org.matrix.msc2716.marker.insertion": baseInsertionEventId,
227227
},
228228
Cypress._.uniqueId("marker_state_key_"),
229229
);
230230

231-
cy.wrap(markeEventId).as('markeEventId');
231+
cy.wrap(markerEventId).as('markerEventId');
232232

233233
// Wait for the message to show up for the logged in user
234-
waitForEventIdsInClient([markeEventId]);
234+
waitForEventIdsInClient([markerEventId]);
235235
});
236236

237237
// Ensure the "History import detected" notice is shown
@@ -488,11 +488,11 @@ describe("MSC2716: Historical Import", () => {
488488
let resolveReq;
489489
cy.all([
490490
cy.get<string>("@roomId"),
491-
cy.get<string>("@markeEventId"),
492-
]).then(([roomId, markeEventId]) => {
493-
// We're using `markeEventId` here because it's the latest event in the room
491+
cy.get<string>("@markerEventId"),
492+
]).then(([roomId, markerEventId]) => {
493+
// We're using `markerEventId` here because it's the latest event in the room
494494
const prefix = '/_matrix/client/r0';
495-
const path = `/rooms/${encodeURIComponent(roomId)}/context/${encodeURIComponent(markeEventId)}`;
495+
const path = `/rooms/${encodeURIComponent(roomId)}/context/${encodeURIComponent(markerEventId)}`;
496496
const contextUrl = `${synapse.baseUrl}${prefix}${path}*`;
497497
cy.intercept(contextUrl, async (req) => {
498498
return new Cypress.Promise(resolve => {
@@ -591,11 +591,11 @@ describe("MSC2716: Historical Import", () => {
591591
// retry and recover.
592592
cy.all([
593593
cy.get<string>("@roomId"),
594-
cy.get<string>("@markeEventId"),
595-
]).then(async ([roomId, markeEventId]) => {
596-
// We're using `this.markeEventId` here because it's the latest event in the room
594+
cy.get<string>("@markerEventId"),
595+
]).then(async ([roomId, markerEventId]) => {
596+
// We're using `this.markerEventId` here because it's the latest event in the room
597597
const prefix = '/_matrix/client/r0';
598-
const path = `/rooms/${encodeURIComponent(roomId)}/context/${encodeURIComponent(markeEventId)}`;
598+
const path = `/rooms/${encodeURIComponent(roomId)}/context/${encodeURIComponent(markerEventId)}`;
599599
const contextUrl = `${synapse.baseUrl}${prefix}${path}*`;
600600
cy.intercept(contextUrl, {
601601
statusCode: 500,
@@ -619,11 +619,11 @@ describe("MSC2716: Historical Import", () => {
619619
// Allow the requests to succeed now
620620
cy.all([
621621
cy.get<string>("@roomId"),
622-
cy.get<string>("@markeEventId"),
623-
]).then(async ([roomId, markeEventId]) => {
624-
// We're using `this.markeEventId` here because it's the latest event in the room
622+
cy.get<string>("@markerEventId"),
623+
]).then(async ([roomId, markerEventId]) => {
624+
// We're using `this.markerEventId` here because it's the latest event in the room
625625
const prefix = '/_matrix/client/r0';
626-
const path = `/rooms/${encodeURIComponent(roomId)}/context/${encodeURIComponent(markeEventId)}`;
626+
const path = `/rooms/${encodeURIComponent(roomId)}/context/${encodeURIComponent(markerEventId)}`;
627627
const contextUrl = `${synapse.baseUrl}${prefix}${path}*`;
628628
cy.intercept(contextUrl, async (req) => {
629629
// Passthrough. We can't just omit this callback because the

0 commit comments

Comments
 (0)