Login

Screenshots for the Koha manual

New screenshots | All screenshots | Full test results | Manual | Manual in Spanish

Image details

Image name

searchresults (#1364)

Job

No job planned.

Difficulty

Easy

Spec (updated on Tue Apr 2 14:17:25 2024)

describe("searching/searchresults", function () {
    beforeEach(() => {
        cy.login();
        cy.set_cookie_lang();
    });

    it("searchresults", function () {
        cy.visit("/cgi-bin/koha/authorities/detail-biblio-search.pl?q=shakespeare");
        cy.get("main").should('be.visible').screenshot("searchresults");
    });
});

Spec data

Page

search.pl?q=shakespeare

Element selector

main

Missing selector

workflow


    

Notes

Additional KTD data

Old

Test failure

CypressError: `cy.visit()` failed trying to load:

http://kohadev.mydnsname.org:8081/cgi-bin/koha/authorities/detail-biblio-search.pl?q=shakespeare

The response we received from your web server was:

  > 500: Internal Server Error

This was considered a failure because the status code was not `2xx`.

If you do not want status codes to cause failures pass the option: `failOnStatusCode: false`
    at <unknown> (http://kohadev.mydnsname.org:8081/__cypress/runner/cypress_runner.js:130296:76)
    at visitFailedByErr (http://kohadev.mydnsname.org:8081/__cypress/runner/cypress_runner.js:129704:12)
    at <unknown> (http://kohadev.mydnsname.org:8081/__cypress/runner/cypress_runner.js:130279:13)
    at tryCatcher (http://kohadev.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (http://kohadev.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (http://kohadev.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (http://kohadev.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (http://kohadev.mydnsname.org:8081/__cypress/runner/cypress_runner.js:1697:18)
    at _drainQueueStep (http://kohadev.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2407:12)
    at _drainQueue (http://kohadev.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2400:9)
    at Async._drainQueues (http://kohadev.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2416:5)
    at Async.drainQueues (http://kohadev.mydnsname.org:8081/__cypress/runner/cypress_runner.js:2286:14)
From Your Spec Code:
    at Context.eval (webpack://koha/./cypress/integration/searching/searchresults.ts:8:11)