graphdb-workbench-tests
Version:
Cypress tests for GraphDB workbench
27 lines (22 loc) • 1.2 kB
JavaScript
import {LicenseSteps} from "../../steps/license-steps";
import {LicenseStubs} from "../../stubs/license-stubs";
describe('License', () => {
it('Should displays an informational message if the license is provided through a file (hardcoded)', () => {
LicenseStubs.stubLicenseHardcoded(true);
LicenseStubs.stubEnterpriseLicense();
LicenseSteps.visit();
LicenseSteps.getLicenseHeader().should('have.text', "GraphDB Enterprise Edition");
LicenseSteps.getHardcodedAlertMessage().should('exist');
LicenseSteps.getRemoveLicenseButton().should('not.exist');
LicenseSteps.getSetNewLicenseButton().should('not.exist');
});
it('Should not displays an informational message if the license is not provided through a file (not hardcoded)', () => {
LicenseStubs.stubLicenseHardcoded(false);
LicenseStubs.stubEnterpriseLicense();
LicenseSteps.visit();
LicenseSteps.getLicenseHeader().should('have.text', "GraphDB Enterprise Edition");
LicenseSteps.getHardcodedAlertMessage().should('not.exist');
LicenseSteps.getRemoveLicenseButton().should('exist');
LicenseSteps.getSetNewLicenseButton().should('exist');
});
});