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

ENS lookup in people section #68

Merged
merged 9 commits into from
Jun 27, 2022
Merged

ENS lookup in people section #68

merged 9 commits into from
Jun 27, 2022

Conversation

omni7642
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Jun 15, 2022

Deploy Preview for sporosdaoapp-dev canceled.

Name Link
🔨 Latest commit 29c820f
🔍 Latest deploy log https://app.netlify.com/sites/sporosdaoapp-dev/deploys/62ab6087d30c610008571366

Copy link
Contributor

@ivelin ivelin left a comment

Choose a reason for hiding this comment

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

Nice progress. Requested some cleanup and additional use of ENS for all user cards on People page.

@@ -4,8 +4,9 @@
"license": "Apache-2.0",
"scripts": {
"test": "node src/homepage-dashboard.js",
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's update the test target to run all tests:
"test": "node src/*.js"

@@ -4,8 +4,9 @@
"license": "Apache-2.0",
"scripts": {
"test": "node src/homepage-dashboard.js",
"daoTest": "node src/SporosDaoTest.js",
"daoTest": "node src/daoTest.js",
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to include a yarn target for each test file

@@ -77,11 +77,11 @@ export const flow = {
},
{
"type": "navigate",
"url": "http://localhost:3000/",
"url": "https://deploy-preview-67--sporosdaoapp-dev.netlify.app/",
Copy link
Contributor

Choose a reason for hiding this comment

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

The url has to be executable in any local or ci environment. Should not depend on a hardcoded URL.

"assertedEvents": [
{
"type": "navigation",
"url": "http://localhost:3000/",
"url": "https://deploy-preview-67--sporosdaoapp-dev.netlify.app/",
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above. Do not use hardcoded URLs. The test is supposed to cover the latest code in the PR.

]
],
"offsetX": 37,
"offsetY": 11.1875
},
{
"type": "navigate",
"url": "http://localhost:3000/dao/b32b9ebb-b4b1-4d12-9e55-2aa62178cdf8/projects",
"url": "https://deploy-preview-67--sporosdaoapp-dev.netlify.app/dao/b32b9ebb-b4b1-4d12-9e55-2aa62178cdf8/projects",
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is the part of the flow that creates this DAO so it is available to test? Remember that all tests should pass in CI or any local dev environment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's impossible to test creating DAO via test script because we cannot mock the metamask sign in the script.

Copy link
Contributor

Choose a reason for hiding this comment

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

There are two options here:

  1. Populate mongodb before running a test then clean up after test run.
  2. Use metamask e2e extension such as dappeteer:
    https://github.com/chainsafe/dappeteer
    https://archive.devcon.org/archive/watch/5/make-the-tests-feel-the-users-pain-e2e-testing-for-dapps/?tab=YouTube

},
{
"type": "navigate",
"url": "https://deploy-preview-67--sporosdaoapp-dev.netlify.app/",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please do not use hardcoded deployment URL. The test should run against the PR code.

@ivelin ivelin merged commit 4625a6f into SporosDAO:dev Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants