Skip to content

Commit

Permalink
build: fix ts issues - add types for 'interactionSuite's
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed Feb 12, 2024
1 parent 385404a commit 992f455
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ async function cancelEditing(canvas: Canvas) {
expect(heading).toHaveTextContent(text);
}

export const overviewPlaySuite = interactionSuite({
export const overviewPlaySuite: ReturnType<typeof interactionSuite> = interactionSuite({
tests: [changeModes, editAndChangeToValidText, clearInput, cancelEditing]
});
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ async function cancelEditing(canvas: Canvas) {
expect(textElement).toHaveTextContent(text);
}

export const overviewPlaySuite = interactionSuite({
export const overviewPlaySuite: ReturnType<typeof interactionSuite> = interactionSuite({
tests: [changeModes, editAndChangeToValidText, clearInput, cancelEditing]
});
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ async function isTooltipAppearOnHover(canvas: Screen) {
await testHoverTooltipTrigger(canvas, getText);
}

export const headingOverflowSuite = interactionSuite({
export const headingOverflowSuite: ReturnType<typeof interactionSuite> = interactionSuite({
tests: [isTooltipAppearOnHover]
});
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ async function textSimpleText(canvas: Canvas) {
expect(editableHeading).toHaveTextContent(text);
}

export const overviewPlaySuite = interactionSuite({
export const overviewPlaySuite: ReturnType<typeof interactionSuite> = interactionSuite({
tests: [textSimpleText]
});
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ async function isTooltipAppearOnHover(canvas: Screen) {
await testHoverTooltipTrigger(canvas, getText);
}

export const textOverflowSuite = interactionSuite({
export const textOverflowSuite: ReturnType<typeof interactionSuite> = interactionSuite({
tests: [isTooltipAppearOnHover]
});
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ async function checkSystemTheme(canvas: Screen) {
expect(colorAfterToggle).toBe(POSITIVE_COLOR);
}

export const themeProviderSystemThemeSuite = interactionSuite({
export const themeProviderSystemThemeSuite: ReturnType<typeof interactionSuite> = interactionSuite({
tests: [checkSystemTheme]
});

0 comments on commit 992f455

Please sign in to comment.