Skip to content

Commit

Permalink
added wait to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
RedOrNot committed Aug 26, 2024
1 parent 3e71e5a commit 6584ba6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/e2e/hub/collections-detail.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('Collections Details', () => {
cy.deleteHubCollectionByName(collectionName);
});

it.skip('user can delete version from repository', () => {
it('user can delete version from repository', () => {
cy.uploadCollection(collectionName, namespace.name, '1.0.0');
cy.uploadCollection(collectionName, namespace.name, '1.1.0');

Expand All @@ -118,6 +118,7 @@ describe('Collections Details', () => {
'contain',
`/collections/validated/${namespace.name}/${collectionName}/details?version=1.0.0`
);
cy.wait(1000);
cy.selectDetailsPageKebabAction('delete-version-from-repository');
cy.clickButton(/^Close$/);
//Verify the version has been deleted
Expand All @@ -130,6 +131,7 @@ describe('Collections Details', () => {
'contain',
`/collections/validated/${namespace.name}/${collectionName}/details`
);
cy.wait(1000);
cy.get(`[data-cy="browse-collection-version"] button`).first().click();
cy.get('.pf-v5-c-menu__item-text').should('have.length', '1').contains('1.1.0');
cy.deleteHubCollectionByName(collectionName);
Expand Down

0 comments on commit 6584ba6

Please sign in to comment.