woocommerce-paypal-payments/tests/qa-legacy-ui/utils/admin/oxxo.ts
Misha Utkin 9f1445265d
Migrate tests for legacy UI
- Tests migration
- Tests correction
- Folder structure and file naming fixes
2025-04-30 06:48:12 +02:00

36 lines
566 B
TypeScript

/**
* Internal dependencies
*/
import { PcpSettingsPage } from './pcp-settings-page';
import urls from '../urls';
export class OXXO extends PcpSettingsPage {
url = urls.pcp.oxxo;
// Locators
// Actions
/**
* Bulk update of OXXO tab settings
*
* @param data
*/
setup = async ( data? ) => {
if ( ! data ) {
return;
}
await this.visit();
if ( data.enableGateway !== undefined ) {
await this.enableGatewayCheckbox().setChecked( data.enableGateway );
}
// Add other settings here
await this.saveChanges();
};
// Assertions
}