* 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:
parent
a8fd0a246d
commit
4040614b22
|
@ -1,3 +1,10 @@
|
||||||
|
users:
|
||||||
|
ciadmin1:
|
||||||
|
service: local_open_id
|
||||||
|
email: ciadmin1@spiffworkflow.org
|
||||||
|
password: ciadmin1
|
||||||
|
preferred_username: ciadmin1
|
||||||
|
|
||||||
groups:
|
groups:
|
||||||
admin:
|
admin:
|
||||||
users: [ciadmin1@spiffworkflow.org]
|
users: [ciadmin1@spiffworkflow.org]
|
||||||
|
|
|
@ -53,6 +53,7 @@ export default function ProcessInterstitial() {
|
||||||
return () => clearInterval(timerId);
|
return () => clearInterval(timerId);
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [lastTask]);
|
}, [lastTask]);
|
||||||
|
|
||||||
const processStatusImage = () => {
|
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) {
|
if (lastTask) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in New Issue