wip
This commit is contained in:
@@ -9,15 +9,8 @@ import { CheckoutStateEnum } from '../../../packages/domain/value-objects/Checko
|
||||
* Tests verify HTML parsing for checkout price extraction and state detection.
|
||||
*/
|
||||
|
||||
interface Page {
|
||||
locator(selector: string): Locator;
|
||||
}
|
||||
|
||||
interface Locator {
|
||||
getAttribute(name: string): Promise<string | null>;
|
||||
innerHTML(): Promise<string>;
|
||||
textContent(): Promise<string | null>;
|
||||
}
|
||||
type Page = ConstructorParameters<typeof CheckoutPriceExtractor>[0];
|
||||
type Locator = ReturnType<Page['locator']>;
|
||||
|
||||
describe('CheckoutPriceExtractor Integration', () => {
|
||||
let mockPage: Page;
|
||||
|
||||
Reference in New Issue
Block a user