.and('not.contain', 'anotherKey: anotherValue');
// Check that the file listing show both read & write operations
cy.get('[data-cy=collection-files-panel]').within(() => {
- cy.wait(1000);
- cy.root().should('contain', fileName);
+ cy.get('[data-cy=collection-files-right-panel]', { timeout: 5000 })
+ .should('contain', fileName);
if (isWritable) {
cy.get('[data-cy=upload-button]')
.should(`${isWritable ? '' : 'not.'}contain`, 'Upload data');
'bar' // make sure we can go back to the original name as a last step
];
eachPair(names, (from, to) => {
- cy.get('[data-cy=collection-files-panel]')
+ cy.waitForDom().get('[data-cy=collection-files-panel]')
.contains(`${from}`).rightclick();
cy.get('[data-cy=context-menu]')
.contains('Rename')
cy.get('[data-cy=form-submit-btn]').click();
- cy.get('.layout-pane-primary', { wait: 12000 }).contains('Projects').click();
+ cy.get('.layout-pane-primary', { timeout: 12000 }).contains('Projects').click();
cy.get('main').contains(`Files extracted from: ${this.collection.name}`).should('exist');
});
}).as('testCollection1');
});
- it.only('uploads a file and checks the collection UI to be fresh', () => {
+ it('uploads a file and checks the collection UI to be fresh', () => {
cy.getAll('@testCollection1')
.then(function([testCollection1]) {
cy.loginAs(activeUser);
cy.fixture('files/5mb.bin', 'base64').then(content => {
cy.get('[data-cy=drag-and-drop]').upload(content, '5mb_a.bin');
cy.get('[data-cy=form-submit-btn]').click();
- // cy.get('[data-cy=form-submit-btn]').should('not.exist');
+ cy.get('[data-cy=form-submit-btn]').should('not.exist');
cy.get('[data-cy=collection-files-panel]')
.contains('5mb_a.bin').should('exist');
cy.get('[data-cy=collection-file-count]').should('contain', '3');
cy.fixture('files/5mb.bin', 'base64').then(content => {
cy.get('[data-cy=drag-and-drop]').upload(content, '5mb_b.bin');
cy.get('[data-cy=form-submit-btn]').click();
- // cy.get('[data-cy=form-submit-btn]').should('not.exist');
- cy.get('[data-cy=collection-files-panel]')
+ cy.get('[data-cy=form-submit-btn]').should('not.exist');
+ cy.get('[data-cy=collection-files-right-panel]')
.contains('5mb_b.bin').should('exist');
});
});