Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
2.97k stars 2.48k forks source link

fix: fix validation for split bill #40868

Closed koko57 closed 1 week ago

koko57 commented 1 week ago

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/40756 $ https://github.com/Expensify/App/issues/40749 PROPOSAL:

Tests

Merchant Error

  1. Go to FAB > Split expense > Scan.
  2. Create split scan expense with a few users.
  3. In the group chat, click on the split preview.
  4. Click Split expense.
  5. Click Split expense again.
  6. Verify that there will be no error under Merchant field because Merchant is not a requirement for non-workspace expense.

Amount Error

  1. Go to FAB > Split expense > Scan.
  2. Create a split scan expense with a workspace.
  3. When the expense is scanning, click on the split preview.
  4. Click Split expense.
  5. Verify that an error will show up for the missing amount.

Offline tests

n/a

QA Steps

Merchant Error

  1. Go to FAB > Split expense > Scan.
  2. Create split scan expense with a few users.
  3. In the group chat, click on the split preview.
  4. Click Split expense.
  5. Click Split expense again.
  6. Verify that there will be no error under Merchant field because Merchant is not a requirement for non-workspace expense.

Amount Error

  1. Go to FAB > Split expense > Scan.
  2. Create a split scan expense with a workspace.
  3. When the expense is scanning, click on the split preview.
  4. Click Split expense.
  5. Verify that an error will show up for the missing amount.

PR Author Checklist

Screenshots/Videos

Android: Native having problems with building the project on android now
Android: mWeb Chrome https://github.com/Expensify/App/assets/28020445/6746fed2-ad18-4355-9e05-6d891be7103e https://github.com/Expensify/App/assets/28020445/7e6d67a6-c01f-42f9-a11b-809aedc42398
iOS: Native https://github.com/Expensify/App/assets/28020445/ed3ac6a7-cda0-4718-b503-905c97bb89e1 https://github.com/Expensify/App/assets/28020445/b785e49d-d253-4436-8817-c4e4f38ea1c1
iOS: mWeb Safari https://github.com/Expensify/App/assets/28020445/04d3cdab-b45d-404c-a4d8-aec61a08d438 https://github.com/Expensify/App/assets/28020445/b765be27-4585-45ee-a078-4e4fe0b6c647
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/28020445/4715c31e-4117-4a6f-b3a4-947be0fc7abb https://github.com/Expensify/App/assets/28020445/1cb52609-3f9f-4155-8b8a-097185a7e59a
MacOS: Desktop https://github.com/Expensify/App/assets/28020445/1027722c-0c68-4f27-aa53-24f247114eee
melvin-bot[bot] commented 1 week ago

@Ollyws Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

mountiny commented 1 week ago

What is your ETA for the review here? @Ollyws

Ollyws commented 1 week ago

Will review now.

Ollyws commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/11609254/b8825602-5969-42e6-8fdb-d1e1e6f8b1da https://github.com/Expensify/App/assets/11609254/a0fb7640-416b-43ca-8d7d-bce0b5b1b8c7
Android: mWeb Chrome https://github.com/Expensify/App/assets/11609254/3d14c5f6-6b54-49e8-9e5d-beb49e2db768 https://github.com/Expensify/App/assets/11609254/6b151dcf-c043-495c-87a0-b9fe003b0c51
iOS: Native https://github.com/Expensify/App/assets/11609254/fea2969e-4527-41c0-801a-87f757cd886f https://github.com/Expensify/App/assets/11609254/94cd0595-286a-4e96-8f7b-4dd5dc794703
iOS: mWeb Safari https://github.com/Expensify/App/assets/11609254/f057aa23-db0b-4e23-bd83-e2d81f2b144e https://github.com/Expensify/App/assets/11609254/e2769309-a5f8-45bd-8a8c-d7f9984d156c
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/11609254/d9fcc926-3657-47d2-88af-6c59f3b87473 https://github.com/Expensify/App/assets/11609254/628fcfe8-5279-449b-953e-707dec02d1ee
MacOS: Desktop https://github.com/Expensify/App/assets/11609254/af072588-6437-45d8-a6e0-c0427991a493 https://github.com/Expensify/App/assets/11609254/042ce374-ea7a-4ffc-9895-3964bbcb461c
OSBotify commented 1 week ago

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

OSBotify commented 1 week ago

πŸš€ Deployed to staging by https://github.com/robertjchen in version: 1.4.67-0 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…
OSBotify commented 6 days ago

πŸš€ Deployed to production by https://github.com/francoisl in version: 1.4.67-7 πŸš€

platform result
πŸ€– android πŸ€– failure ❌
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…
OSBotify commented 6 days ago

πŸš€ Deployed to production by https://github.com/francoisl in version: 1.4.67-7 πŸš€

platform result
πŸ€– android πŸ€– failure ❌
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ