Skip to content

Commit

Permalink
feat(testing): add andable.ts and attachable.ts mixin description
Browse files Browse the repository at this point in the history
  • Loading branch information
didlika committed Aug 6, 2021
1 parent 63c8aa1 commit e918b8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/testing/src/mixins/andable.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {Mixin} from './mixins';

export interface Andable<T> {
/**
* Use this mixin to chain actions or asserts.
*/
and(chainers: string, method?: string, value?: string): T;
}

Expand Down
3 changes: 3 additions & 0 deletions packages/testing/src/mixins/attachable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import 'cypress-file-upload';
import {Mixin} from './mixins';

export interface Attachable<T> {
/**
* Upload file.
*/
attachFile(fileLocation: string, attachmentMethod?: 'input' | 'drag-n-drop'): T;
}

Expand Down

0 comments on commit e918b8a

Please sign in to comment.