Skip to content

Commit

Permalink
ISPN-15081 more package updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dpanshug committed Aug 10, 2023
1 parent 6473eb7 commit 4c3d9f3
Show file tree
Hide file tree
Showing 45 changed files with 4,037 additions and 3,544 deletions.
1 change: 1 addition & 0 deletions .cache_1b2yk2k

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 16.0.0
node-version: 18.17.0
cache: 'npm'

- name: Install
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/cluster-welcome.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ describe('Welcome page', () => {
});

it('successfully opens and views About page', () => {
cy.login(Cypress.env('username'), Cypress.env('password'));
cy.get('[data-cy=aboutInfoQuestionMark]').click();
cy.contains('Documentation');

Expand Down
14 changes: 8 additions & 6 deletions cypress/e2e/proto-schema.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('Proto Schema CRUD', () => {
cy.contains('test-10.proto');

//Changing the number of items on the page
cy.get('[id^="pagination-schemas-top-toggle"]').click();
cy.get('[id^="pagination-schemas-top-toggle"]').first().click();
cy.get('[data-action=per-page-10] .pf-v5-c-menu__item-select-icon').should('exist'); //Verifying the selected option
cy.get('[data-action=per-page-20] .pf-v5-c-menu__item-select-icon').should('not.exist');
cy.get('[data-action=per-page-50] .pf-v5-c-menu__item-select-icon').should('not.exist');
Expand All @@ -40,7 +40,7 @@ describe('Proto Schema CRUD', () => {

//Changing the number of items on the page back to 10
cy.get('#primary-app-container').scrollTo('bottom');
cy.get('[id^="pagination-schemas-top-toggle"]').click();
cy.get('[id^="pagination-schemas-top-toggle"]').first().click();
cy.get('[data-action=per-page-10] .pf-v5-c-menu__item-select-icon').should('not.exist'); //Verifying the selected option
cy.get('[data-action=per-page-20] .pf-v5-c-menu__item-select-icon').should('exist');
cy.get('[data-action=per-page-50] .pf-v5-c-menu__item-select-icon').should('not.exist');
Expand All @@ -67,7 +67,7 @@ describe('Proto Schema CRUD', () => {

//Updating existing schema
cy.contains('Schema aTestSchema.proto has errors');
cy.get('[data-cy="actions-aTestSchema.proto"]>div>button').click();
cy.get('[data-cy="actions-aTestSchema.proto"]>button').click();
cy.get('[aria-label="editSchemaAction"]').click();
cy.contains('schemaValue');
cy.contains('Save');
Expand All @@ -81,7 +81,7 @@ describe('Proto Schema CRUD', () => {

//Updating existing schema with correct value
cy.contains('Schema aTestSchema.proto has errors');
cy.get('[data-cy="actions-aTestSchema.proto"]>div>button').click();
cy.get('[data-cy="actions-aTestSchema.proto"]>button').click();
cy.get('[aria-label="editSchemaAction"]').click();
cy.get('[data-cy=schemaEditArea]').contains('schemaNewValue');
cy.get('[data-cy=schemaEditArea]').type('{selectall}', { timeout: 10000 });
Expand All @@ -92,12 +92,14 @@ describe('Proto Schema CRUD', () => {
cy.get('button[aria-label="confirm-edit-schema-button"]').click();
cy.contains('Schema aTestSchema.proto updated.');
cy.get('.pf-v5-c-alert__action > .pf-v5-c-button').click(); //Closing alert popup.
cy.get('[data-cy="aTestSchema.protoConfig"]').click();
cy.wait(1000)
cy.contains('schemaNewValue').should('not.exist');
cy.contains('ExampleProto');
cy.contains('Schema aTestSchema.proto has errors').should('not.exist');

//Deleting schema
cy.get('[data-cy="actions-aTestSchema.proto"]>div>button').click();
cy.get('[data-cy="actions-aTestSchema.proto"]>button').click();
cy.get('[aria-label="deleteSchemaAction"]').click();
cy.contains('Delete schema?');
cy.get('button[aria-label="confirm-delete-schema-button"]').click();
Expand Down Expand Up @@ -128,7 +130,7 @@ describe('Proto Schema CRUD', () => {
cy.contains('*/name!@#$with%^&*special()_+symbols{}|":isnot?');
cy.contains('><saved>.proto')
//Deleting schema
cy.get('[data-cy^="actions-1234567890+-"]>div>button').click();
cy.get('[data-cy^="actions-1234567890+-"]>button').click();
cy.get('[aria-label="deleteSchemaAction"]').click();
cy.contains('Delete schema?');
cy.get('button[aria-label="confirm-delete-schema-button"]').click();
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/rbac_func.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,12 @@ describe('RBAC Functionlity Tests', () => {
cy.contains('message Person');
if (isAdmin) {
cy.get('button[aria-label="create-schema-button"]').should('exist');
cy.get('[data-cy="actions-people.proto"]>div>button').click();
cy.get('[data-cy="actions-people.proto"]>button').click();
cy.get('[aria-label="editSchemaAction"]').should('exist');
cy.get('[aria-label="deleteSchemaAction"]').should('exist');
} else {
cy.get('button[aria-label="create-schema-button"]').should('not.exist');
cy.get('[data-cy="actions-people.proto"]>div>button').click();
cy.get('[data-cy="actions-people.proto"]>button').click();
cy.get('[aria-label="editSchemaAction"]').should('exist');
cy.get('[aria-label="deleteSchemaAction"]').should('exist');
}
Expand Down
Loading

0 comments on commit 4c3d9f3

Please sign in to comment.