Skip to content

Commit

Permalink
Merge pull request #121 from koalatiapp/fix-fontawesome-cache
Browse files Browse the repository at this point in the history
fix: ensure fontawesome cache is cleared with new releases
  • Loading branch information
EmilePerron authored Mar 24, 2023
2 parents 43adc54 + 50851ec commit d3e4afd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/utils/fontawesome-import.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { html } from "lit";

export default html`<link type="text/css" rel="stylesheet" href="/ext/fontawesome/css/all.min.css">`;
export default html`<link type="text/css" rel="stylesheet" href="/ext/fontawesome/css/all.min.css?v=${window.RELEASE_VERSION || ""}">`;
1 change: 1 addition & 0 deletions templates/app_base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
{% include "_parts/analytics.html.twig" %}

<script>
window.RELEASE_VERSION = "{{ release_version }}";
window.CURRENT_USER_ID = "{{ app.user.id|hashids_encode }}";
window.mercureEventSource = new EventSource("{{ mercure(mercure_topic(app.user), mercure_config(app.user))|escape('js') }}", {
withCredentials: true
Expand Down
2 changes: 1 addition & 1 deletion tests/Full/Checklist/comments.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ test.describe("checklist", () => {
await expect(checklistItem, "Checklist item comment link is updated upon comment creation").toContainText("1 unresolved comment");

// Reply to the first comment
await comment.locator("nb-button >> text=Reply").click({ timeout: 1000 });
await comment.locator("nb-button >> text=Reply").click({ timeout: 2000 });
const replyEditor = comment.frameLocator("tinymce-editor.ready iframe").locator("[contenteditable]");
await replyEditor.click();
await replyEditor.type("All good 👍");
Expand Down

0 comments on commit d3e4afd

Please sign in to comment.