Bring back tauri e2e tests (#2062)
* Bring back tauri e2e tests Fixes #2061 once green * Fix if * Add bail mocha opt and more cleanup, disable second dir test * Add mocha types and tsconfig * Add 10sec delay for auth (worked in 22.04 local docker) * Add back close settings click * Disable open file * Re-enable settings test * Handle error page * Back to brower.execute location.href * Add --force to tauri-driver install (I think because of cache) --------- Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com>
This commit is contained in:
@ -16,7 +16,7 @@ export const ErrorPage = () => {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center h-screen">
|
||||
<section className="max-w-full xl:max-w-4xl mx-auto">
|
||||
<h1 className="text-4xl mb-8 font-bold">
|
||||
<h1 className="text-4xl mb-8 font-bold" data-testid="unexpected-error">
|
||||
An unexpected error occurred
|
||||
</h1>
|
||||
{isRouteErrorResponse(error) && (
|
||||
@ -26,7 +26,12 @@ export const ErrorPage = () => {
|
||||
)}
|
||||
<div className="flex justify-between gap-2 mt-6">
|
||||
{isTauri() && (
|
||||
<ActionButton Element="link" to={'/'} icon={{ icon: faHome }}>
|
||||
<ActionButton
|
||||
Element="link"
|
||||
to={'/'}
|
||||
icon={{ icon: faHome }}
|
||||
data-testid="unexpected-error-home"
|
||||
>
|
||||
Go Home
|
||||
</ActionButton>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user