Skip to content

Commit c35fb12

Browse files
authored
Update plugins.md (#3186)
fix "login is not a function"
1 parent 52eac98 commit c35fb12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ If a session expires automatically logs in again.
126126
```js
127127
// inside a test file
128128
// use login to inject auto-login function
129-
Before(login => {
129+
Before( ({login}) => {
130130
login('user'); // login using user session
131131
});
132132

0 commit comments

Comments
 (0)