LabLamb / KalKa-iOS

An iOS app that helps internet stores to manage their sales.
https://apps.apple.com/app/kalka/id1500412773
MIT License
2 stars 1 forks source link

Add UI Test #64

Open LabLamb opened 4 years ago

LabLamb commented 4 years ago

What to implement

UI Test for each screen

How to implement

XCUITest

LabLamb commented 4 years ago

New Customer

Input Avatar

Steps

1. Click **Customer TabBar Button** 1. Click **+** 1. Store **Avatar Image** 1. Click **Avatar** 1. Click **Cancel** 1. Click **Avatar** 1. Click **Camera roll** 1. Click **First cell** 1. Click **First item** 1. Click **Cancel** 1. Click **First item** 1. Click **Choose** 1. Compare NOT equal **Avatar Image** 1. Store **Avatar Image** 1. Click **Avatar** 1. Click **Remove** 1. Compare NOT equal **Avatar Image**

Input other fields

Steps

1. Click **Customer TabBar Button** 1. Click **+** 1. Click **Name Field** 1. Keyboard Input **"Sam"** 1. Click **Done** 1. Click **Phone** 1. Keyboard Input **"91238123"** 1. Click **Done** 1. Click **Address** 1. Keyboard Input **"11/F 82 Ducan Street, Tung Chung, Hong Kong"** 1. Click **Done** 1. Click **Remark** 1. Keyboard Input **"VIP Client"** 1. Click **Done** 1. Click **"Last Contact"** 1. Move DateInput to **2012-12-12** 1. Click **Done** 1. Check static texts exists **[Sam, 91238123, 11/F 82 Ducan Street, Tung Chung, Hong Kong, VIP Client,2012-12-12]**

Empty customer name fail

Steps

1. Click **Customer TabBar Button** 1. Click **+** 1. Click **Save** 1. Check exists **AlertController** 1. Click **OK** 1. Check exists **Caution emoji**

Existing customer name fail

Steps

1. _**Input other fields**_ 1. Click **Save** 1. _**Input other fields**_ again 1. Click **Save** 1. Check exists **AlertController** 1. Click **OK**

Check Save full details

Steps

1. Check NOT exists **First Cell** 1. Click **Customer TabBar Button** 1. Click **+** 1. Store **Avatar Image** 1. Click **Avatar** 1. Click **Cancel** 1. Click **Avatar** 1. Click **Camera roll** 1. Click **First cell** 1. Click **First item** 1. Click **Cancel** 1. Click **First item** 1. Click **Choose** 1. Compare **Avatar Image** 1. Store **Avatar Image** 1. **_Input other fields_** 1. Click **Save** 1. Check exists **First Cell** 1. Check static texts exists **[Sam, 91238123]** 1. Check image exists **AvatarImage**

Check Search Works

Steps

1. **_Check Save full details_** 1. Check exists _**First Cell**_ 1. Store all static texts **_labels_** 1. Check exists **_Search bar_** 1. _Loop_ - Click **_Search bar_** 1. _Loop_ - Keyboard Input static texts in _**Search bar**_ 1. _Loop_ - Check exists _**First Cell**_ 1. Keyboard Input **_random generated unique text_** 1. Check NOT exists _**First Cell**_ 1. Keyboard Input **_random ANOTHER generated unique text_** 1. Check NOT exists _**First Cell**_