graphdb-workbench-tests
Version:
Cypress tests for GraphDB workbench
26 lines (20 loc) • 929 B
JavaScript
import {BackupAndRestoreSteps} from "../../../steps/monitoring/backup-and-restore-steps";
import {BackupAndRestoreStubs} from "../../../stubs/backup-and-restore-stubs";
describe("Monitoring 'Backup And Restore'", () => {
const repositoryId = 'backup-and-restore-' + Date.now();
beforeEach(() => {
cy.createRepository({id: repositoryId});
cy.presetRepository(repositoryId);
});
afterEach(() => {
cy.deleteRepository(repositoryId);
});
it('should show running backup or restore operations', () => {
// When visit the "Backup and restore page",
BackupAndRestoreSteps.visit();
// and there are run backup and restore operations.
BackupAndRestoreStubs.stubBackupAndRestoreResponse();
// Then I expect to see information for all run operations.
BackupAndRestoreSteps.getBackupAndRestoreResults().should('have.length', 1);
});
});