cds-snc / cds-snc/platform-forms-client

Published Preview when Form is Closed

Open
#7,183 0 comments 0 reactions 0 assignees View on GitHub
:vertical_traffic_light: Minor bug ready for dev
Dominant language
TypeScript
Stars
46
Forks
16
Avg merge
1d 8h
Merged PRs (30d)
85

Description

## Description

When a form is published, the "preview" page shows the link to EN and FR URLs.
However, when a form is closed it reverts to the "draft" preview rather

## Steps to reproduce
1. Go to a Published form
2. Click on Test/Preview (second icon in left-nav)
3. Go to Settings
4. Close form
5. Return to Test/Preview

## Details
- **Browser**: Edge
- **Operating system**: Windows
- **Environment**: Staging
- **Viewport**: Tablet
- **Output**: clgpczg7x0000x56ujh4ne7e9

## Expected behaviour

Same for all published forms regardless of if opened or closed
Consider stacking the published links and the closed page preview
Related #7572

## Screenshots or videos

Image

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.