Skip to content

Commit

Permalink
docs(learned-lessons.md): improve learned lessons doc
Browse files Browse the repository at this point in the history
  • Loading branch information
amoncaldas committed Jan 3, 2022
1 parent 6471d11 commit bf432c6
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion docs/learned-lessons.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,41 @@ This document list some issues and how they were solved

## Error in Karma test: Disconnected because no message in 10000 ms

Add longer timeouts:

```js
module.exports = {
//how long does Karma wait for a browser to reconnect, 2000 is default
browserDisconnectTimeout: 60000,
//how long will Karma wait for a message from a browser before disconnecting from it, 10000 is default
browserNoActivityTimeout: 60000,
}
```

http://alexeyhorn.com/javascript/karma/2017/05/31/fix-karma-disconnected-error.html

## Error in nighwatch/sellenium test: session deleted because of page crash

Add the '--disable-dev-shm-usage' flag to the browser.

```js
module.exports = {
test_settings: {
chrome: {
desiredCapabilities: {
browserName: 'chrome',
'chromeOptions': {
'args': [
'--disable-dev-shm-usage',
]
}
}
}
}
}

```

https://svdoscience.com/2021-03-17/fix-session-deleted-page-crash-selenium-grid-chrome-docker

## Support for aliases in imports outside webpack cotnext
Expand All @@ -21,7 +50,7 @@ Add to package.json (for an alias to @):
```js
"_moduleAliases": {
"@": "src/"
}
}
```

## Allow the use of import outside webpack
Expand Down

0 comments on commit bf432c6

Please sign in to comment.