woocommerce/plugins/woocommerce-admin/tests/e2e/pages/Coupons.ts

11 lines
334 B
TypeScript
Raw Normal View History

import { BasePage } from './BasePage';
export class Coupons extends BasePage {
url = 'wp-admin/edit.php?post_type=shop_coupon&legacy_coupon_menu=1';
async isDisplayed() {
// This is a smoke test that ensures the single page was rendered without crashing
await this.page.waitForSelector( '#woocommerce-layout__primary' );
}
}