Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

E2E: Product Query: Popular filters presets #7749

Merged
merged 48 commits into from
Jan 5, 2023
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
42b9c13
wip: start working on popular filters
dinhtungdu Nov 22, 2022
3b8d03e
test default preset
dinhtungdu Nov 22, 2022
608aa8a
Merge branch 'trunk' into tests/popular-filters
dinhtungdu Nov 24, 2022
6645dfa
Merge branch 'trunk' into tests/popular-filters
dinhtungdu Nov 24, 2022
262f2ee
test file clean up
dinhtungdu Nov 25, 2022
2646666
test products displayed in editor preview and block front end
dinhtungdu Nov 25, 2022
f71c166
give editor time to update after resetting content
dinhtungdu Dec 2, 2022
0029728
restore the test name
dinhtungdu Dec 5, 2022
34a7a6e
Merge branch 'trunk' into fix/flaky-test-interact-with-form-token-field
dinhtungdu Dec 5, 2022
1b1b260
try: fixing flaky test by waiting for suggestion items
dinhtungdu Dec 5, 2022
09ceb7e
Merge branch 'trunk' into fix/flaky-test-interact-with-form-token-field
dinhtungdu Dec 5, 2022
2e9799d
use block.name when possible
dinhtungdu Dec 5, 2022
a0c2716
Merge branch 'trunk' into fix/flaky-test-interact-with-form-token-field
dinhtungdu Dec 5, 2022
eb48d53
update atomic tests to reflect changes introduced in #7815
dinhtungdu Dec 5, 2022
c96efbc
wait for elements before assertion
dinhtungdu Dec 6, 2022
8a65139
Merge branch 'trunk' into fix/flaky-test-interact-with-form-token-field
dinhtungdu Dec 6, 2022
34c21ad
update rating test as the default template removed rating block
dinhtungdu Dec 6, 2022
90b9f8e
fix rating test
dinhtungdu Dec 6, 2022
ef76d5a
fix advanced filters flaky test
dinhtungdu Dec 6, 2022
b72e1ae
Merge branch 'trunk' into fix/flaky-test-interact-with-form-token-field
dinhtungdu Dec 6, 2022
2f353d4
Merge branch 'trunk' into fix/flaky-test-interact-with-form-token-field
dinhtungdu Dec 7, 2022
3ba8e28
migrate improvements from #7719
dinhtungdu Dec 12, 2022
2cb26e7
Merge branch 'trunk' into fix/flaky-test-interact-with-form-token-field
dinhtungdu Dec 12, 2022
ba03443
ensure the setting is applied in the editor before saving and checkin…
dinhtungdu Dec 12, 2022
c548d57
Merge branch 'trunk' into fix/flaky-test-interact-with-form-token-field
dinhtungdu Dec 12, 2022
a0918ee
Merge branch 'trunk' into fix/flaky-test-interact-with-form-token-field
dinhtungdu Dec 21, 2022
58f3741
Merge branch 'fix/flaky-test-interact-with-form-token-field' into tes…
dinhtungdu Dec 21, 2022
ce275b8
import const and utilities from common.ts
dinhtungdu Dec 21, 2022
c926aa8
test sorted by title preset
dinhtungdu Dec 21, 2022
5724c57
extract common logic to utilites, Newest preset test
dinhtungdu Dec 22, 2022
5622f56
best selling and top rated test
dinhtungdu Dec 22, 2022
909cc7a
Merge branch 'trunk' into tests/popular-filters
dinhtungdu Dec 22, 2022
66dafac
replace openBlockEditorSettings by ensureSidebarOpened
dinhtungdu Dec 23, 2022
1f02fb1
fix flakiness of setting preset
dinhtungdu Dec 23, 2022
277bd68
fix: shorter and faster way to reset the product query page
dinhtungdu Dec 24, 2022
cf8fb22
Merge branch 'trunk' into tests/popular-filters
dinhtungdu Dec 29, 2022
7259f2d
try: not using beforeEeach
dinhtungdu Dec 29, 2022
fdbdd39
Revert "try: not using beforeEeach"
dinhtungdu Dec 29, 2022
4832a0c
try: timeout
dinhtungdu Dec 29, 2022
748d48b
use timeout after selecting the preset, giving the editor time to update
dinhtungdu Dec 30, 2022
53960ec
verify the popular filter selection
dinhtungdu Dec 30, 2022
1c79015
Merge branch 'trunk' into tests/popular-filters
dinhtungdu Dec 30, 2022
3638cd2
Merge branch 'trunk' into tests/popular-filters
dinhtungdu Dec 30, 2022
e60cf03
use jest.each to avoid duplicated code
dinhtungdu Jan 3, 2023
f8ee1ab
Use ensureSidebarOpened from @wordpress/e2e-test-utils
dinhtungdu Jan 3, 2023
691cfb9
move utilities for popular filter tests specifically to the test file.
dinhtungdu Jan 3, 2023
8afad60
more explicit tests for on sale and stock status
dinhtungdu Jan 3, 2023
12121b5
test default state once
dinhtungdu Jan 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
try: timeout
  • Loading branch information
dinhtungdu committed Dec 29, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 4832a0cfb6260ffa870e44071a5263025ada2c9d
3 changes: 2 additions & 1 deletion tests/e2e/specs/backend/product-query/common.ts
Original file line number Diff line number Diff line change
@@ -224,7 +224,8 @@ export const selectPopularFilterPreset = async (
await $preset.click();
try {
await canvas().waitForSelector( SELECTORS.productsGridLoading );
} catch ( _ok ) {}
} catch ( ok ) {}
await canvas().waitForSelector( SELECTORS.productsGrid );
await page.waitForTimeout( 1000 );
await saveOrPublish();
};