2021-07-13 19:38:05 +00:00
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2021-05-07 16:29:20 +00:00
|
|
|
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' );
|
|
|
|
}
|
|
|
|
}
|