Skip to content
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

First delivery #3

Open
wants to merge 81 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
8985e99
First commit
Cicero-Henrique Oct 8, 2024
09dc498
Add spaces
Cicero-Henrique Oct 8, 2024
9adb68d
Improve tests
Cicero-Henrique Oct 8, 2024
c502d4b
Add comments
Cicero-Henrique Oct 9, 2024
97f9384
Add a backend validation
Cicero-Henrique Oct 9, 2024
d018fbe
Update readme
Cicero-Henrique Oct 9, 2024
dd84610
Merge pull request #1 from Cicero-Henrique/tests
Cicero-Henrique Oct 9, 2024
55a5b77
Reverting all packages and package-locks committed by mistake.
Cicero-Henrique Oct 13, 2024
b2e73cc
Moving the tests to root of the project and adding scripts
Cicero-Henrique Oct 13, 2024
71d3608
Update the readme
Cicero-Henrique Oct 13, 2024
cb296d9
Add end line
Cicero-Henrique Oct 13, 2024
27ba9d4
Change urls to enviroment variables
Cicero-Henrique Oct 13, 2024
37f546f
Improve the command name
Cicero-Henrique Oct 14, 2024
a7ba04e
Insert the cookies in the browser
Cicero-Henrique Oct 14, 2024
e293670
Fix the select filter test case
Cicero-Henrique Oct 14, 2024
7d38b70
Improve the test that returns to the clients list
Cicero-Henrique Oct 15, 2024
62eacb5
Improve the test that checks the footer
Cicero-Henrique Oct 15, 2024
3e521a1
Separating the assertions
Cicero-Henrique Oct 15, 2024
bfec7a9
Remove dynamic parts from cy.get
Cicero-Henrique Oct 15, 2024
fab1a00
Reduce the code to check the header
Cicero-Henrique Oct 15, 2024
5a560de
Reduce the code to open and close the messenger
Cicero-Henrique Oct 15, 2024
324d88c
Remove the custom command, reduce the tick time and reduce a line to …
Cicero-Henrique Oct 15, 2024
f3ee193
Reduce a line to click on the element
Cicero-Henrique Oct 15, 2024
90fda63
Remove the getCustomers custom command
Cicero-Henrique Oct 15, 2024
1ae5985
Fix the first test, removing unnecessary API validation
Cicero-Henrique Oct 15, 2024
bedbdeb
Add pagination validation
Cicero-Henrique Oct 15, 2024
4de4752
Validating the limits of items per page
Cicero-Henrique Oct 15, 2024
a0d9f88
Validate the filter by company size
Cicero-Henrique Oct 15, 2024
fee41b8
Validate the industry filter
Cicero-Henrique Oct 15, 2024
286fb7b
Validate a negative page scenario
Cicero-Henrique Oct 15, 2024
8e26d34
Add a second assertion on negative page scenario and a validation of …
Cicero-Henrique Oct 15, 2024
ffca1ec
Validate to use a text in the page field
Cicero-Henrique Oct 15, 2024
c8596c8
Validate a bool limit
Cicero-Henrique Oct 15, 2024
be9755f
Validate a invalid company size scenario
Cicero-Henrique Oct 15, 2024
86760ca
Validate an invalid company industry scenario
Cicero-Henrique Oct 15, 2024
15aea71
Add tests to contexts
Cicero-Henrique Oct 15, 2024
d64f358
Add github action
Cicero-Henrique Oct 15, 2024
7b6eeff
Fix github action
Cicero-Henrique Oct 23, 2024
4a1000a
Use baseUrl
Cicero-Henrique Oct 23, 2024
ccf3c6d
Set cookies quickly and remove support folder
Cicero-Henrique Oct 23, 2024
0eef4be
Improve the contexts
Cicero-Henrique Oct 24, 2024
0457553
Destructuring the responses on api tests
Cicero-Henrique Oct 24, 2024
3bae055
Remove unecessary url parameters
Cicero-Henrique Oct 24, 2024
74efd8b
Improve requests urls
Cicero-Henrique Oct 24, 2024
5b2ec4e
Remove blank lines
Cicero-Henrique Oct 24, 2024
915ac8b
Remove unecessary lines and comments
Cicero-Henrique Oct 24, 2024
ed42a48
Change from get to contains
Cicero-Henrique Oct 24, 2024
9da80f7
Fixed tests that were performing two validations
Cicero-Henrique Oct 24, 2024
691ffe2
Use fixture to improve the tests
Cicero-Henrique Oct 24, 2024
32e27a3
Improve the filters
Cicero-Henrique Oct 25, 2024
53d9f33
Add localstorage validation
Cicero-Henrique Oct 25, 2024
ff08296
Add no customers scenarios
Cicero-Henrique Oct 25, 2024
29e774e
Add the input disable validation
Cicero-Henrique Oct 25, 2024
1394459
Add test to validate the loading element
Cicero-Henrique Oct 25, 2024
97dff11
Add tests to validate the cookies
Cicero-Henrique Oct 25, 2024
1a95dc8
Add test to check the customer address
Cicero-Henrique Oct 25, 2024
4925d88
Change customer fixture and fix the tests
Cicero-Henrique Oct 26, 2024
a1a818d
Add missing info tests
Cicero-Henrique Oct 26, 2024
44dd92b
Add test to hide address
Cicero-Henrique Oct 26, 2024
465f1c2
Change from many describes to only one
Cicero-Henrique Oct 26, 2024
eeeb75c
Add theme tests
Cicero-Henrique Oct 26, 2024
2a83a7d
Add the first pagination test
Cicero-Henrique Oct 26, 2024
741a654
Add first test for two page scenarios
Cicero-Henrique Oct 26, 2024
a7d4f60
Add second test for two pages validation
Cicero-Henrique Oct 26, 2024
69642f3
Add one page test
Cicero-Henrique Oct 26, 2024
5426c7f
Add test to check if the pagination element is rendered with 50 custo…
Cicero-Henrique Oct 26, 2024
9817d4d
Add test to sort ascendant
Cicero-Henrique Oct 26, 2024
cad1b0f
Add test to sort descendant
Cicero-Henrique Oct 26, 2024
19d9aca
Increase the width
Cicero-Henrique Oct 26, 2024
9a557ad
Add test to sort by number of employees descendant
Cicero-Henrique Oct 26, 2024
bdb364d
Add test to validate the sort by number of employees ascendant
Cicero-Henrique Oct 26, 2024
00fbbc8
Add test to download csv
Cicero-Henrique Oct 26, 2024
c51ca1a
Fix csv test
Cicero-Henrique Oct 26, 2024
ff4f7ed
Add eslint
Cicero-Henrique Oct 27, 2024
dfe2715
Fix the delay scenario
Cicero-Henrique Oct 27, 2024
645e16d
Remove blank lines
Cicero-Henrique Oct 27, 2024
1cf0867
Add first acessibility test
Cicero-Henrique Oct 29, 2024
b031a27
Add test to check accessibility on customers list dark mode
Cicero-Henrique Oct 29, 2024
86a1136
Add test to check accessibility on customers details light mode
Cicero-Henrique Oct 29, 2024
3636f16
check accessibility on dark mode in details page
Cicero-Henrique Oct 29, 2024
cd52917
Add test of messenget button
Cicero-Henrique Oct 29, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/backend/node_modules
/build
/dist
/tests/node_modules
Cicero-Henrique marked this conversation as resolved.
Show resolved Hide resolved

# cypress
/cypress/downloads
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ Read the following [doc](./docs/TestEnvironment.md) to install and start the bac

Read the following [doc](./docs/TestCases.md) to get a list of test cases.

To execute the tests on the first time you need to access the directory `tests` and install Cypress.
Cicero-Henrique marked this conversation as resolved.
Show resolved Hide resolved

```bash
cd tests/
npm install cypress
Cicero-Henrique marked this conversation as resolved.
Show resolved Hide resolved
```

When the installation was completed you can execute the tests using the following commands:

```bash
npx cypress run
Cicero-Henrique marked this conversation as resolved.
Show resolved Hide resolved
```

___

Made with ❤️ by [Walmyr](https://walmyr.dev).
5 changes: 5 additions & 0 deletions backend/package-lock.json
Cicero-Henrique marked this conversation as resolved.
Show resolved Hide resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/package.json
Cicero-Henrique marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"@faker-js/faker": "^9.0.3",
"backend": "file:",
"express": "^4.21.0",
"lodash": "^4.17.21",
"swagger-jsdoc": "^6.2.8",
Expand Down
5 changes: 5 additions & 0 deletions frontend/package-lock.json
Cicero-Henrique marked this conversation as resolved.
Show resolved Hide resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Cicero-Henrique marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "frontend",
"version": "0.1.0",
"dependencies": {
"frontend": "file:",
"lucide-react": "^0.447.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
Loading