Page MenuHomeSoftware Heritage
Paste P1069

cypress
ActivePublic

Authored by jayeshv on Jun 14 2021, 2:35 PM.
it('should redirect to browse when origin url is searched', function() {
71 cy.get('#swh-origins-url-patterns')
72 .type(origin.url);
73 cy.get('.swh-search-icon')
74 .click();
75
76 cy.location('pathname')
77 .should('eq', this.Urls.browse_origin_directory());
78 c
79 cy.location('search')
80 .should('eq', `?origin_url=${origin.url}`);
81 });