diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 01d8eaf6..db7927ae 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -9,24 +9,6 @@ jobs:
otp: ['26']
elixir: ['1.15.4']
steps:
- - name: Clear cache
- uses: actions/github-script@v6
- with:
- script: |
- console.log("About to clear")
- const caches = await github.rest.actions.getActionsCacheList({
- owner: context.repo.owner,
- repo: context.repo.repo,
- })
- for (const cache of caches.data.actions_caches) {
- console.log(cache)
- github.rest.actions.deleteActionsCacheById({
- owner: context.repo.owner,
- repo: context.repo.repo,
- cache_id: cache.id,
- })
- }
- console.log("Clear completed")
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
diff --git a/test/components/truncate_test.exs b/test/components/truncate_test.exs
index 2fb8ca33..d5de1946 100644
--- a/test/components/truncate_test.exs
+++ b/test/components/truncate_test.exs
@@ -154,20 +154,19 @@ defmodule PrimerLive.Components.TruncateTest do
test "Attribute: style" do
assigns = %{}
- assert rendered_to_string(~H"""
- <.truncate>
- <:item is_expandable style="max-width: 300px;">
- really-long-text
-
-
- """)
- |> format_html() ==
- """
-
- really-long-text
-
- """
- |> format_html()
+ # Assert with rendered fragments because .dynamic_tag shuffles the order of attributes
+ result =
+ rendered_to_string(~H"""
+ <.truncate>
+ <:item is_expandable style="max-width: 300px;">
+ really-long-text
+
+
+ """)
+ |> format_html()
+
+ assert String.contains?(result, "")
+ assert String.contains?(result, "style=\"max-width: 300px;\"")
+ assert String.contains?(result, "class=\"Truncate-text Truncate-text--expandable\"")
end
end