Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

test: add address book #3803

Merged
merged 11 commits into from
May 3, 2022
Merged

test: add address book #3803

merged 11 commits into from
May 3, 2022

Conversation

francovenica
Copy link
Contributor

What it solves

Adds e2e test on cypress for the address book

How to test it

Command yarn cypress:open dev
The cypress UI to select tests opens
Select file "address book"

@github-actions
Copy link

CLA Assistant Lite All Contributors have signed the CLA.

@github-actions
Copy link

github-actions bot commented Apr 20, 2022

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 1 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@coveralls
Copy link

Pull Request Test Coverage Report for Build 2197152394

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.007%) to 35.548%

Totals Coverage Status
Change from base Build 2195129238: -0.007%
Covered Lines: 3554
Relevant Lines: 9044

💛 - Coveralls

@github-actions
Copy link

Deployment links

🟠 Rinkeby Mainnet 🟣 Polygon 🟡 BSC Arbitrum 🟢 Gnosis Chain

Copy link
Member

@iamacook iamacook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good dude!

}

describe('Address_book', () => {
it('Address book entries add/removal', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it('should add and remove Address Book entries'

address:'0x61a0c717d18232711bC788F19C9Cd56a43cc8872'
}

describe('Address_book', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe('Address Book', () => {


describe('Address_book', () => {
it('Address book entries add/removal', () => {
cy.visit(`/${RINKEBY_TEST_SAFE}/address-book`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need add the PUBLIC_URL here, (/app).

@@ -0,0 +1,65 @@
import 'cypress-file-upload';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This package is not added to the package.json

import 'cypress-file-upload';
const path = require("path");

const NAME = "Owner1"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I say we move these common values to a new constants.ts inside of /cypress/integration/ so they can be potentially shared across tests

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can do this after we have more tests that require file uploading

@katspaugh katspaugh dismissed DiogoSoaress’s stale review May 2, 2022 13:10

Let's improve it in further PRs, it's good enough for now.

@github-actions
Copy link

github-actions bot commented May 2, 2022

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 1 0
Ignored 4 N/A
  • Result: ✅ success

  • Annotations: 1 total


[warning] @typescript-eslint/explicit-module-boundary-types

Require explicit return and argument types on exported functions' and classes' public class methods


Report generated by eslint-plus-action

@coveralls
Copy link

coveralls commented May 2, 2022

Pull Request Test Coverage Report for Build 2265375838

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 184 unchanged lines in 18 files lost coverage.
  • Overall coverage decreased (-0.007%) to 35.342%

Files with Coverage Reduction New Missed Lines %
src/routes/routes.ts 1 92.5%
src/logic/safe/store/actions/utils.ts 2 73.97%
src/routes/index.tsx 2 0%
src/routes/safe/container/index.tsx 2 0%
src/components/App/ReceiveModal.tsx 4 0%
src/routes/safe/components/Transactions/TxList/TxShareButton.tsx 4 20.0%
src/logic/safe/store/actions/fetchTransactionDetails.ts 6 14.29%
src/logic/currentSession/hooks/useCurrentSafeAddressSync.ts 7 0%
src/components/Dashboard/FeaturedApps/FeaturedApps.tsx 8 0%
src/routes/safe/components/AddressBook/EllipsisTransactionDetails/index.tsx 10 9.52%
Totals Coverage Status
Change from base Build 2264182136: -0.007%
Covered Lines: 3604
Relevant Lines: 9261

💛 - Coveralls

@francovenica francovenica merged commit 52b7b18 into dev May 3, 2022
@francovenica francovenica deleted the test-address-book branch May 3, 2022 19:55
@github-actions github-actions bot locked and limited conversation to collaborators May 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants