mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-04-29 04:59:01 +08:00
30 lines
888 B
TypeScript
30 lines
888 B
TypeScript
/**
|
|
* Internal dependencies
|
|
*/
|
|
import { PcpAdminPage } from './pcp-admin-page';
|
|
import urls from '../urls';
|
|
|
|
export class PcpSettings extends PcpAdminPage {
|
|
url = urls.admin.pcp.settings;
|
|
|
|
// Locators
|
|
disconnectButton = () =>
|
|
this.page.getByRole( 'button', { name: 'Disconnect' } );
|
|
|
|
modalDisconnectButton = () =>
|
|
this.modalContainer().getByRole( 'button', { name: 'Disconnect' } );
|
|
modalCancelButton = () =>
|
|
this.modalContainer().getByRole( 'button', { name: 'Cancel' } );
|
|
modalStartOverToggle = () => this.page.getByLabel( 'Start over' );
|
|
|
|
merchantIdText = () =>
|
|
this.settingBlock( 'Merchant ID' ).locator( '.ppcp--static-value' );
|
|
merchantEmailAddressText = () =>
|
|
this.settingBlock( 'Email address' ).locator( '.ppcp--static-value' );
|
|
merchantClientIdText = () =>
|
|
this.settingBlock( 'Client ID' ).locator( '.ppcp--static-value' );
|
|
|
|
// Actions
|
|
|
|
// Assertions
|
|
}
|