Changeset View
Changeset View
Standalone View
Standalone View
cypress/integration/errors.spec.js
/** | /** | ||||
* Copyright (C) 2019 The Software Heritage developers | * Copyright (C) 2019 The Software Heritage developers | ||||
* See the AUTHORS file at the top-level directory of this distribution | * See the AUTHORS file at the top-level directory of this distribution | ||||
* License: GNU Affero General Public License version 3, or any later version | * License: GNU Affero General Public License version 3, or any later version | ||||
* See top-level LICENSE file for more information | * See top-level LICENSE file for more information | ||||
*/ | */ | ||||
import {httpGetJson} from '../utils'; | |||||
let origin; | let origin; | ||||
const invalidChecksum = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'; | const invalidChecksum = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'; | ||||
const invalidPageUrl = '/invalidPath'; | const invalidPageUrl = '/invalidPath'; | ||||
function urlShouldShowError(url, error) { | function urlShouldShowError(url, error) { | ||||
cy.visit(url, { | cy.visit(url, { | ||||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |