Skip to content

Commit

Permalink
edit ee test
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaiahWren committed Aug 26, 2024
1 parent 569782d commit d31f014
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion cypress/e2e/hub/execution-environments.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('Execution Environments', () => {
});
});

it('can add and delete a new execution environment', () => {
it('can add, edit, and delete a new execution environment', () => {
cy.createHubRemoteRegistry().then((remoteRegistry) => {
const eeName = `execution_environment_${randomString(3, undefined, { isLowercase: true })}`;
const upstreamName = `upstream_name_${randomString(3, undefined, { isLowercase: true })}`;
Expand Down Expand Up @@ -78,6 +78,25 @@ describe('Execution Environments', () => {
cy.url().should('contain', '/execution-environments/');
cy.filterTableBySingleText(eeName);
cy.get('tbody').find('tr').should('have.length', 1);
// edit ee
cy.get('tbody').within(() => {
cy.getByDataCy('name-column-cell').should('contain', eeName);
cy.get('[data-cy="edit-execution-environment"]').click();
});
cy.get('[data-cy="description"]').click().type('nice new description');
cy.get('[data-cy="upstream-name"]').click().clear().type('pulp/pulp-fixtures/new');
cy.getByDataCy('Submit').click();
cy.url().should('contain', '/execution-environments/');
cy.filterTableBySingleText(eeName);
cy.get('[data-cy="description-column-cell"]').should('contain', 'nice new description');
cy.get('tbody').within(() => {
cy.getByDataCy('name-column-cell').should('contain', eeName);
cy.get('[data-cy="edit-execution-environment"]').click();
});
cy.get('[data-cy="upstream-name"]').click().clear().type(upstreamName);
cy.getByDataCy('Submit').click();
// delete ee
cy.filterTableBySingleText(eeName);
cy.get('tbody').within(() => {
cy.getByDataCy('name-column-cell').should('contain', eeName);
cy.get('[data-cy="actions-dropdown"]').click();
Expand Down

0 comments on commit d31f014

Please sign in to comment.