mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-05-09 20:57:59 +00:00
17 lines
513 B
TypeScript
17 lines
513 B
TypeScript
// Copyright 2017-2026 @pezkuwi/app-accounts authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
/* global expect */
|
|
|
|
import { within } from '@testing-library/react';
|
|
|
|
import { Row } from '@pezkuwi/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);
|
|
}
|
|
}
|