Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@shellygo/cypress-test-utils",
"description": "Cypress Test Automation Utilities",
"version": "6.0.4",
"version": "6.0.5",
"author": "Shelly Goldblit",
"private": false,
"license": "MIT",
Expand Down
9 changes: 6 additions & 3 deletions src/base-driver/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { type LitElement } from "lit";
import type { HTMLAttributes } from "react";
import { CypressHelper } from "src/cypress-helper";
import type { IRenderer } from "src/renderer";
Expand All @@ -8,7 +7,7 @@ import type { IRenderer } from "src/renderer";
*/
const capitalizeFirstLetter = (text: string) =>
text.charAt(0).toUpperCase() + text.slice(1);
export class BaseTestDriver<T extends LitElement> {
export class BaseTestDriver<T> {
/**
* @private
*/
Expand Down Expand Up @@ -65,7 +64,11 @@ export class BaseTestDriver<T extends LitElement> {
protected _get = {
children: () => this.children,
props: () => this.props as Partial<T>,
cssPixel2Number: (value: string) => Number(value.replace("px", ""))
cssPixel2Number: (value: string) => Number(value.replace("px", "")),
elementByText: (text: string, index?: number) =>
this.helper.get.elementByText(text, index),
waitUntil: (condition: () => boolean) =>
this.helper.when.waitUntil(condition)
};
/**
* @private
Expand Down
Loading