Files
Verso/services/web/test/smoke/src/steps/100_loadProjectDashboard.js
T
M FahruandCopybot 01c504109b Make project list react as the default in main router (#12047)
* Make project list react as the default in the main router

* Remove angular controller check-in project list smoke test

GitOrigin-RevId: 586a14afd9888d6f18e3cfa64aeebc5975bb43d5
2023-03-07 09:05:39 +00:00

14 lines
348 B
JavaScript

const TITLE_REGEX = /<title>Your Projects - .*, Online LaTeX Editor<\/title>/
async function run({ request, assertHasStatusCode }) {
const response = await request('/project')
assertHasStatusCode(response, 200)
if (!TITLE_REGEX.test(response.body)) {
throw new Error('body does not have correct title')
}
}
module.exports = { run }