Changeset View
Changeset View
Standalone View
Standalone View
cypress/integration/origin-search.spec.js
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | context('Test valid persistent ids', function() { | ||||
it('should resolve directory', function() { | it('should resolve directory', function() { | ||||
const redirectUrl = this.Urls.browse_directory(origin.content[0].directory); | const redirectUrl = this.Urls.browse_directory(origin.content[0].directory); | ||||
const persistentId = `swh:1:dir:${origin.content[0].directory}`; | const persistentId = `swh:1:dir:${origin.content[0].directory}`; | ||||
searchShouldRedirect(persistentId, redirectUrl); | searchShouldRedirect(persistentId, redirectUrl); | ||||
}); | }); | ||||
it('should resolve revision', function() { | it('should resolve revision', function() { | ||||
const redirectUrl = this.Urls.browse_revision(origin.revision); | const redirectUrl = this.Urls.browse_revision(origin.revision[0]); | ||||
const persistentId = `swh:1:rev:${origin.revision}`; | const persistentId = `swh:1:rev:${origin.revision[0]}`; | ||||
searchShouldRedirect(persistentId, redirectUrl); | searchShouldRedirect(persistentId, redirectUrl); | ||||
}); | }); | ||||
it('should resolve snapshot', function() { | it('should resolve snapshot', function() { | ||||
const redirectUrl = this.Urls.browse_snapshot_directory(origin.snapshot); | const redirectUrl = this.Urls.browse_snapshot_directory(origin.snapshot); | ||||
const persistentId = `swh:1:snp:${origin.snapshot}`; | const persistentId = `swh:1:snp:${origin.snapshot}`; | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |