Skip to content

Commit 5718366

Browse files
authored
[patch] increase step length from 80 to 200 (#109)
* increase * fix tests
1 parent 52af5fb commit 5718366

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/setup/cypress-events.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { EventEmitter } from 'events';
77
import CommandT = Cypress.CommandT;
88

99
const dbg = 'cypress-allure:cy-events';
10-
const ARGS_TRIM_AT = 80;
10+
const ARGS_TRIM_AT = 200;
1111

1212
const withTry = (message: string, callback: () => void) => {
1313
try {

tests/test-folder/mocha-events/commands/long-name-command.test.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ describe('custom commands', () => {
2121
});
2222
2323
it('tasklog1 long', () => {
24-
cy.tasklog1({long: {long: ['chicken', 'chicken', 'chicken', 'chicken', 'chicken', 'chicken', 'chicken', 'chicken' ]}});
24+
cy.tasklog1("0123456789".repeat(21));
2525
});
2626
2727
it('just long log', () => {
28-
cy.log(JSON.stringify({long: {long: ['chicken', 'chicken', 'chicken', 'chicken', 'chicken', 'chicken', 'chicken', 'chicken' ]}}));
28+
cy.log("0123456789".repeat(21));
2929
});
3030
});
3131
`,
@@ -99,7 +99,7 @@ describe('custom commands', () => {
9999
{
100100
name: 'tasklog1 args',
101101
sourceContent:
102-
'{"long":{"long":["chicken","chicken","chicken","chicken","chicken","chicken","chicken","chicken"]}}',
102+
'012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
103103
type: 'application/json',
104104
},
105105
],
@@ -110,7 +110,7 @@ describe('custom commands', () => {
110110
{
111111
name: 'task: log args',
112112
sourceContent:
113-
'log\n{"long":{"long":["chicken","chicken","chicken","chicken","chicken","chicken","chicken","chicken"]}}',
113+
'log\n012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
114114
type: 'application/json',
115115
},
116116
],
@@ -121,7 +121,7 @@ describe('custom commands', () => {
121121
{
122122
name: 'task args',
123123
sourceContent:
124-
'log, {"long":{"long":["chicken","chicken","chicken","chicken","chicken","chicken","chicken","chicken"]}}',
124+
'log, "012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"',
125125
type: 'application/json',
126126
},
127127
],
@@ -156,7 +156,7 @@ describe('custom commands', () => {
156156
{
157157
name: 'log args',
158158
sourceContent:
159-
'{"long":{"long":["chicken","chicken","chicken","chicken","chicken","chicken","chicken","chicken"]}}',
159+
'012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789',
160160
type: 'application/json',
161161
},
162162
],

0 commit comments

Comments
 (0)