Changeset View
Changeset View
Standalone View
Standalone View
cypress/support/index.js
Show All 10 Lines | |||||
Cypress.Screenshot.defaults({ | Cypress.Screenshot.defaults({ | ||||
screenshotOnRunFailure: false | screenshotOnRunFailure: false | ||||
}); | }); | ||||
before(function() { | before(function() { | ||||
this.unarchivedRepo = { | this.unarchivedRepo = { | ||||
url: 'https://github.com/SoftwareHeritage/swh-web', | url: 'https://github.com/SoftwareHeritage/swh-web', | ||||
type: 'git', | |||||
revision: '7bf1b2f489f16253527807baead7957ca9e8adde', | revision: '7bf1b2f489f16253527807baead7957ca9e8adde', | ||||
snapshot: 'd9829223095de4bb529790de8ba4e4813e38672d', | snapshot: 'd9829223095de4bb529790de8ba4e4813e38672d', | ||||
rootDirectory: '7d887d96c0047a77e2e8c4ee9bb1528463677663', | rootDirectory: '7d887d96c0047a77e2e8c4ee9bb1528463677663', | ||||
content: [{ | content: [{ | ||||
sha1git: 'b203ec39300e5b7e97b6e20986183cbd0b797859' | sha1git: 'b203ec39300e5b7e97b6e20986183cbd0b797859' | ||||
}] | }] | ||||
}; | }; | ||||
this.origin = [{ | this.origin = [{ | ||||
url: 'https://github.com/memononen/libtess2', | url: 'https://github.com/memononen/libtess2', | ||||
type: 'git', | |||||
content: [{ | content: [{ | ||||
path: 'Source/tess.h' | path: 'Source/tess.h' | ||||
}, { | }, { | ||||
path: 'premake4.lua' | path: 'premake4.lua' | ||||
}], | }], | ||||
directory: [{ | directory: [{ | ||||
path: 'Source', | path: 'Source', | ||||
id: 'cd19126d815470b28919d64b2a8e6a3e37f900dd' | id: 'cd19126d815470b28919d64b2a8e6a3e37f900dd' | ||||
}], | }], | ||||
revisions: [], | revisions: [], | ||||
invalidSubDir: 'Source1' | invalidSubDir: 'Source1' | ||||
}, { | }, { | ||||
url: 'https://github.com/wcoder/highlightjs-line-numbers.js', | url: 'https://github.com/wcoder/highlightjs-line-numbers.js', | ||||
type: 'git', | |||||
content: [], | content: [], | ||||
directory: [], | directory: [], | ||||
revisions: ['1c480a4573d2a003fc2630c21c2b25829de49972'] | revisions: ['1c480a4573d2a003fc2630c21c2b25829de49972'] | ||||
}]; | }]; | ||||
const getMetadataForOrigin = async originUrl => { | const getMetadataForOrigin = async originUrl => { | ||||
const originVisitsApiUrl = this.Urls.api_1_origin_visits(originUrl); | const originVisitsApiUrl = this.Urls.api_1_origin_visits(originUrl); | ||||
const originVisits = await httpGetJson(originVisitsApiUrl); | const originVisits = await httpGetJson(originVisitsApiUrl); | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |