ghost-portal/packages/page-accounts/test/pageElements/AccountRow.tsx
Ewa Kowalska 52b706ef14
Apply collapsible row styling for addresses (#6122)
* Apply collapsible row for addresses

* Apply merge improvements

* Style buttons

* Restore unused export

Co-authored-by: MiZiet <michalzietalak@o2.pl>
2021-09-15 08:54:48 +02:00

15 lines
499 B
TypeScript

// Copyright 2017-2021 @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);
}
}