fix test
This commit is contained in:
parent
01bfb11ab4
commit
8015964dea
3 changed files with 14 additions and 4 deletions
|
|
@ -132,6 +132,15 @@ Tests use comprehensive mocking to prevent external connections:
|
||||||
|
|
||||||
**REMEMBER**: Always run `mix format` before every commit - this is non-negotiable and must become automatic habit.
|
**REMEMBER**: Always run `mix format` before every commit - this is non-negotiable and must become automatic habit.
|
||||||
|
|
||||||
|
## Git Commit Messages
|
||||||
|
|
||||||
|
When creating git commits:
|
||||||
|
- Write clear, concise commit messages following conventional commit format (e.g., `feat:`, `fix:`, `refactor:`, `docs:`)
|
||||||
|
- Focus on the "why" rather than the "what" in commit messages
|
||||||
|
- **DO NOT** add "Generated with Claude Code" or similar attribution to commit messages
|
||||||
|
- **DO NOT** add Co-Authored-By lines for Claude
|
||||||
|
- Keep commit messages professional and focused solely on the code changes
|
||||||
|
|
||||||
## Important Documentation Updates
|
## Important Documentation Updates
|
||||||
|
|
||||||
- **MANDATORY**: Whenever you implement improvements or changes to the system:
|
- **MANDATORY**: Whenever you implement improvements or changes to the system:
|
||||||
|
|
|
||||||
|
|
@ -115,18 +115,19 @@ defmodule AprsmeWeb.HistoricalLoadingIntegrationTest do
|
||||||
# Try to find markers with a more specific selector
|
# Try to find markers with a more specific selector
|
||||||
# Leaflet markers have specific classes
|
# Leaflet markers have specific classes
|
||||||
markers = all(session, css(".leaflet-marker-icon"))
|
markers = all(session, css(".leaflet-marker-icon"))
|
||||||
|
marker_count = length(markers)
|
||||||
|
|
||||||
if length(markers) == 0 do
|
if marker_count == 0 do
|
||||||
# Take screenshot for debugging
|
# Take screenshot for debugging
|
||||||
take_screenshot(session, name: "no_markers_found")
|
take_screenshot(session, name: "no_markers_found")
|
||||||
|
|
||||||
# Check if there are any error messages
|
# Check if there are any error messages
|
||||||
page_text = text(session)
|
page_text = Wallaby.Browser.text(session)
|
||||||
IO.puts("Page text: #{page_text}")
|
IO.puts("Page text: #{page_text}")
|
||||||
end
|
end
|
||||||
|
|
||||||
# Check that markers are present on the map
|
# Check that markers are present on the map
|
||||||
assert length(markers) > 0, "Expected to find markers on the map, but found #{length(markers)}"
|
assert marker_count > 0, "Expected to find markers on the map, but found #{marker_count}"
|
||||||
|
|
||||||
# Verify at least 2 markers are present (our test packets)
|
# Verify at least 2 markers are present (our test packets)
|
||||||
marker_count =
|
marker_count =
|
||||||
|
|
|
||||||
2
vendor/aprs
vendored
2
vendor/aprs
vendored
|
|
@ -1 +1 @@
|
||||||
Subproject commit a1c1fba30f600e400a14fc29e7b9f5546adb472e
|
Subproject commit 9d2944000622706320b2228f465804ba91ce12a8
|
||||||
Loading…
Add table
Reference in a new issue