* add a user section to the acceptance tests, this is all that is required to allow the cypress tests to run against the built-in open-id.

* If the interstitial page does not receive any tasks, it should redirect the main home page.  I think this allows all the cypress tests to pass - as the most common moment for this to occur is when an end event has no documentation on it.
This commit is contained in:
Dan 2023-04-19 18:46:08 -04:00
parent a8fd0a246d
commit 4040614b22
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,10 @@
users:
ciadmin1:
service: local_open_id
email: ciadmin1@spiffworkflow.org
password: ciadmin1
preferred_username: ciadmin1
groups:
admin:
users: [ciadmin1@spiffworkflow.org]

View File

@ -53,6 +53,7 @@ export default function ProcessInterstitial() {
return () => clearInterval(timerId);
}
return undefined;
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [lastTask]);
const processStatusImage = () => {
@ -94,6 +95,11 @@ export default function ProcessInterstitial() {
);
};
/** In the event there is no task information and the connection closed,
* redirect to the home page. */
if (status === 'closed' && lastTask === null) {
navigate(`/tasks`);
}
if (lastTask) {
return (
<>