ghost-portal/packages/page-accounts/test/pageElements/AccountRow.tsx
Jaco 043faeaac3
Bump TS to 5.0, adjust TS aliases (#9193)
* Adjust TS aliases (test-support problematic)

* Bump TS to 5

* Flatten paths (somewhat)
2023-03-17 10:16:43 +02:00

15 lines
495 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';
export class AccountRow extends Row {
async assertParentAccountName (expectedParentAccount: string): Promise<void> {
const parentAccount = await within(this.primaryRow).findByTestId('parent');
expect(parentAccount).toHaveTextContent(expectedParentAccount);
}
}