Skip to content

Commit

Permalink
Everest 331 edit message (percona#93)
Browse files Browse the repository at this point in the history
* feat: change success message

* test: e2e success message
  • Loading branch information
fabio-silva authored Sep 20, 2023
1 parent 279685a commit a086192
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// limitations under the License.
export const Messages = {
dbBeingCreated: 'Awesome! Your database is being created!',
dbBeingUpdated: 'Your database is being updated',
sitTight: `
Everest is now hard at work creating your new database, tailored to your specifications.
Sit tight and relax while we handle the setup for you.
Expand Down
7 changes: 5 additions & 2 deletions apps/everest/pages/database-form/steps/sixth/sixth-step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@ import { Stack, Typography, Button } from '@mui/material';
import { Link } from 'react-router-dom';
import CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline';
import { Messages } from './sixth-step.messages';
import { useDatabasePageMode } from '../../useDatabasePageMode';

export const SixthStep = () => {
const mode = useDatabasePageMode();

return (
<Stack alignItems="center">
<Stack direction="row" alignItems="center">
<CheckCircleOutlineIcon
sx={{ color: 'success.contrastText', fontSize: 64, mr: 1 }}
/>
<Stack direction="column">
<Typography variant="h6">{Messages.dbBeingCreated}</Typography>
<Typography variant="caption">{Messages.sitTight}</Typography>
<Typography variant="h6">{mode === 'new' ? Messages.dbBeingCreated : Messages.dbBeingUpdated}</Typography>
{mode === 'new' && <Typography variant="caption">{Messages.sitTight}</Typography>}
</Stack>
</Stack>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ test.describe('DB Cluster creation', () => {
// await monitoringStepCheck(page, monitoringInstancesList);
await page.getByTestId('db-wizard-submit-button').click();
await expect(page.getByTestId('db-wizard-goto-db-clusters')).toBeVisible();
await expect(page.getByText('Awesome! Your database is being created!')).toBeVisible();

const response = await request.get(
`/v1/kubernetes/${kubernetesId}/database-clusters`
Expand Down

0 comments on commit a086192

Please sign in to comment.