Skip to content

Commit

Permalink
Update element selector to identify ongoing htmx requests in selenium…
Browse files Browse the repository at this point in the history
… tests

.htmx-indicator itself doesn't mean there are htmx requests in progress.
  • Loading branch information
sunnavy committed Jan 17, 2025
1 parent 6a925ba commit 9081e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RT/Test/Selenium.pm
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ sub get_ok {
do {
sleep 0.5;
last unless $max--;
} while ( $self->find_elements( selector_to_xpath('.htmx-indicator') ) )[0];
} while ( $self->find_elements( selector_to_xpath('.htmx-request, .refreshing') ) )[0];
}

sub rt_base_url {
Expand Down

0 comments on commit 9081e24

Please sign in to comment.