Skip to content

[WOO POS] UI tests for Product and Cart screens #12713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1,024 commits into
base: issue/12689-ui-tests-exit-pos-dialog
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1024 commits
Select commit Hold shift + click to select a range
da0049d
Release Notes: add new section for next version (20.5)
wpmobilebot Sep 13, 2024
90095e0
Make sure to clear the chart if the stats are empty
hichamboushaba Sep 13, 2024
40b4638
Improve logic of the function
hichamboushaba Sep 13, 2024
9b11973
Bump fluxc
hichamboushaba Sep 13, 2024
7c128df
Update release notes for 20.4
hichamboushaba Sep 13, 2024
d2c92ad
Display product images upon tapping in new option
JorgeMucientes Sep 13, 2024
7f05b19
Merge pull request #12606 from woocommerce/update-release-notes-20.4
irfano Sep 13, 2024
3c8d016
Update `PlayStoreStrings.po` for 20.4
wpmobilebot Sep 13, 2024
ba57fe1
Freeze strings for translation
wpmobilebot Sep 13, 2024
a9dd531
Update product selected image
JorgeMucientes Sep 13, 2024
40e8edf
Update product images UI for adaptive grid
JorgeMucientes Sep 13, 2024
9acb6ce
Merge pull request #12607 from woocommerce/merge/release-20.4-into-trunk
hichamboushaba Sep 13, 2024
9c19016
Update CI toolkit to 3.6.2
wzieba Sep 13, 2024
769b21b
temp: add lint violation
wzieba Sep 13, 2024
00401b5
Do not use ignore case when renaming attributes
toupper Sep 13, 2024
cbd41b6
Revert "temp: add lint violation"
wzieba Sep 13, 2024
d0720ba
Add unit test
toupper Sep 13, 2024
c6cd96e
Add toolbar and title to product photo picker
JorgeMucientes Sep 13, 2024
482eb97
Clean up code
samiuelson Sep 13, 2024
ded7106
Align padding
samiuelson Sep 13, 2024
0650c0b
Handle empty case for product image picker
JorgeMucientes Sep 13, 2024
c332c70
Fix detekt indentation issues
JorgeMucientes Sep 13, 2024
b84c63d
Fix title of photo picker
JorgeMucientes Sep 13, 2024
5a54835
Add release note
toupper Sep 13, 2024
7e9a5f4
Update release notes
JorgeMucientes Sep 13, 2024
0827072
Merge branch 'refs/heads/trunk' into issue/11323-new-product-image-pi…
JorgeMucientes Sep 13, 2024
ce884db
Update release notes
JorgeMucientes Sep 13, 2024
31cfd61
Remove compose code duplication
JorgeMucientes Sep 13, 2024
9169112
Merge branch 'trunk' into 12496-totals-calculations-ui-issues
backwardstruck Sep 13, 2024
2ada792
Merge pull request #12583 from woocommerce/12496-totals-calculations-…
samiuelson Sep 13, 2024
28b322d
Update .buildkite/commands/lint.sh
wzieba Sep 13, 2024
f5591aa
Merge branch 'trunk' into 12609-products-cart-card-tops-not-aligned
samiuelson Sep 13, 2024
3abc23d
Use black as a background for the Spalsh Screen
hichamboushaba Sep 13, 2024
378aed2
Merge pull request #12612 from woocommerce/wear/update-splash-screen-bg
hichamboushaba Sep 13, 2024
154a480
Bump version number
wpmobilebot Sep 13, 2024
1c2cc6c
Merge pull request #12613 from woocommerce/merge/release-20.4-into-trunk
hichamboushaba Sep 13, 2024
e5d1775
Make sitePickerViewState visible for testing
irfano Sep 13, 2024
a0a673d
Add unit test for the visibility of primary button in the site picker
irfano Sep 13, 2024
15054bc
Merge branch 'trunk' into 12609-products-cart-card-tops-not-aligned
backwardstruck Sep 13, 2024
45bdb08
Merge branch 'trunk' into 12542-woo-pos-error-message-doesnt-feel-rig…
backwardstruck Sep 13, 2024
ab4d89a
Add a new test
backwardstruck Sep 13, 2024
ad3d1f8
Merge branch 'trunk' into 12556-woo-pos-design-products-screen-changes
backwardstruck Sep 13, 2024
72b02d8
Something like this should fix it
backwardstruck Sep 13, 2024
d18d4ae
Detekt
backwardstruck Sep 13, 2024
102305b
Detekt
backwardstruck Sep 13, 2024
6fcd9e3
Add mock
backwardstruck Sep 13, 2024
a973c5c
Should not be null
backwardstruck Sep 13, 2024
4c6eec7
Merge pull request #12543 from woocommerce/12542-woo-pos-error-messag…
backwardstruck Sep 13, 2024
7d1b1aa
Update fluxCVersion to the PR
irfano Sep 14, 2024
a304d9d
Add Objective model to BlazeRepository
irfano Sep 14, 2024
b49df1c
Add fetchObjectives() to BlazeRepository
irfano Sep 14, 2024
29424db
Add observeObjectives() to BlazeRepository
irfano Sep 14, 2024
cbfefd2
Animate cart list height change
AnirudhBhat Sep 16, 2024
5f74749
Fix detekt error
AnirudhBhat Sep 16, 2024
6ee2c13
Merge branch 'trunk' into issue/12561-fix-renaming-attribute
toupper Sep 16, 2024
2ca91f3
Merge pull request #12600 from woocommerce/send_sarif_reports_to_gh
wzieba Sep 16, 2024
ea926b7
Merge pull request #12614 from woocommerce/fix/add-unit-test-for-site…
AnirudhBhat Sep 16, 2024
b1f891d
Fix how ProductImagePickerViewModel and Product.Images are imported
JorgeMucientes Sep 16, 2024
f5ee1d0
Merge pull request #12611 from woocommerce/12609-products-cart-card-t…
samiuelson Sep 16, 2024
267d001
Add non empty content description to product photo
JorgeMucientes Sep 16, 2024
29f6e8e
Fix detekt indentation issues
JorgeMucientes Sep 16, 2024
2a89ace
Merge pull request #12610 from woocommerce/issue/11323-new-product-im…
irfano Sep 16, 2024
d32fc94
Fix test compilation issues
JorgeMucientes Sep 16, 2024
1eee346
Reverted animation duration to 300 back from 1000
kidinov Sep 16, 2024
71474a2
Removed redundant box
kidinov Sep 16, 2024
1ecdac9
Outer padding for the banner 24 as on the design
kidinov Sep 16, 2024
97cac80
Do not apply modifier to the shadows
kidinov Sep 16, 2024
4c01316
Fix typo on release publishing
iangmaia Sep 16, 2024
45b5304
Disable release build retry
iangmaia Sep 16, 2024
d1eb9ed
Merge pull request #12579 from woocommerce/issue/12578-copy-field
JorgeMucientes Sep 16, 2024
baa7dea
Merge branch 'trunk' into issue/12561-fix-renaming-attribute
toupper Sep 16, 2024
5e74c63
Move `isUpdatingOrderDraft` management into coroutine
samiuelson Sep 16, 2024
5eb3cd9
Merge pull request #12608 from woocommerce/issue/12561-fix-renaming-a…
toupper Sep 16, 2024
9310ff5
Merge pull request #12591 from woocommerce/issue/12577-ui-changes-suc…
samiuelson Sep 16, 2024
da7e27d
Merge pull request #12622 from woocommerce/iangmaia/release-publishin…
iangmaia Sep 16, 2024
dd198f2
Merge branch 'trunk' into 12550-woo-pos-orders-created-in-pos-dont-sh…
backwardstruck Sep 16, 2024
3aa2c8f
Add mock to test
backwardstruck Sep 16, 2024
89e4f3a
Fix test
backwardstruck Sep 16, 2024
9cc5242
Cleanup
backwardstruck Sep 16, 2024
c42acfc
And check item name
backwardstruck Sep 16, 2024
2c07c11
Merge pull request #12621 from woocommerce/12618-woo-pos-ui-issues-wi…
AnirudhBhat Sep 17, 2024
7aed80b
Simulate overlay for the connect reader button
kidinov Sep 17, 2024
8a8490e
Update `isUpdatingOrderDraft` state unit test
samiuelson Sep 17, 2024
4d0bbc5
Merge pull request #12540 from woocommerce/11919-EAN-13-check-not-rec…
samiuelson Sep 17, 2024
01bc3c0
Merge branch 'trunk' into 12629-woo-pos-move-reader-connection-button…
backwardstruck Sep 17, 2024
b610386
Merge pull request #12631 from woocommerce/12629-woo-pos-move-reader-…
backwardstruck Sep 17, 2024
993d668
Merge branch 'trunk' into 12550-woo-pos-orders-created-in-pos-dont-sh…
backwardstruck Sep 17, 2024
334ab5f
Use app launcher icon as splash screen icon
ThomazFB Sep 17, 2024
c5b2d08
Merge pull request #12582 from woocommerce/custom-fields/fix-issues
hichamboushaba Sep 18, 2024
6ea261b
Merge pull request #12605 from woocommerce/issue/12548-attempt-fix-st…
hichamboushaba Sep 18, 2024
584137b
Checks if Blaze for WooCommerce plugin is installed and active
JorgeMucientes Sep 18, 2024
807844b
Checks if Blaze for WooCommerce plugin is installed and active
JorgeMucientes Sep 18, 2024
79fa4f8
Introduce a new component to use as a top banner
hichamboushaba Sep 12, 2024
b1a922b
Add the top banner to the custom fields list
hichamboushaba Sep 12, 2024
495646f
Handle logic of dismissing the banner
hichamboushaba Sep 12, 2024
32b5234
Adjust color of the message
hichamboushaba Sep 12, 2024
bb72363
Add unit tests
hichamboushaba Sep 12, 2024
18cd63c
Add Google Ads into "shown by default" cards list if available.
hafizrahman Sep 18, 2024
47958ee
Bump fluxc
hichamboushaba Sep 18, 2024
9dbeabf
Declare WOO_POS remote feature flag
samiuelson Sep 18, 2024
40da28e
Simplify expression
hichamboushaba Sep 18, 2024
1b3bf2b
Shrink login error message size
ThomazFB Sep 18, 2024
852e39d
Configure WearMainActivity config changes to avoid NavController refe…
ThomazFB Sep 18, 2024
05bb90b
Update FluxC changeset
JorgeMucientes Sep 18, 2024
86a6a1c
Switch from local FF to remote FF in WooPosIsEnabled
samiuelson Sep 18, 2024
ff28ab6
Remove WOO_POS FF
samiuelson Sep 18, 2024
e3942ad
Update tests
samiuelson Sep 18, 2024
3a790df
Add password to the presentation model
hichamboushaba Sep 18, 2024
613d878
Merge branch 'trunk' into 12550-woo-pos-orders-created-in-pos-dont-sh…
backwardstruck Sep 18, 2024
107741c
Add a helper class to determine the API to use to use
hichamboushaba Sep 18, 2024
3885f6f
Update the logic of showing the product password option
hichamboushaba Sep 18, 2024
4a66ddc
Check for password value when checking for equality
hichamboushaba Sep 18, 2024
6d5d3b0
Handle saving product password with both APIs
hichamboushaba Sep 18, 2024
52bc7de
Update view state logic to have a single truth for the password draft
hichamboushaba Sep 18, 2024
585611d
Switch to RFF in more menu VM
samiuelson Sep 19, 2024
eac1d44
Update unit tests
samiuelson Sep 19, 2024
eec3afb
Fix UI to show info icon inlined with the text label
JorgeMucientes Sep 19, 2024
27b95fa
Fix text alingment
JorgeMucientes Sep 19, 2024
753bd48
Add and fix unit tests
hichamboushaba Sep 19, 2024
0d16582
Merge branch 'trunk' into 12556-woo-pos-design-products-screen-changes
backwardstruck Sep 19, 2024
c01be27
Move and set animation times
backwardstruck Sep 19, 2024
8592391
Update release notes
JorgeMucientes Sep 19, 2024
7ef63fc
Merge branch 'refs/heads/trunk' into issue/12146-enable-for-jetpack-p…
JorgeMucientes Sep 19, 2024
90cc0cf
Remove fadein since it's not doing anything
backwardstruck Sep 19, 2024
c7cac7b
Add a release notes entry
hichamboushaba Sep 19, 2024
802aac2
Integrate security lint checks
wzieba Sep 19, 2024
e619400
Adds missing suitableForDescription field to Objective model
JorgeMucientes Sep 19, 2024
06f6e0c
treat storedProduct as single source of truth for password
hichamboushaba Sep 19, 2024
cd298ee
Merge pull request #12615 from woocommerce/12550-woo-pos-orders-creat…
samiuelson Sep 19, 2024
39e1aea
Merge pull request #12635 from woocommerce/task/google-card-default-v…
JorgeMucientes Sep 19, 2024
0cb3a39
Update fluxc changeset
JorgeMucientes Sep 19, 2024
6c91e56
Merge branch 'trunk' into 12189-woo-pos-m2-hide-pos-mode-for-ineligib…
samiuelson Sep 19, 2024
abd7694
Merge branch 'trunk' into 12250-woo-pos-copy-woo-colors-to-our-custom…
backwardstruck Sep 19, 2024
4fe9d5e
New pos colors class
backwardstruck Sep 19, 2024
021bf5e
Use pos colors class
backwardstruck Sep 19, 2024
1b86b35
Something like this should work
backwardstruck Sep 19, 2024
da6fcff
Fix some colors
backwardstruck Sep 19, 2024
d5261b2
Add custom colors
backwardstruck Sep 19, 2024
180b85f
Use custom colors
backwardstruck Sep 19, 2024
3c6bb57
Clean up
backwardstruck Sep 19, 2024
63d0c67
Use correct colors
backwardstruck Sep 19, 2024
07ed86e
Add some comments
backwardstruck Sep 19, 2024
844d828
Restore black/white
backwardstruck Sep 19, 2024
3755618
Previous code for clarity
backwardstruck Sep 19, 2024
1880755
Fix some incorrect colors
backwardstruck Sep 19, 2024
fff02c2
Cleanup
backwardstruck Sep 19, 2024
48dfbc3
Cleanup comments
backwardstruck Sep 19, 2024
b810cc2
Grays
backwardstruck Sep 19, 2024
b5db37e
More colors
backwardstruck Sep 19, 2024
6afd5c6
Remove all hard coded hex values
backwardstruck Sep 19, 2024
347de09
Detekt
backwardstruck Sep 19, 2024
091dd88
Comments for clarity
backwardstruck Sep 19, 2024
4f25249
Detekt
backwardstruck Sep 19, 2024
90266e1
Detekt
backwardstruck Sep 19, 2024
8a2c1c4
Fix home background
backwardstruck Sep 19, 2024
d434516
Merge pull request #12580 from woocommerce/issue/12539-notification-t…
JorgeMucientes Sep 19, 2024
da1fdc8
Update fluxc changeset
JorgeMucientes Sep 19, 2024
51731ee
Merge branch 'trunk' into issue/update-wear-with-play-store-review-ch…
ThomazFB Sep 19, 2024
4cbfa75
Merge pull request #12634 from woocommerce/issue/update-wear-with-pla…
ThomazFB Sep 19, 2024
6771316
Write a failing test to ensure we have a bug - ConcurrentModification…
AnirudhBhat Sep 20, 2024
3634356
Add Synchronized annotation for removeNotificationByNotificationIdFro…
AnirudhBhat Sep 20, 2024
b0c1f65
Add Synchronized annotation for few other methods.
AnirudhBhat Sep 20, 2024
c63e0b0
Uncomment code changes
AnirudhBhat Sep 20, 2024
c0c13f6
Test name change
AnirudhBhat Sep 20, 2024
adb2e56
Add release notes
AnirudhBhat Sep 20, 2024
b07aafb
Merge pull request #12646 from woocommerce/issue/12636-concurrentmodi…
malinajirka Sep 20, 2024
a5b5f71
Merge branch 'trunk' into issue/12146-enable-for-jetpack-plugin
hichamboushaba Sep 20, 2024
8267e2b
Update fluxc changeset
JorgeMucientes Sep 20, 2024
692f475
Merge pull request #12640 from woocommerce/issue/12146-enable-for-jet…
JorgeMucientes Sep 20, 2024
e93a0bb
Merge branch 'refs/heads/trunk' into issue/12469-campaigns-objectives…
JorgeMucientes Sep 20, 2024
525e121
Merge pull request #12616 from woocommerce/issue/12469-campaigns-obje…
JorgeMucientes Sep 20, 2024
0e8113a
Clean up code
samiuelson Sep 20, 2024
d6c8879
Merge pull request #12641 from woocommerce/12189-woo-pos-m2-hide-pos-…
samiuelson Sep 20, 2024
e7d7879
Merge branch 'trunk' into 12556-woo-pos-design-products-screen-changes
backwardstruck Sep 20, 2024
e4b9c85
Remove fadein and fade out since it's not doing anything
backwardstruck Sep 19, 2024
3ca31c5
Formatting change
backwardstruck Sep 20, 2024
5e5b21e
Merge branch 'trunk' into 12250-woo-pos-copy-woo-colors-to-our-custom…
backwardstruck Sep 20, 2024
80e838b
Use app launcher icon as splash screen icon
ThomazFB Sep 17, 2024
70dec17
Shrink login error message size
ThomazFB Sep 18, 2024
c0c8920
Configure WearMainActivity config changes to avoid NavController refe…
ThomazFB Sep 18, 2024
47d968a
Update Wear release notes with new complications
ThomazFB Sep 20, 2024
0217a02
Bump version code to match latest Wear releases
ThomazFB Sep 20, 2024
560d654
Merge pull request #12649 from woocommerce/release/update-wear-releas…
ThomazFB Sep 20, 2024
867c7db
Update translations
wpmobilebot Sep 20, 2024
0047b43
Bump version number
wpmobilebot Sep 20, 2024
d1c8aa7
Update metadata translations for WooCommerce 20.4
wpmobilebot Sep 20, 2024
c4853f7
Update metadata translations for WooCommerce-Wear 20.4
wpmobilebot Sep 20, 2024
6dda23c
Remove non-Woo colors
backwardstruck Sep 20, 2024
df96ac6
Space these colors out a bit
backwardstruck Sep 20, 2024
3650826
Remove extra comments
backwardstruck Sep 20, 2024
88281c8
Add Woo colors
backwardstruck Sep 20, 2024
b9d489d
Merge pull request #12650 from woocommerce/merge/release-20.4-into-trunk
ThomazFB Sep 20, 2024
5fa3702
Bump version number
wpmobilebot Sep 20, 2024
c49bef7
Update draft release notes for 20.5.
wpmobilebot Sep 20, 2024
15006cc
Release Notes: add new section for next version (20.6)
wpmobilebot Sep 20, 2024
06bfec2
Merge branch 'trunk' into 12250-woo-pos-copy-woo-colors-to-our-custom…
backwardstruck Sep 20, 2024
559883d
Update FluxC version
ThomazFB Sep 20, 2024
1ce7452
Update default.txt file with Release Notes
ThomazFB Sep 20, 2024
c3a3104
Update CHANGELOG.md with release notes
ThomazFB Sep 20, 2024
40a1b56
Merge pull request #12652 from woocommerce/release/20.5-release-notes
ThomazFB Sep 20, 2024
8f0255e
Update `PlayStoreStrings.po` for 20.5
wpmobilebot Sep 20, 2024
c49f58d
Freeze strings for translation
wpmobilebot Sep 20, 2024
f7a50f4
Merge pull request #12653 from woocommerce/merge/release-20.5-into-trunk
ThomazFB Sep 20, 2024
98a2533
Merge branch 'trunk' into 12556-woo-pos-design-products-screen-changes
backwardstruck Sep 21, 2024
1212943
Merge pull request #12557 from woocommerce/12556-woo-pos-design-produ…
backwardstruck Sep 21, 2024
8323b7c
Merge pull request #12645 from woocommerce/lint_security_checks
wzieba Sep 23, 2024
f6f4a56
Bump CI toolkit to 3.7.1
wzieba Sep 23, 2024
59a68a4
Merge pull request #12663 from woocommerce/bump_ci_toolkit_3_7_1
wzieba Sep 23, 2024
99025da
Merge branch 'trunk' into 12250-woo-pos-copy-woo-colors-to-our-custom…
backwardstruck Sep 23, 2024
ed2cf06
Remove all code related to Blaze remote feature flag
JorgeMucientes Sep 23, 2024
56ade40
Merge branch 'trunk' into 12250-woo-pos-copy-woo-colors-to-our-custom…
backwardstruck Sep 23, 2024
b983034
Remove comments after PR review
backwardstruck Sep 23, 2024
59e50cf
Don't need this color
backwardstruck Sep 23, 2024
883cbf9
Merge remote-tracking branch 'origin/12250-woo-pos-copy-woo-colors-to…
backwardstruck Sep 23, 2024
201f121
Removed the wrong color
backwardstruck Sep 23, 2024
56404b5
Merge pull request #12275 from woocommerce/12250-woo-pos-copy-woo-col…
backwardstruck Sep 23, 2024
42c785c
Bump fluxc
hichamboushaba Sep 24, 2024
c7d4c7a
Merge branch 'trunk' into issue/12638-product-password-rest
hichamboushaba Sep 24, 2024
8ba734c
Move release note to the correct version
hichamboushaba Sep 24, 2024
9ac4db9
Merge pull request #12644 from woocommerce/issue/12562-missing-impres…
hichamboushaba Sep 24, 2024
bae5c37
Merge pull request #12669 from woocommerce/issue/12668-clean-blaze-re…
hichamboushaba Sep 24, 2024
526a54d
Fix unit tests
hichamboushaba Sep 24, 2024
3d6cab5
Merge pull request #12642 from woocommerce/issue/12638-product-passwo…
hichamboushaba Sep 24, 2024
8227728
Add ability to make the expandable top banner as expanded by default
hichamboushaba Sep 25, 2024
6a5e7c7
Make the top banner of custom fields expanded by default
hichamboushaba Sep 25, 2024
cdf6e5b
Merge pull request #12601 from woocommerce/issue/12597-custom-fields-…
hichamboushaba Sep 25, 2024
7fd1205
Add test to verify Products screen is displayed when POS mode is ente…
AnirudhBhat Sep 26, 2024
7da9cb7
Remove unused import
AnirudhBhat Sep 26, 2024
f6a7abb
Add test tag for each of the cart item
AnirudhBhat Sep 26, 2024
469f597
Add test tag for each of the product item
AnirudhBhat Sep 26, 2024
089f9cf
Add test to verify that the cart wil be empty initially and then when…
AnirudhBhat Sep 26, 2024
a8242a5
Add test to verify that the checkout button is not displayed when the…
AnirudhBhat Sep 26, 2024
597a872
Add test to verify that the checkout button is displayed when the car…
AnirudhBhat Sep 26, 2024
b58625d
Remove unused imports
AnirudhBhat Sep 26, 2024
2c0eb52
Add test to verify that the checkout button is not displayed when the…
AnirudhBhat Sep 26, 2024
b7cc385
Rename test name for better understanding
AnirudhBhat Sep 26, 2024
55ec979
Add test to verify cart removal functionality works fine.
AnirudhBhat Sep 26, 2024
f344e10
Add test to verify clicking on checkout button hides product screen
AnirudhBhat Sep 26, 2024
399e665
Add test to verify checkout button is not displayed when we move to t…
AnirudhBhat Sep 26, 2024
a360a64
Add test tag for the totals screen
AnirudhBhat Sep 26, 2024
395b344
Add test to verify totals screen is displayed when the checkout butto…
AnirudhBhat Sep 26, 2024
3233b92
Add test to verify Collect payment button is displayed in totals scre…
AnirudhBhat Sep 26, 2024
18c91e0
Fix detekt errors
AnirudhBhat Sep 26, 2024
d8a8bb3
Remove unnecessary test
AnirudhBhat Sep 27, 2024
08af8ef
Fix failing test
AnirudhBhat Sep 27, 2024
4194b44
Use real API test data for tests
AnirudhBhat Sep 27, 2024
bc77616
Fix test failure
AnirudhBhat Sep 27, 2024
6ef3406
Revert back changes as it looks like UI test do not use real api test…
AnirudhBhat Sep 27, 2024
c9e8af4
Merge branch 'refs/heads/trunk' into issue/12702-ui-tests-product-scr…
AnirudhBhat Sep 30, 2024
4a5573e
Fix test tag
AnirudhBhat Oct 1, 2024
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
18 changes: 18 additions & 0 deletions .buildkite/commands/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash -u

echo "--- 🧹 Linting"
cp gradle.properties-example gradle.properties
./gradlew :WooCommerce:lintJalapenoDebug
app_lint_exit_code=$?

./gradlew :WooCommerce-Wear:lintJalapenoDebug
wear_lint_exit_code=$?

lint_exit_code=0
if [ $app_lint_exit_code -ne 0 ] || [ $wear_lint_exit_code -ne 0 ]; then
lint_exit_code=1
fi

upload_sarif_to_github 'WooCommerce/build/reports/lint-results-jalapenoDebug.sarif'

exit $lint_exit_code
5 changes: 1 addition & 4 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ steps:
- "**/build/reports/detekt/detekt.html"

- label: "lint"
command: |
echo "--- 🧹 Linting"
cp gradle.properties-example gradle.properties
./gradlew lintJalapenoDebug
command: .buildkite/commands/lint.sh
plugins: [$CI_TOOLKIT]
artifact_paths:
- "**/build/reports/lint-results*.*"
Expand Down
4 changes: 4 additions & 0 deletions .buildkite/release-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ steps:
plugins: [$CI_TOOLKIT]
notify:
- slack: "#build-and-ship"
retry:
manual:
# If those jobs fail, one should always prefer re-triggering a new build from ReleaseV2 rather than retrying the individual job from Buildkite
allowed: false

- label: "🛠 Release Build (Wear App)"
command: |
Expand Down
7 changes: 4 additions & 3 deletions .buildkite/release-pipelines/new-hotfix-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
---

steps:
- input: "What version code do you want to use for the new hotfix release?"
- block: "What version code do you want to use for the new hotfix release?"
fields:
- text: "Version Code"
key: "version_code"
Expand All @@ -16,11 +16,12 @@ steps:
echo '--- :ruby: Setup Ruby Tools'
install_gems

# Get the version code from the Buildkite 'input' step
# Get the version code from the Buildkite 'block' step
VERSION_CODE=$(buildkite-agent meta-data get version_code)

echo '--- :fire: Start New Hotfix Release'
bundle exec fastlane new_hotfix_release version_name:${VERSION} version_code:${VERSION_CODE} skip_confirm:true
# Note: we need to double the dollar sign in front of `{VERSION_CODE}` below, so that the env var is interpreted *at runtime*, instead of too soon during `pipeline upload`
bundle exec fastlane new_hotfix_release version_name:$${VERSION} version_code:$${VERSION_CODE} skip_confirm:true
agents:
queue: "tumblr-metal"
retry:
Expand Down
22 changes: 22 additions & 0 deletions .buildkite/release-pipelines/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
steps:
- label: "Publish Release"
plugins:
- $CI_TOOLKIT
command: |
echo '--- :robot_face: Use bot for git operations'
source use-bot-for-git

echo '--- :git: Checkout Release Branch'
.buildkite/commands/checkout-release-branch.sh

echo '--- :ruby: Setup Ruby Tools'
install_gems

echo '--- :package: Publish Release'
bundle exec fastlane publish_release skip_confirm:true include_wear_app:"${INCLUDE_WEAR_APP:-false}"
agents:
queue: "tumblr-metal"
retry:
manual:
# If those jobs fail, one should always prefer re-triggering a new build from ReleaseV2 rather than retrying the individual job from Buildkite
allowed: false
9 changes: 5 additions & 4 deletions .buildkite/shared-pipeline-vars
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/sh

# This file is `source`'d before calling `buildkite-agent pipeline upload`, and can be used
# to set up some variables that will be interpolated in the `.yml` pipeline before uploading it.
# This file is `source`'d before calling `buildkite-agent pipeline upload`, and can be used
# to set up some variables that will be interpolated in the `.yml` pipeline before uploading it.

export CI_TOOLKIT="automattic/a8c-ci-toolkit#3.7.1"
export TEST_COLLECTOR="test-collector#v1.10.1"

export CI_TOOLKIT="automattic/a8c-ci-toolkit#3.5.1"
export TEST_COLLECTOR="test-collector#v1.10.1"
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
<!--
Contains editorialized release notes. Raw release notes should go into `RELEASE-NOTES.txt`.
-->
## 20.5
We’re excited to bring you a smoother experience with our latest update! We've resolved an issue that prevented renaming Product Variation Attributes and fixed a bug related to notification removal. Plus, users can now easily select product images when creating Blaze ads, and the Blaze feature is now fully enabled for sites with the Blaze for WooCommerce plugin active. Enjoy the improvements!

## 20.4
We've enhanced your WooCommerce app experience! You can now effortlessly scan tracking numbers when adding them to orders. Plus, we've fixed an issue with shipping labels, ensuring accurate weight calculations for packages with multiple items. Enjoy a smoother, more reliable app experience!

## 20.3
We’ve made several enhancements to boost your experience! This update fixes crashes on the orders list screen, resolves issues with the Jetpack plugin installation, and corrects toolbar glitches in the Package details and Order Tracking screens. We’ve also added a helpful blaze campaign reminder if you leave a campaign creation unfinished. Enjoy smoother navigation and a more reliable app!

## 20.2
Create Blaze Evergreen campaigns effortlessly with our latest update! We've also improved tablet navigation—now you'll be redirected to the order details screen after payment for a smoother experience. Update today and enjoy the enhancements!

## 20.1
We've improved your experience with our latest update! We've resolved the issue where the Orders screen would get stuck, addressed incorrect pin errors for UK and Canadian stores, fixed a rare crash in order editing, and enhanced usability on small screens. Enjoy smoother performance and better reliability!

Expand Down
10 changes: 8 additions & 2 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
github.dismiss_out_of_range_messages

# `files: []` forces rubocop to scan all files, not just the ones modified in the PR
# Prevent RuboCop from running using `bundle exec`, which we don't want on the linter agent
# `skip_bundle_exec` prevents RuboCop from running using `bundle exec`, which we don't want on the linter agent
rubocop.lint(files: [], force_exclusion: true, inline_comment: true, fail_on_inline_comment: true, include_cop_names: true, skip_bundle_exec: true)

manifest_pr_checker.check_gemfile_lock_updated
Expand Down Expand Up @@ -54,4 +54,10 @@ labels_checker.check(
)

# runs the milestone check if this is not a WIP feature and the PR is against the main branch or the release branch
milestone_checker.check_milestone_due_date(days_before_due: 2) if (github_utils.main_branch? || github_utils.release_branch?) && !github_utils.wip_feature?
if (github_utils.main_branch? || github_utils.release_branch?) && !github_utils.wip_feature?
report_type = github.pr_labels.include?('milestone-not-required') || github.pr_labels.include?('status: feature-flagged') ? :message : :error
milestone_checker.check_milestone_due_date(
days_before_due: 2,
report_type_if_no_milestone: report_type
)
end
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ source 'https://rubygems.org'
gem 'danger-dangermattic', '~> 1.1'
gem 'fastlane', '~> 2.216'
gem 'nokogiri'
gem 'rubocop', '~> 1.60'
gem 'rubocop', '~> 1.65'

### Fastlane Plugins

gem 'fastlane-plugin-wpmreleasetoolkit', '~> 11.0'
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 12.0'
# gem 'fastlane-plugin-wpmreleasetoolkit', path: '../../release-toolkit'
# gem 'fastlane-plugin-wpmreleasetoolkit', git: 'https://github.com/wordpress-mobile/release-toolkit', branch: ''

Expand Down
32 changes: 17 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ GEM
base64
nkf
rexml
activesupport (7.1.3.4)
activesupport (7.2.1)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
artifactory (3.0.17)
Expand Down Expand Up @@ -51,7 +52,7 @@ GEM
colored2 (3.1.2)
commander (4.6.0)
highline (~> 2.0.0)
concurrent-ruby (1.3.3)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
cork (0.3.0)
colored2 (~> 3.1)
Expand Down Expand Up @@ -158,7 +159,7 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
fastlane-plugin-wpmreleasetoolkit (11.1.0)
fastlane-plugin-wpmreleasetoolkit (12.0.0)
activesupport (>= 6.1.7.1)
buildkit (~> 1.5)
chroma (= 0.2.0)
Expand All @@ -167,7 +168,7 @@ GEM
git (~> 1.3)
google-cloud-storage (~> 1.31)
java-properties (~> 0.3.0)
nokogiri (~> 1.11, < 1.17)
nokogiri (~> 1.11)
octokit (~> 6.1)
parallel (~> 1.14)
plist (~> 3.1)
Expand Down Expand Up @@ -231,13 +232,13 @@ GEM
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
language_server-protocol (3.17.0.3)
logger (1.6.1)
mini_magick (4.13.2)
mini_mime (1.1.5)
mini_portile2 (2.8.7)
minitest (5.24.1)
minitest (5.25.1)
multi_json (1.15.0)
multipart-post (2.4.1)
mutex_m (0.2.0)
nanaimo (0.3.0)
nap (1.1.0)
naturally (2.2.1)
Expand All @@ -252,8 +253,8 @@ GEM
options (2.3.2)
optparse (0.5.0)
os (1.1.4)
parallel (1.25.1)
parser (3.3.4.1)
parallel (1.26.3)
parser (3.3.4.2)
ast (~> 2.4.1)
racc
plist (3.7.1)
Expand All @@ -273,7 +274,7 @@ GEM
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rexml (3.3.4)
rexml (3.3.6)
strscan
rmagick (4.3.0)
rouge (2.0.7)
Expand All @@ -288,14 +289,15 @@ GEM
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.32.0)
rubocop-ast (1.32.1)
parser (>= 3.3.1.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (>= 0.17.3, < 3)
securerandom (0.3.1)
security (0.1.5)
signet (0.19.0)
addressable (~> 2.8)
Expand Down Expand Up @@ -337,10 +339,10 @@ PLATFORMS
DEPENDENCIES
danger-dangermattic (~> 1.1)
fastlane (~> 2.216)
fastlane-plugin-wpmreleasetoolkit (~> 11.0)
fastlane-plugin-wpmreleasetoolkit (~> 12.0)
nokogiri
rmagick (~> 4.1)
rubocop (~> 1.60)
rubocop (~> 1.65)

BUNDLED WITH
2.4.19
35 changes: 34 additions & 1 deletion RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,43 @@
*** Use [*****] to indicate smoke tests of all critical flows should be run on the final APK before release (e.g. major library or targetSdk updates).
*** For entries which are touching the Android Wear app's, start entry with `[WEAR]` too.

20.6
-----
- [*] Users can set a password to protect products when signed in using site credentials (compatible with WooCommerce 8.1.0 and higher) [https://github.com/woocommerce/woocommerce-android/pull/12642]

20.5
-----
- [*] Fixes a bug that prevented users to rename the Product Variation Attributes to because of case insensitive checks [https://github.com/woocommerce/woocommerce-android/pull/12608]
- [*] Users can directly pick product images when creating Blaze ads [https://github.com/woocommerce/woocommerce-android/pull/12610]
- [*] Enables Blaze feature for sites with Blaze for WooCommerce plugin installed and active [https://github.com/woocommerce/woocommerce-android/pull/12640]
- [*] Fix for ConcurrentModificationException while removing notification [https://github.com/woocommerce/woocommerce-android/pull/12646]

20.4
-----
- [**] Users can now scan their tracking number when adding it to the order [https://github.com/woocommerce/woocommerce-android/pull/12533]
- [*] Fixed an issue where shipping labels were incorrectly calculating the weight for packages containing multiple quantities of the same product [https://github.com/woocommerce/woocommerce-android/pull/12602]
- [**] [WEAR] Introduces three new complications for the Wear app: Orders Total, Orders Count, and Visitors [https://github.com/woocommerce/woocommerce-android/pull/12558]

20.3
-----
- [**] Stopped potential crash in the orders list screen when tapping "Filters" button [https://github.com/woocommerce/woocommerce-android/pull/12482]
- [**] Fixed a bug that caused the app to freeze after adding products to new order [https://github.com/woocommerce/woocommerce-android/pull/12493]
- [*] Fixes error when installing Jetpack plugin from the app [https://github.com/woocommerce/woocommerce-android/issues/12364]
- [*] [Internal] Updated the Compose WebView component to handle choosing files from the device when the web page requests it [https://github.com/woocommerce/woocommerce-android/pull/12499]
- [*] Fixes toolbar shown twice on Package details screen while adding shipping label [https://github.com/woocommerce/woocommerce-android/pull/12489]
- [*] Fixes navigation from product review detail screen when opened from notification [https://github.com/woocommerce/woocommerce-android/pull/12514]
- [*] Added a blaze campaign reminder that appears after abandoning a campaign creation. [https://github.com/woocommerce/woocommerce-android/pull/12452]
- [**] [Internal] Fix a crash during JITM cache initialisation
- [*] Fixes an issue that caused the an incorrect App Bar visibility in some rare cases [https://github.com/woocommerce/woocommerce-android/pull/12523]
- [*] Fixes duplicated toolbar in the Order Tracking Carriers List [https://github.com/woocommerce/woocommerce-android/pull/12537]
- [*] Fixes an issue on the Order Tracking screen that was causing the carrier being reset unintentionally [https://github.com/woocommerce/woocommerce-android/pull/12535]

20.2
-----
- [**] Fixed navigation in tablet mode: after order is paid, the app should redirect to order details screen. [https://github.com/woocommerce/woocommerce-android/pull/12415]
- [*] Show the back button on the Order Edit Screen for phones [https://github.com/woocommerce/woocommerce-android/pull/12421]

- [**] Enables support to create Blaze Evergreen campaigns [https://github.com/woocommerce/woocommerce-android/issues/12176]
- [*] Fixed a bug that caused the button "Open Mail" to not work during Magic Link login [https://github.com/woocommerce/woocommerce-android/pull/12486]

20.1
-----
Expand All @@ -16,6 +48,7 @@
- [*] [Internal] Fixed an issue with date formatting for the Blaze campaign creation API request [https://github.com/woocommerce/woocommerce-android/pull/12372]
- [*] Fixed a rare crash in the order editing screen. [https://github.com/woocommerce/woocommerce-android/pull/12382]
- [*] Fixed the blaze budget screens that are unusable on small screens. [https://github.com/woocommerce/woocommerce-android/pull/12402]
- [**] Fixed navigation on "Collect payment" button tap in order creation flow [https://github.com/woocommerce/woocommerce-android/pull/12436]

20.0
-----
Expand Down
1 change: 1 addition & 0 deletions WooCommerce-Wear/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ dependencies {
// See https://github.com/wordpress-mobile/WordPress-FluxC-Android/issues/919
exclude group: 'com.squareup.okhttp3'
}
lintChecks "com.android.security.lint:lint:$securityLintVersion"
}

def checkGradlePropertiesFile() {
Expand Down
Loading
Loading