Skip to content

5 - Testing Interactions#24

Merged
treejamie merged 3 commits intomainfrom
5-testing-interactions
May 15, 2025
Merged

5 - Testing Interactions#24
treejamie merged 3 commits intomainfrom
5-testing-interactions

Conversation

@treejamie
Copy link
Copy Markdown
Owner

@treejamie treejamie commented May 15, 2025

The element/2 function plays another central role as it allows you to extract DOM elements from the view and select them very specifically using has_element?/3.

Included in this commit are two examples of not so good practice and one of my own tests for ensuring clicking the decrement button does actually decrement html in the view.

Also, I'll be tagging tests with one of three tags

  • :good - tags for best practice and how LiveView tests should be structured
  • :ungood - tags for how not to approach testing becasue it leads to false positives or sloppy assumptions
  • :mine - I wrote the test.

Also matched version of Elixir in GH actions file with the version in the asdf .tool-version file

image

closes #19

@treejamie treejamie self-assigned this May 15, 2025
@treejamie treejamie merged commit 9ce2c76 into main May 15, 2025
1 check passed
@treejamie treejamie deleted the 5-testing-interactions branch May 15, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: WK DONE

Development

Successfully merging this pull request may close these issues.

5 - Testing Interactions

1 participant