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

Resolve #1594, #1603 #1592

Merged
merged 4 commits into from
May 15, 2020
Merged

Resolve #1594, #1603 #1592

merged 4 commits into from
May 15, 2020

Conversation

timothywangdev
Copy link
Contributor

No description provided.

InVincible2016
InVincible2016 previously approved these changes May 8, 2020
@timothywangdev timothywangdev changed the title Resolve #1591 Only do e2e tests for pr Resolve #1591, #1594 May 12, 2020

class RequestInterceptor {
intercept = false
byPassMatchObj = null
Copy link
Contributor

Choose a reason for hiding this comment

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

Add flow type definition

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

class RequestInterceptor {
intercept = false
byPassMatchObj = null
stats = {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Add flow type definition

intercept = false
byPassMatchObj = null
stats = {}
cache = {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Add flow type definition

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@@ -104,7 +104,7 @@ const CRYPTO_ACCOUNTS = [
// ledger
{
addedAt: 1583802157,
address: '0xd3ced3b16c8977ed0e345d162d982b899e978588',
address: '0x6F6a68eC176AAfFE76e6771F2Ea79607f6B79801',
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason of making this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

bypass 0xd3ced3b16c8977ed0e345d162d982b899e978588 for allowance setting for metamask, but we do not want to bypass other types of wallets. This further reduced the number of calls.

@@ -34,3 +34,6 @@ page
.on('requestfailed', request =>
console.log(chalk.magenta(`${request.failure().errorText} ${request.url()}`))
)

const RequestInterceptor = require('../utils/requestInterceptor').default
global.requestInterceptor = new RequestInterceptor()
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a new line at the end

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

}),
page.goto(`${process.env.E2E_TEST_URL}/contacts`)
])
//await requestInterceptor.setRequestInterception(true)
Copy link
Contributor

Choose a reason for hiding this comment

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

remove if not used

@@ -7,7 +7,15 @@ const timeout = 180000

describe('Direct transfer form tests', () => {
beforeAll(async () => {
/* browser.on('targetcreated', async (target) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove if not used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

)
}

byPass (matchObj) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add comment to this function

this.startIntercept()
}

incrementStat (key, val) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add comment to this function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@timothywangdev timothywangdev changed the title Resolve #1591, #1594 Resolve #1594 May 13, 2020
@timothywangdev timothywangdev changed the title Resolve #1594 Resolve #1594, #1603 May 13, 2020
@InVincible2016 InVincible2016 merged commit b5d196e into master May 15, 2020
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.

None yet

2 participants