Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Feb 7, 2024
1 parent c4ba039 commit 6533083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/testing/webdriverio/01-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Testing with WebdriverIO has the following advantages:

- __Cross Browser Support__: WebdriverIO is designed to support all platforms, either on desktop or mobile. You can run tests on actual browser your users are using, including covering different versions of them.
- __Real User Interaction__: Interaction with elements in WebdriverIO through the WebDriver protocol is much closer to native user-triggered interactions than what can be achieved with emulated DOM environments (such as JSDom or Stencil's own Mock-Doc).
- __Web Platform Support__: Running tests in actual browser allows you to tap into the latest Web Platform features for testing your components, often not available when using virtual DOM environments.
- __Web Platform Support__: Running tests in actual browsers allows you to tap into the latest Web Platform features for testing your components, often not available when using virtual DOM environments.

## Set Up

Expand Down
4 changes: 2 additions & 2 deletions docs/testing/webdriverio/03-mocking.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import { mock, fn } from '@wdio/browser-runner'
import { format } from './utils/utils.ts'

// mock files within the project
mock('./utils/utils.ts', () => {
mock('./utils/utils.ts', () => ({
format: fn().mockReturnValue(42)
})
}))
// mock whole modules and replace functionality with what is defined in `./__mocks__/leftpad.ts`
mock('leftpad')

Expand Down

0 comments on commit 6533083

Please sign in to comment.