This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
115 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import { StandardTableOutput } from '~client/standard_components/app-components'; | ||
|
||
// Renders the output of the bos fees command | ||
|
||
type Props = { | ||
data: { | ||
rows: string[][]; | ||
}; | ||
}; | ||
|
||
const FeesOutput = ({ data }: Props) => { | ||
return ( | ||
<div style={{ marginTop: '30px' }}> | ||
{!!data ? <StandardTableOutput data={data} tableId="feesOutput" /> : <h2>No Output to display</h2>} | ||
</div> | ||
); | ||
}; | ||
|
||
export default FeesOutput; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { expect, test } from '@playwright/test'; | ||
import { removeAccessToken, setAccessToken } from '../utils/setAccessToken'; | ||
|
||
import { testConstants } from '../utils/constants'; | ||
|
||
test.describe('Test the Fees command client page', async () => { | ||
test.beforeEach(async ({ page }) => { | ||
await setAccessToken({ page }); | ||
}); | ||
|
||
test('test the Fees command page and input values', async ({ page }) => { | ||
await page.goto(testConstants.commandsPage); | ||
await page.click('#Fees'); | ||
await expect(page).toHaveTitle('Fees'); | ||
|
||
await page.type('#node', 'testnode1'); | ||
|
||
await page.click('text=run command'); | ||
await page.waitForTimeout(1000); | ||
|
||
await expect(page.locator('#feesOutput')).toBeVisible(); | ||
await page.click('text=home'); | ||
}); | ||
|
||
test.afterEach(async ({ page }) => { | ||
await removeAccessToken({ page }); | ||
}); | ||
}); |