|
| 1 | +import {FOBasePagePageInterface} from '@interfaces/FO'; |
| 2 | + |
| 3 | +// Import data |
| 4 | +import type {ProductAttribute, ProductDetails, ProductDetailsWithDiscount} from '@data/types/product'; |
| 5 | + |
| 6 | +import type {Page} from '@playwright/test'; |
| 7 | + |
| 8 | +export interface FoModalQuickViewPageInterface extends FOBasePagePageInterface { |
| 9 | + quickViewModalDiv: string; |
| 10 | + |
| 11 | + addToCartByQuickView(page: Page): Promise<void>; |
| 12 | + closeQuickViewModal(page: Page, clickOutside?: boolean): Promise<boolean>; |
| 13 | + getProductAttributesFromQuickViewModal(page: Page): Promise<ProductAttribute[]>; |
| 14 | + getProductAvailabilityText(page: Page): Promise<string>; |
| 15 | + getProductDetailsFromQuickViewModal(page: Page): Promise<ProductDetails>; |
| 16 | + getProductQuantityFromQuickViewModal(page: Page): Promise<number>; |
| 17 | + getProductWithDiscountDetailsFromQuickViewModal(page: Page): Promise<ProductDetailsWithDiscount>; |
| 18 | + getQuickViewCoverImage(page: Page): Promise<string | null>; |
| 19 | + getQuickViewImageMain(page: Page): Promise<string | null>; |
| 20 | + getSelectedAttributes(page: Page): Promise<ProductAttribute[]>; |
| 21 | + getSelectedAttributesFromQuickViewModal(page: Page, attribute: ProductAttribute): Promise<ProductAttribute[]>; |
| 22 | + getSocialSharingLink(page: Page, socialSharing: string): Promise<string>; |
| 23 | + isAddToCartButtonDisabled(page: Page): Promise<boolean>; |
| 24 | + isAddToCartButtonEnabled(page: Page): Promise<boolean>; |
| 25 | + isQuickViewProductModalVisible(page: Page): Promise<boolean>; |
| 26 | + selectThumbImage(page: Page, position: number): Promise<string>; |
| 27 | + setAttribute(page: Page, attributes: ProductAttribute): Promise<void>; |
| 28 | + setAttributes(page: Page, attributes: ProductAttribute[]): Promise<void>; |
| 29 | + setAttributesAndAddToCart(page: Page, attributes: ProductAttribute[], quantity: number): Promise<void>; |
| 30 | + setQuantity(page: Page, quantity: number | string): Promise<void>; |
| 31 | + setQuantityAndAddToCart(page: Page, quantityWanted?: number | string): Promise<void>; |
| 32 | + setQuantityByArrowUpDown(page: Page, quantityWanted: number, direction: string): Promise<void>; |
| 33 | + |
| 34 | +} |
0 commit comments