Skip to content

Commit

Permalink
bringing waits back
Browse files Browse the repository at this point in the history
  • Loading branch information
acruzgon committed Jan 10, 2025
1 parent 3dd3dff commit a61d073
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
17 changes: 9 additions & 8 deletions test/cypress/e2e/collections/collection_detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,19 @@ describe('Collection detail', () => {
cy.login();
});

it('can Deprecate', () => {
it('can Deprecate and then undeprecate', () => {
cy.visit(baseURL);
cy.wait(2000);
deprecate();
});

it('can Undeprecate', () => {
cy.visit(baseURL);
cy.wait(2000);
undeprecate();
});

it('should change the url when clicking on the tabs', () => {
cy.visit(baseURL);
cy.wait(1000);
cy.get('.title-box').should(
'have.text',
'collection_detail_test_collection',
);
const tabs = [
{
name: 'Documentation',
Expand Down Expand Up @@ -100,7 +98,10 @@ describe('Collection detail', () => {

it('should have working UI on install tab', () => {
cy.visit(baseURL);
cy.wait(2000);
cy.get('.title-box').should(
'have.text',
'collection_detail_test_collection',
);
// should have Install, License and Installation strings, and correct docs link
cy.get('.body').contains('Install');
cy.get('.body').contains('License');
Expand Down
4 changes: 2 additions & 2 deletions test/cypress/e2e/collections/collections_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ describe('Collections list Tests', () => {
undeprecateIfDeprecated();
});

it('can deprecate and then deprecate', () => {
it('can deprecate and then undeprecate', () => {
cy.get('[data-cy="view_type_list"] svg').click();
deprecate(true);
undeprecate();
});

it('can deprecate and then deprecate in Cards', () => {
it('can deprecate and then undeprecate in Cards', () => {
cy.get('[data-cy="view_type_card"] svg').click();
deprecate(false);
undeprecate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ describe('Execution Environments - Use in Controller', () => {

['Remote', 'Local'].forEach((type) => {
[list, detail].forEach((opener) => {
//Skipping because PULP config is needed to add controllers
it.skip(`Use in Controller - ${type} ${opener.name}`, () => {
opener(type);

Expand Down

0 comments on commit a61d073

Please sign in to comment.