We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d9a11f commit 47c70d4Copy full SHA for 47c70d4
cypress/e2e/game/misc.cy.ts
@@ -238,6 +238,15 @@ describe("misc", () => {
238
cy.get(".dialog .changelog-error").should("be.visible");
239
});
240
241
+ it("should display an error message if the changelog cannot be retrieved due to a network error", () => {
242
+ cy.intercept("GET", "/CHANGELOG.html", { forceNetworkError: true }).as("getChangelog");
243
+ cy.contains("Changelog").should("not.exist");
244
+ cy.get(".dialog .changelog-error").should("not.exist");
245
+ cy.get("#changelog-link").click({ force: true });
246
+ cy.wait("@getChangelog");
247
+ cy.get(".dialog .changelog-error").should("be.visible");
248
+ });
249
+
250
it("should only make one request to the changelog", () => {
251
const interceptedRequests = [];
252
0 commit comments