Skip to content

Move load tests to the bottom of the core file - #1677

Merged
1cg merged 1 commit into
bigskysoftware:devfrom
alexpetros:test
Aug 5, 2023
Merged

Move load tests to the bottom of the core file#1677
1cg merged 1 commit into
bigskysoftware:devfrom
alexpetros:test

Conversation

@alexpetros

@alexpetros alexpetros commented Aug 5, 2023

Copy link
Copy Markdown
Collaborator

Description

This "resolves" a timing bug that was occurring in the CI, where these tests would run before the htmx was ready (only in the GitHub actions servers). Not proud of this as a fix but I would like the CI to work again ASAP.

The bug is related to the change from these PRs:

I still think the behavior in these PRs is correct. As best I can tell from MDN Documentation, the loading state happens before all the deferred scripts are loaded but DOMContentLoaded fires after deferred scripts are loaded, even though the MDN page says "[loading] state indicates that the DOMContentLoaded event is about to fire". Which is what we want—we want it to be ready when the scripts are loaded, but we don't care if all the images are loaded.

What needs to probably happen in the future is that we hold the tests until the ready event has fired.

This "resolves" a timing bug that was ocurring in the CI, where these
tests would run before htmx was loaded (only in the GitHub actions
servers). Not proud of this as a fix but I would like the CI to work
again ASAP.
@alexpetros alexpetros added devops Changes to the repository structure or project management ready for review Issues that are ready to be considered for merging labels Aug 5, 2023
@1cg
1cg merged commit c126d90 into bigskysoftware:dev Aug 5, 2023
@1cg

1cg commented Aug 5, 2023

Copy link
Copy Markdown
Contributor

oof

@alexpetros
alexpetros deleted the test branch August 5, 2023 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops Changes to the repository structure or project management ready for review Issues that are ready to be considered for merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants