|
|
|
@ -157,7 +157,7 @@ describe('MemberEventListSummary', function() { |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
); |
|
|
|
); |
|
|
|
const summaryText = summary.innerText; |
|
|
|
const summaryText = summary.textContent; |
|
|
|
|
|
|
|
|
|
|
|
expect(summaryText).toBe("user_1 joined and left and joined"); |
|
|
|
expect(summaryText).toBe("user_1 joined and left and joined"); |
|
|
|
}); |
|
|
|
}); |
|
|
|
@ -193,7 +193,7 @@ describe('MemberEventListSummary', function() { |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
); |
|
|
|
); |
|
|
|
const summaryText = summary.innerText; |
|
|
|
const summaryText = summary.textContent; |
|
|
|
|
|
|
|
|
|
|
|
expect(summaryText).toBe("user_1 joined and left 7 times"); |
|
|
|
expect(summaryText).toBe("user_1 joined and left 7 times"); |
|
|
|
}); |
|
|
|
}); |
|
|
|
@ -241,7 +241,7 @@ describe('MemberEventListSummary', function() { |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
); |
|
|
|
); |
|
|
|
const summaryText = summary.innerText; |
|
|
|
const summaryText = summary.textContent; |
|
|
|
|
|
|
|
|
|
|
|
expect(summaryText).toBe( |
|
|
|
expect(summaryText).toBe( |
|
|
|
"user_1 was unbanned, joined and left 7 times and was invited", |
|
|
|
"user_1 was unbanned, joined and left 7 times and was invited", |
|
|
|
@ -294,7 +294,7 @@ describe('MemberEventListSummary', function() { |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
); |
|
|
|
); |
|
|
|
const summaryText = summary.innerText; |
|
|
|
const summaryText = summary.textContent; |
|
|
|
|
|
|
|
|
|
|
|
expect(summaryText).toBe( |
|
|
|
expect(summaryText).toBe( |
|
|
|
"user_1 was unbanned, joined and left 2 times, was banned, " + |
|
|
|
"user_1 was unbanned, joined and left 2 times, was banned, " + |
|
|
|
@ -353,7 +353,7 @@ describe('MemberEventListSummary', function() { |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
); |
|
|
|
); |
|
|
|
const summaryText = summary.innerText; |
|
|
|
const summaryText = summary.textContent; |
|
|
|
|
|
|
|
|
|
|
|
expect(summaryText).toBe( |
|
|
|
expect(summaryText).toBe( |
|
|
|
"user_1 and one other were unbanned, joined and left 2 times and were banned", |
|
|
|
"user_1 and one other were unbanned, joined and left 2 times and were banned", |
|
|
|
@ -391,7 +391,7 @@ describe('MemberEventListSummary', function() { |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
); |
|
|
|
); |
|
|
|
const summaryText = summary.innerText; |
|
|
|
const summaryText = summary.textContent; |
|
|
|
|
|
|
|
|
|
|
|
expect(summaryText).toBe( |
|
|
|
expect(summaryText).toBe( |
|
|
|
"user_0 and 19 others were unbanned, joined and left 2 times and were banned", |
|
|
|
"user_0 and 19 others were unbanned, joined and left 2 times and were banned", |
|
|
|
@ -442,7 +442,7 @@ describe('MemberEventListSummary', function() { |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
); |
|
|
|
); |
|
|
|
const summaryText = summary.innerText; |
|
|
|
const summaryText = summary.textContent; |
|
|
|
|
|
|
|
|
|
|
|
expect(summaryText).toBe( |
|
|
|
expect(summaryText).toBe( |
|
|
|
"user_2 was unbanned and joined and left 2 times, user_1 was unbanned, " + |
|
|
|
"user_2 was unbanned and joined and left 2 times, user_1 was unbanned, " + |
|
|
|
@ -516,7 +516,7 @@ describe('MemberEventListSummary', function() { |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
); |
|
|
|
); |
|
|
|
const summaryText = summary.innerText; |
|
|
|
const summaryText = summary.textContent; |
|
|
|
|
|
|
|
|
|
|
|
expect(summaryText).toBe( |
|
|
|
expect(summaryText).toBe( |
|
|
|
"user_1 was invited, was banned, joined, rejected their invitation, left, " + |
|
|
|
"user_1 was invited, was banned, joined, rejected their invitation, left, " + |
|
|
|
@ -563,7 +563,7 @@ describe('MemberEventListSummary', function() { |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
); |
|
|
|
); |
|
|
|
const summaryText = summary.innerText; |
|
|
|
const summaryText = summary.textContent; |
|
|
|
|
|
|
|
|
|
|
|
expect(summaryText).toBe( |
|
|
|
expect(summaryText).toBe( |
|
|
|
"user_1 and one other rejected their invitations and " + |
|
|
|
"user_1 and one other rejected their invitations and " + |
|
|
|
@ -599,7 +599,7 @@ describe('MemberEventListSummary', function() { |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
); |
|
|
|
); |
|
|
|
const summaryText = summary.innerText; |
|
|
|
const summaryText = summary.textContent; |
|
|
|
|
|
|
|
|
|
|
|
expect(summaryText).toBe( |
|
|
|
expect(summaryText).toBe( |
|
|
|
"user_1 rejected their invitation 2 times", |
|
|
|
"user_1 rejected their invitation 2 times", |
|
|
|
@ -627,7 +627,7 @@ describe('MemberEventListSummary', function() { |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
); |
|
|
|
); |
|
|
|
const summaryText = summary.innerText; |
|
|
|
const summaryText = summary.textContent; |
|
|
|
|
|
|
|
|
|
|
|
expect(summaryText).toBe( |
|
|
|
expect(summaryText).toBe( |
|
|
|
"user_1 and user_2 joined 2 times", |
|
|
|
"user_1 and user_2 joined 2 times", |
|
|
|
@ -654,7 +654,7 @@ describe('MemberEventListSummary', function() { |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
); |
|
|
|
); |
|
|
|
const summaryText = summary.innerText; |
|
|
|
const summaryText = summary.textContent; |
|
|
|
|
|
|
|
|
|
|
|
expect(summaryText).toBe( |
|
|
|
expect(summaryText).toBe( |
|
|
|
"user_1, user_2 and one other joined", |
|
|
|
"user_1, user_2 and one other joined", |
|
|
|
@ -679,7 +679,7 @@ describe('MemberEventListSummary', function() { |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
const summary = ReactTestUtils.findRenderedDOMComponentWithClass( |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
instance, "mx_EventListSummary_summary", |
|
|
|
); |
|
|
|
); |
|
|
|
const summaryText = summary.innerText; |
|
|
|
const summaryText = summary.textContent; |
|
|
|
|
|
|
|
|
|
|
|
expect(summaryText).toBe( |
|
|
|
expect(summaryText).toBe( |
|
|
|
"user_0, user_1 and 18 others joined", |
|
|
|
"user_0, user_1 and 18 others joined", |
|
|
|
|