Skip to content

Commit

Permalink
Updated button title and modal titles
Browse files Browse the repository at this point in the history
Signed-off-by: Aashir Siddiqui <[email protected]>
  • Loading branch information
aashir21 committed Oct 2, 2024
1 parent e2d2a99 commit fa73b0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion galasa-ui/public/static/markdown/home-contents.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Welcome to your Galasa Service
Get the most from your Galasa experience by reading the [Galasa documentation](https://galasa.dev/).\
Get the most from your Galasa experience by reading the [Galasa documentation](https://galasa.dev/).

To customise this text ask your service administrator to set the `service.welcome.markdown` configuration property.
![Abstract image of test marbles being sorted into passes or failures!](https://raw.githubusercontent.com/galasa-dev/webui/refs/heads/main/galasa-ui/public/static/homeGraphic.svg)
14 changes: 7 additions & 7 deletions galasa-ui/src/tests/components/TokenRequestModal.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ describe('Token request modal', () => {
return render(<TokenRequestModal isDisabled={false}/>);
});
const openModalButtonElement = screen.getByRole("token-request-btn");
const modalSubmitButtonElement = screen.getByText(/Submit/i);
const modalCreateButtonElement = screen.getByText(/^Create$/);
const modalNameInputElement = screen.getByLabelText(/Token Name/i);

// When...
fireEvent.click(openModalButtonElement);
fireEvent.input(modalNameInputElement, { target: { value: 'dummy' } });
fireEvent.click(modalSubmitButtonElement);
fireEvent.click(modalCreateButtonElement);

// Then...
await waitFor(() => expect(global.fetch).toHaveBeenCalledTimes(1));
Expand All @@ -112,7 +112,7 @@ describe('Token request modal', () => {
return render(<TokenRequestModal isDisabled={false}/>);
});
const openModalButtonElement = screen.getByRole("token-request-btn");
const modalSubmitButtonElement = screen.getByText(/Submit/i);
const modalSubmitButtonElement = screen.getByText(/^Create$/);
const modalNameInputElement = screen.getByLabelText(/Token Name/i);

// The error notification should not exist yet
Expand Down Expand Up @@ -144,7 +144,7 @@ describe('Token request modal', () => {
render(<TokenRequestModal isDisabled={false}/>);
});
const openModalButtonElement = screen.getByRole("token-request-btn");
const modalSubmitButtonElement = screen.getByText(/Submit/i);
const modalSubmitButtonElement = screen.getByText(/^Create$/);
const modalNameInputElement = screen.getByLabelText(/Token Name/i);

// The error notification should not exist yet
Expand Down Expand Up @@ -176,7 +176,7 @@ describe('Token request modal', () => {
render(<TokenRequestModal isDisabled={false}/>);
});
const openModalButtonElement = screen.getByRole("token-request-btn");
const modalSubmitButtonElement = screen.getByText(/Submit/i);
const modalSubmitButtonElement = screen.getByText(/^Create$/);
const modalNameInputElement = screen.getByLabelText(/Token Name/i);

// The error notification should not exist yet
Expand Down Expand Up @@ -217,7 +217,7 @@ describe('Token request modal', () => {
});

const openModalButtonElement = screen.getByRole("token-request-btn");
const modalSubmitButtonElement = screen.getByText(/Submit/i);
const modalSubmitButtonElement = screen.getByText(/^Create$/);

// When...
await act(async () => {
Expand Down Expand Up @@ -298,7 +298,7 @@ describe('Token request modal', () => {
});

const openModalButtonElement = screen.getByRole("token-request-btn");
const modalSubmitButtonElement = screen.getByText(/Submit/i);
const modalSubmitButtonElement = screen.getByText(/^Create$/);

// When...
await act(async () => {
Expand Down

0 comments on commit fa73b0a

Please sign in to comment.