ghost-portal/packages/page-accounts/test/pageElements/AccountRow.tsx
Jaco 4929b1c6fd
Update headers for 2023 (#8665)
* Update headers for 2023

* Adjust env-config
2023-01-01 10:32:05 +02:00

15 lines
499 B
TypeScript

// Copyright 2017-2023 @polkadot/page-accounts authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { within } from '@testing-library/react';
import { Row } from '@polkadot/test-support/pagesElements/Row';
export class AccountRow extends Row {
async assertParentAccountName (expectedParentAccount: string): Promise<void> {
const parentAccount = await within(this.primaryRow).findByTestId('parent');
expect(parentAccount).toHaveTextContent(expectedParentAccount);
}
}