describe("acquisitions/vendorsearch", function () {
const languages = ['en', 'es-ES', 'fr-FR'];
languages.forEach((lang) => {
describe(`in ${lang}`, () => {
beforeEach(function(){
// If previous test failed, skip this one
if (Cypress.env("TEST_FAILED")) {
this.skip();
}
cy.login();
cy.set_cookie_lang(lang);
});
it("vendorsearch", function () {
cy.visit("/cgi-bin/koha/acqui/booksellers.pl");
/* FIXME - Invalid step Add more than one vendor with similar name, with one inactive :# > Click New - Vendor > Enter a new vendor with the word 'Book' in the name > Enter a vendor type (i.e. Ebooks) > Click Save > Click New - Vendor > Enter a new vendor with the word 'Book' in the name > In 'Ordering information', click Inactive > Click Save */
/* FIXME - Invalid step Add baskets to the vendors : Go to Acquisitions > Search for vendors > Click New - Basket > Enter a basket name > Create items when : cataloging the record (to ease adding orders) > Click Save > Click Add to basket > From new (empty) record > Enter a title, quantity, fund, price > Click Save */
cy.get("main").should('be.visible').screenshot("vendorsearch");
});
});
});
afterEach(function () {
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
booksellers.pl
Interface
staff
Element selector
main
Missing selector
N
setup
workflow
Add more than one vendor with similar name, with one inactive :# > Click New - Vendor > Enter a new vendor with the word 'Book' in the name > Enter a vendor type (i.e. Ebooks) > Click Save > Click New - Vendor > Enter a new vendor with the word 'Book' in the name > In 'Ordering information', click Inactive > Click Save
Add baskets to the vendors : Go to Acquisitions > Search for vendors > Click New - Basket > Enter a basket name > Create items when : cataloging the record (to ease adding orders) > Click Save > Click Add to basket > From new (empty) record > Enter a title, quantity, fund, price > Click Save
teardown
Notes
Need more data, or take screenshot after a lot of the others that need data