Code Monkey home page Code Monkey logo

gzais's Introduction

Global Zeal Asset Inventory System ( Client Side App )

Getting Started


  • Fork this repository to get your own copy

  • Download source

    • $ git clone <your-fork-of-this-repo>

    • $ git checkout -b develop -f origin/develop

  • Install dependencies

    • $ npm install -g mocha mocha-phantomjs phantomjs yo

    • and then $ npm install && bower install

  • Run with $ grunt server

  • And test with $ grunt test --force and then $ mocha-phantomjs http://localhost:9001/index.html

Start Working


Now write your test and implementation and push to your remote branch develop and file pull request when it's all green.

Cheers,

Elizar

gzais's People

Contributors

penzur avatar wayuk avatar xanderdwyl avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gzais's Issues

"ID1195 Assign Item Notification"

2 "Given that the admin/property custodian saved a newly assigned item to a specific user
When the admin/property custodian have successfully assigned item to a specific user
Then email notification should be sent to the registered email of that specific user"
3 "Given that the admin/property custodian have successfully assigned item to a specific user
When the user (Ordinary employee, Property Custodian, Admin) checks email
Then email notification should be received containing the following information:

Email Subject: AIS: New Assigned Item

Asset , Serial # has been assigned to .
To view asset details, please login to .

Assigned by: <Name of Admin/Property Custodian>
Date Assigned: <Date in MM/DD/YY format>

Note: This is a system-generated email. Please do not reply.
-------------------------------------------------------------------------------------------"

ID1093 Reports

"As property custodian, I should be able to view the following reports:

  • Summary of items with list of assigned employees and exportable to CSV and PDF form.
  • Summary of functioning and non-functioning items and exportable in CSV and PDF form."

1 "Given that the admin/property custodian wants to generate inventory report
When the admin/property custodian clicks ""Inventory Reports"" tab
Then 2 tables for summary of items should be displayed

Table 1: List of Items
-Item Type
-Item Name
-Item Description
-Serial Number
-Date Purchased
-Supplier
-Reason for Purchase
-Status

  • Assign to

Table 2: List of working/defective items
-Item Type
-Item Name
-Status"
2 "Given that the admin/property clicks ""Inventory Reports"" tab
When the admin/property custodian selected/clicks ""Export To"" option
Then the following selection should be displayed:

  • CSV format
  • PDF format

"
3 "Given that the admin/property wants to generate report in CSV format
When the admin/property custodian selected/clicks ""CSV"" format option
Then report in CSV format should be downloaded automatically

"
4 "Given that the admin/property wants to generate report in PDF format
When the admin/property custodian selected/clicks ""PDF"" format option
Then inventory reports in PDF format should be downloaded automatically

"
5 "Given that the admin/property custodian generated inventory reports successfully
When the admin/property custodian view the downloaded inventory reports
Then inventory reports should be in CSV or PDF form with correct format and values based on AIS Inventory Report
"
6 "Given that ordinary employee logged in to AIS
When the ordinary employee succesfully logged in
Then the ordinary employee should not be able to view ""Inventory Reports"" tab"

ID1507-List Of Assigned Items

1 "Given that an ordinary employee logged in to AMS
When the ordinary employee logged in successfully to the system
Then ""Assets"" tab > ""Manage Assets"" list (with specific asset assigned) should be displayed as the home page
"
2 "Given that admin/property custodian logged in to AMS
When the admin/property custodian logged in successfully to the system
Then ""Assets"" tab > ""Manage Assets"" list with dropdown menu should be displayed as home page

Note:

  • Items (assign/unassigned) are displayed by default.
  • ""View All Assets"" option is selected by default.
    "
    3 "Given that admin/property custodian logged in to AMS
    When the admin/property clicks view my items button
    Then ""Manage Assets"" list (with specific assets assigned) should be displayed

"
4 "Given that admin/property custodian logged in successfully to the system
When the admin/property custodian selected ""View Assigned Assets""
Then all assigned assets with specific user should be displayed in ""Manage Assets"" list

"
5 "Given that admin/property custodian logged in successfully to the system
When the admin/property custodian selected ""View Unassigned Assets""
Then all not assigned assets should be displayed in ""Manage Assets"" list

"
6 "For bugfix:

ID1510 - Defect: All registered items are duplicated when ""Delete"" key in keyboard is pressed"
7 "For bugfix:

ID1512 - Defect: Unable to display ""Manage Assets"" list as home page"

1509 User Management Forgot Password Project

1 "Given that the user forgot his password

When the user click the forgot password link

Then the user is prompted that his/her password is emailed to his/her email"
2 "Given that the user forgot his password and entered an email that is not existing

When the user click the forgot password link

Then a tooltip or prompt is displayed saying that the email he/she entered is not an existing account"
3 "Given that the user forgot his/her password

When the user clicks the forgot password link

Then email notification should be received containing the following information:


Hi ,

We have received a report that you have forgot your password.
Your Password is: teamWayukIsAwesome

Thank you.

This is a system-generated email. Please do not reply.
-------------------------------------------------------------------------------------------"

ID1505-Edit Item

1 "Given that the admin/property wants to edit an item
When the admin/property clicks the edit link
Then these fields should be enabled/editable:

  • Item Type
  • Item Name
  • Item Description
  • Serial Number
  • Date Purchased
  • Item Supplier
  • Address of Supplier
  • Contact Number of Supplier
  • Reason for Purchase
  • Status (dropdown menu)"
    2 "Given that the admin/property wants to edit an item
    When the admin/property clicks the edit option
    Then input fields should follow proper validation and limitation of text input in each field

"
3 "Given that the admin/property custodian wants to save an edited item information
When the admin clicks the save button
Then new information should be saved"
4 "Given that the admin/property custodian wants to cancel an edited item information
When the admin clicks the cancel button
Then ""Manage Assets"" list should be displayed"
5 "Given that the admin/property custodian successfully save the new item information
When the admin/property custodian selects/clicks ""View Details"" option for a specific item
Then new information should be displayed."
6 "Should created route for ""View item details""
Route: Assets/ID
"

ID1498 - Reset Password

1 "Given that the admin wants to reset password of a user

When the admin clicks the reset password link

Then a prompt should be displayed confirming if the admin wants to reset the password of a specific user"
2 "Given that the user logged in as admin
When the admin decides to reset password of a certain user and confirms (Yes) to reset password
Then new password should be sent to user’s email"
3 "Given that the user logged in as admin
When the admin decides to reset password of a certain user, however, decline (No) to reset password
Then password should not be reset"
4 "Given that the admin/property custodian wants to reset a password of a specific user

When the admin/property custodians resets the password of the user

Then email notification should be received containing the following information:


Hi ,

Your Password has just been reset.
Your new login password: KJSJDASEWE

Thank you.

This is a system-generated email. Please do not reply.
-------------------------------------------------------------------------------------------"

1513 Defect: User Management Newly added user displays NaN values in User List

Steps to replicate:

  1. Add a user with valid input. Use email [email protected]
  2. Add another user with valid input and use the same email ([email protected])
  3. The newly added user values will be displayed as NaN (See screenshot)

Another step to replicate:

  1. Add a user with all valid input except the date
  2. Edit the date and include a letter in the date. For example: 11/12/2013 to 11/12/201A
  3. The newly added user values will be displayed as NaN (See screenshot)
    I think we should adjust the calendar that the textfield should be un-editable. But when the user clicks the date field, the date picker drop down should display

ID1500 User Management View User

1 "Given that the Admin/property custodian access the Detailed view of users

When the Admin/property custodian viewed the Detailed view of users

Then list of users should display the following information (in tabular form):

  • First Name
  • Middle Name
  • Last Name
  • Address
  • Date of Birth
  • Gender
  • User Role
  • Date Employed
  • Email
  • Assets
  • Edit (Button)"
    2 "Given that the Admin/ Property want’s to view the assets of a specific user

When the Admin/Property views the Assets Table

Then the table should display the:

  • Status
  • Item Name
  • Date Purchased
  • Serial Number"
    3 "Given the Admin/Property Custodian want's to edit a user

When the Admin/Property Custodian clicks the edit button

Then the Edit User form should be displayed (Same as the Edit User user story)"
4 Should create user route for specific user when viewing user profile example: http://gzais.herokuapp.com/employees/ID

ID1499 User Management Change Password

1 "Given that the user wants to change password

When the user has pressed the change password
button

then change password form should appear"
2 "Given that the user wants to change password

When the users sees the change password form

Then the change password form should display:
Old Password:
New Password:
Confirm New Password:
Save (Button)"
3 "Given that the user wants to change his/her password

When the user change his/her password

Then the user must follow this format:
contain at least 6 characters
"
4 "Given that the user wants to change his/her password

When the user does not follow the password format

Then the UI should display a tooltip regarding the proper password format to follow
"

"ID1506 Assign Item "

1 "Given that the admin/property wants to assign an item
When the admin/property clicks the assign option
Then assign item form should be displayed with the following fields:

(Editable list of users (pop-over))

  • Assign to (Name format: Firstname+Lastname e.g Carter Binarao)

*Note:

  • Automatic save for asset assignee
  • List of assigned item should be updated with new assignee"
    2 "Given that the admin/property wants to assign an item
    When the admin/property clicks the assign option
    Then admin/property should be able to assign item to the registered user in AIS"
    3 "Given that the admin/property custodian wants to save a newly assigned item
    When the admin/property custodian have successfully assigned item to a specific user
    Then email notification should be sent to the registered email of that specific user

*Note: Automatic email notification should be sent"
4 "Given that the admin/property custodian wants to cancel assign item form
When the admin/property custodian clicks outside pop-over/ hit esc
Then the item should not be assigned to a specific system user and ""Manage Assets"" list should be displayed"

ID1495 User Management Add User

1 "Given that the admin wants to add a user

When the admin clicks the add button

Then these fields should be seen in the add user form:
First Name
MIddle Name
Last Name
Email address
User Role
DateOfBirth
address
Gender
DateEmployed"
2 "Given that the admin wants to add a user

When the admin clicks the add user button

Then fields should still follow proper validation and limitation of text input in each field
-First Name (30 characters)
-Middle Name (30 characters)
-Last Name (30 characters)
-Email address (60 characters)
-User Role (Dropdown with options to choose from)
-address (60 characters)
-Date of Birth (Dropdown Calendar)
-Gender (Dropdown)
-Date Employed (Dropdown Calendar)"
3 "Given that the admin will create an employee/property custodian account

When the admin created the account successfully

Then an email notification (with account credentials <email & auto generated password>) should be sent to user"
4 "Given that the admin will create an account profile

When admin filled up email address field with existing email (registered email already by other user)

Then error message should be displayed that email has been used."
5 "Given that the admin will create a property custodian account

When the admin assigned ""Property custodian"" role to a profile

Then property custodian user should be created"
6 "Given that the admin will create an employee account

When the admin assigned ""Employee"" role to a profile

Then user account should be created"
7 "Given that the admin will create an account with admin privileges

When the admin assigned ""Admin"" role to a profile

Then Admin account should be created"
8 "Given that the admin wants to add a user

When the admin successfully add a new user

User List should be updated with the new user"
9 "Given that the user is in the ""New Employee"" form

When the user accidentally clicks the back button

Then the fade effect when opening the ""New Employee"" form should also be gone.
Note:
See Defect at Sprint 3: ID1515"
10 "Given that the user is in the ""New Employee"" form and has clicked the DatePicker field

When the user accidentally clicks the back button

Then the DatePicker should not be displayed anymore
Note:
See Defect at Sprint 3: ID1514"
11 "Given that the user wants to add user

When the user registers but using an already registered email

Then a tooltip should be displayed that email entered is already used by another user (Use globalzeal email)

Note:
See Defect at Sprint 3: ID1513 (This is the defect that when you use the same email address of an existing user, the newly edited user displays NaN values on all fields)"
12 "Given that the user wants to add a user

When the user registers but accidentally entered invalid values on the DateOfBirth or DateEmployed field

Then the user should be prompted that email entered is already used by another user

Note:
See Defect at Sprint 2: ID1513 (This is the defect that when you enter invalid characters into the date picker, the newly edited user displays NaN values on all fields)"
13 Remove prompt if sure on adding a user

ID1497 User Management Edit User

1 "Given that the admin wants to edit a user

When the admin clicks the edit button

Then these fields should be seen in the edit user form:
First Name
MIddle Name
Last Name
Email address
User Role
DateOfBirth
address
Gender
DateEmployed"
2 "Given that the admin wants to edit a user

When the admin clicks the edit user button

Then fields should still follow proper validation and limitation of text input in each field
-First Name (30 characters)
-Middle Name (30 characters)
-Last Name (30 characters)
-Email address (60 characters)
-User Role (Dropdown with options to choose from)
-address (60 characters)
-Date of Birth (Dropdown Calendar)
-Gender (Dropdown)
-Date Employed (Dropdown Calendar)"
3 "Given that the admin will edit an account profile

When admin filled up email address field using an existing email of another user

Then error message should be displayed that email has been used."
4 "Given that the admin will edit the User Role of an existing user

When the admin edits the User Role and then clicks save

Then the User Role of the existing user should be updated"
5 "Given that the admin wants to edit a user

When the admin successfully edits the existing user

User List should also be updated"
6 "Given that the user is in the ""Edit Employee"" form

When the user accidentally clicks the back button

Then the fade effect when opening the ""Edit Employee"" form should also be gone.
Note:
See Defect at Sprint 3: ID1515"
7 "Given that the user is in the ""Edit Employee"" form and has clicked the DatePicker field

When the user accidentally clicks the back button

Then the DatePicker should not be displayed anymore
Note:
See Defect at Sprint 3: ID1514"
8 "Given that the user wants to edit user

When the user registers but using an already registered email

Then the user should be prompted that email entered is already used by another user

Note:
See Defect at Sprint 3: ID1513 (This is the defect that when you use the same email address of an existing user, the newly edited user displays NaN values on all fields)"
9 "Given that the user wants to edit a user

When the user registers but accidentally entered invalid values on the DateOfBirth or DateEmployed field

Then the user should be prompted that email entered is already used by another user

Note:
See Defect at Sprint 2: ID1513 (This is the defect that when you enter invalid characters into the date picker, the newly edited user displays NaN values on all fields)"
10 Remove prompt if sure on adding a user

1501 Item Management Add Item

1 "Given that the admin wants to add a user

When the admin clicks the add button

Then these fields should be seen in the add user form:
First Name
MIddle Name
Last Name
Email address
User Role
DateOfBirth
address
Gender
DateEmployed"
2 "Given that the admin wants to add a user

When the admin clicks the add user button

Then fields should still follow proper validation and limitation of text input in each field
-First Name (30 characters)
-Middle Name (30 characters)
-Last Name (30 characters)
-Email address (60 characters)
-User Role (Dropdown with options to choose from)
-address (60 characters)
-Date of Birth (Dropdown Calendar)
-Gender (Dropdown)
-Date Employed (Dropdown Calendar)"
3 "Given that the admin will create an employee/property custodian account

When the admin created the account successfully

Then an email notification (with account credentials <email & auto generated password>) should be sent to user"
4 "Given that the admin will create an account profile

When admin filled up email address field with existing email (registered email already by other user)

Then error message should be displayed that email has been used."
5 "Given that the admin will create a property custodian account

When the admin assigned ""Property custodian"" role to a profile

Then property custodian user should be created"
6 "Given that the admin will create an employee account

When the admin assigned ""Employee"" role to a profile

Then user account should be created"
7 "Given that the admin will create an account with admin privileges

When the admin assigned ""Admin"" role to a profile

Then Admin account should be created"
8 "Given that the admin wants to add a user

When the admin successfully add a new user

User List should be updated with the new user"
9 "Given that the user is in the ""New Employee"" form

When the user accidentally clicks the back button

Then the fade effect when opening the ""New Employee"" form should also be gone.
Note:
See Defect at Sprint 3: ID1515"
10 "Given that the user is in the ""New Employee"" form and has clicked the DatePicker field

When the user accidentally clicks the back button

Then the DatePicker should not be displayed anymore
Note:
See Defect at Sprint 3: ID1514"
11 "Given that the user wants to add user

When the user registers but using an already registered email

Then a tooltip should be displayed that email entered is already used by another user (Use globalzeal email)

Note:
See Defect at Sprint 3: ID1513 (This is the defect that when you use the same email address of an existing user, the newly edited user displays NaN values on all fields)"
12 Remove prompt if sure on adding a user
13 Use Global Zeal email address
14 Date fields should not be set to a later date

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.