pull/853/head
Oleksii Holub 3 years ago
parent 2e4d19671a
commit 32dd1689d0

@ -20,7 +20,7 @@ public record MentionSpecs(ExportWrapperFixture ExportWrapper) : IClassFixture<E
);
// Assert
message.Text().Trim().Should().Be("User mention: @Tyrrrz");
message.Text().Trim().Should().Contain("User mention: @Tyrrrz");
message.InnerHtml.Should().Contain("Tyrrrz#5447");
}
@ -34,7 +34,7 @@ public record MentionSpecs(ExportWrapperFixture ExportWrapper) : IClassFixture<E
);
// Assert
message.Text().Trim().Should().Be("Text channel mention: #mention-tests");
message.Text().Trim().Should().Contain("Text channel mention: #mention-tests");
}
[Fact]
@ -47,7 +47,7 @@ public record MentionSpecs(ExportWrapperFixture ExportWrapper) : IClassFixture<E
);
// Assert
message.Text().Trim().Should().Be("Voice channel mention: 🔊chaos-vc");
message.Text().Trim().Should().Contain("Voice channel mention: 🔊chaos-vc");
}
[Fact]
@ -60,6 +60,6 @@ public record MentionSpecs(ExportWrapperFixture ExportWrapper) : IClassFixture<E
);
// Assert
message.Text().Trim().Should().Be("Role mention: @Role 1");
message.Text().Trim().Should().Contain("Role mention: @Role 1");
}
}

@ -20,8 +20,8 @@ public record ReplySpecs(ExportWrapperFixture ExportWrapper) : IClassFixture<Exp
);
// Assert
message.Text().Trim().Should().Be("reply to original");
message.QuerySelector(".chatlog__reference-link")?.Text().Trim().Should().Be("original");
message.Text().Trim().Should().Contain("reply to original");
message.QuerySelector(".chatlog__reference-link")?.Text().Trim().Should().Contain("original");
}
[Fact]
@ -34,9 +34,9 @@ public record ReplySpecs(ExportWrapperFixture ExportWrapper) : IClassFixture<Exp
);
// Assert
message.Text().Trim().Should().Be("reply to deleted");
message.Text().Trim().Should().Contain("reply to deleted");
message.QuerySelector(".chatlog__reference-link")?.Text().Trim().Should()
.Be("Original message was deleted or could not be loaded.");
.Contain("Original message was deleted or could not be loaded.");
}
[Fact]
@ -49,8 +49,8 @@ public record ReplySpecs(ExportWrapperFixture ExportWrapper) : IClassFixture<Exp
);
// Assert
message.Text().Trim().Should().Be("reply to attachment");
message.Text().Trim().Should().Contain("reply to attachment");
message.QuerySelector(".chatlog__reference-link")?.Text().Trim().Should()
.Be("Click to see attachment 🖼️");
.Contain("Click to see attachment 🖼️");
}
}
Loading…
Cancel
Save