-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-namespace | ||
declare namespace Cypress { | ||
export interface Chainable { | ||
step(name: string): Chainable<any>; | ||
Check warning on line 4 in integration/e2e/groups/groups.test.ts GitHub Actions / build
|
||
other(name: string): Chainable<any>; | ||
Check warning on line 5 in integration/e2e/groups/groups.test.ts GitHub Actions / build
|
||
} | ||
} | ||
|
||
describe('groupped', () => { | ||
Cypress.Commands.add('other', name => { | ||
Cypress.log({ name: 'other', message: name, groupStart: true, type: 'parent' } as any); | ||
Check warning on line 11 in integration/e2e/groups/groups.test.ts GitHub Actions / build
|
||
cy.log('other').then(() => { | ||
Cypress.log({ emitOnly: true, groupEnd: true } as any); | ||
Check warning on line 13 in integration/e2e/groups/groups.test.ts GitHub Actions / build
|
||
}); | ||
}); | ||
Cypress.Commands.add('step', name => { | ||
Cypress.log({ name: 'group', message: name, groupStart: true, type: 'parent' } as any); | ||
Check warning on line 17 in integration/e2e/groups/groups.test.ts GitHub Actions / build
|
||
cy.wait(200).then(() => { | ||
// | ||
}); | ||
cy.other('step NESTED'); | ||
cy.log('hello').then(() => { | ||
Cypress.log({ emitOnly: true, groupEnd: true } as any); | ||
Check warning on line 23 in integration/e2e/groups/groups.test.ts GitHub Actions / build
|
||
}); | ||
// cy.pause(); | ||
}); | ||
|
||
it('test', () => { | ||
cy.step('step 1'); | ||
cy.other('step Paretn'); | ||
// cy.step('step 2'); | ||
// cy.step('step 3'); | ||
// cy.step('step 4'); | ||
// cy.step('step 5'); | ||
}); | ||
}); |