import { describe, expect, it } from '@jest/globals';
import React from 'react';
import { renderToStaticMarkup } from 'react-dom/server';
import CartRecoverConfirm, {
layout,
query
} from '../../pages/frontStore/cartRecoverConfirm/CartRecoverConfirm.js';
/**
* The `/cart/recover` page: for a valid link, a plain form whose button
* POSTs back to the page (opening the link changes nothing); otherwise a
* message and a way back to the shop.
*/
describe('CartRecoverConfirm', () => {
it('a valid link: the button, in a form that POSTs to the same page', () => {
const html = renderToStaticMarkup(