SenseNet / sn-client

Monorepo for sensenet client packages 🐱‍💻
https://sensenet.com
GNU General Public License v2.0
25 stars 37 forks source link

🧪 [E2E test] Add Cypress test - Header & Dashboard #911

Closed enikonemeth closed 4 years ago

enikonemeth commented 4 years ago

Before you start working on an issue please take a look at our dedicated hacktoberfest site to learn the basic rules and find additional resources to help you get started.

🧪E2E test cases

The scope of these tests is to ensure that the header and the dashboard work as it is intended.

image

😎 Role

All test should run as admin.

Test case 1

🧫 Purpose of the test

To ensure that the header contains the url of the current repository.

🐾 Steps

  1. Step: Login with admin role Expected result: "https://dev.demo.sensenet.com" should be visible on the header

image

Test case 2

🧫 Purpose of the test

To ensure that the dashboard has correct subscription plan info.

🐾 Steps

  1. Step: Click on the sensenet icon in the header Expected result: Dashboard should open with the title of "Welcome to your Dev Demo project"

image

  1. Step: Check the Your subscription plan section of the dashboard: Expected result: This section should contain the Developer plan text and features list should be the following:

Test case 3

🧫 Purpose of the test

To ensure that the dashboard has correct usage info.

🐾 Steps

  1. Step: Check the Current usage section of the dashboard: Expected result: Users should be x of 3 where x <= 3 Content should be y of 500 where y <= 500 Storage space should be z of 1 GB where z <= 1

image

NileshPatel17 commented 4 years ago

created PR. please let me know if this can be merged.