Skip to content

Commit

Permalink
Refactor: Project Samples Test (#869)
Browse files Browse the repository at this point in the history
* create new branch for test refactor

* complete editing existing tests

* add additional tests for sort filter limit

* fix current tests

* further fix tests

* cleanup

* Revert "cleanup"

This reverts commit 83a159a.

* cleanup

* fix tests, try to reduce flakiness

* revert some changes

* add asserts to try and avoid flakiness

* test fixes for remote testing

* try splitting testing files further

* Revert "try splitting testing files further"

This reverts commit dbcecda.

* testing sleep to verify if system speed is issue

* try different selector for select2 options

* test loading up on asserts

* remove some asserts to see if select2 flakes

* add back asserts, test refreshing search index

* fix tests

* cleanup, add additional comments

* simply selection test

* readd test

* further cleanup

* add assertions for pagy upon page visit to prevent flakes

* move assertion to prevent flake

* add in additional assertions to prevent flakes
  • Loading branch information
ChrisHuynh333 authored Jan 3, 2025
1 parent 4df6bb0 commit 437fb05
Show file tree
Hide file tree
Showing 2 changed files with 1,634 additions and 921 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sample1:
project_id: <%= ActiveRecord::FixtureSet.identify(:project1, :uuid) %>
puid: INXT_SAM_AAAAAAAAAA
created_at: <%= 1.week.ago %>
updated_at: <%= 1.day.ago %>
updated_at: <%= 3.hours.ago %>
attachments_updated_at: <%= 2.hours.ago %>

sample2:
Expand Down
Loading

0 comments on commit 437fb05

Please sign in to comment.