Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISPN-15081 Patternfly 5 update #387

Merged
merged 9 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/interface-name-prefix": "off",
"prettier/prettier": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"react/prop-types": "off"
"react/prop-types": "off",
"@typescript-eslint/no-unused-vars": "off"
},
"env": {
"browser": true,
Expand Down
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: 12.16.3
node-version: 18.17.0
cache: 'npm'

- name: Install
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/cache-create-wizard-template.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Cache Creation Wizard', () => {
cy.get('[data-cy=wizardNextButton]').click();
cy.get('[data-cy=provideConfigArea] > button').click();

cy.get('.pf-c-code-editor__code textarea:first').click({force: true}).focused().type( '{downArrow}' )
cy.get('.pf-v5-c-code-editor__code textarea:first').click({force: true}).focused().type( '{downArrow}' )
.type("{shift}{end}").type("{del}{del}").type("{shift}{end}").type("{del}{del}").type("{shift}{end}").type("{del}{del}")
.type("{shift}{end}").type("{del}{del}").type("{shift}{end}").type("{del}{del}").type("{shift}{end}").type("{del}{del}")
.type("{shift}{end}").type("{del}{del}").type("{enter}{upArrow}").type('"distributed-cache": {{}"mode": "ASYNC", "statistics": true }{del}');
Expand All @@ -60,7 +60,7 @@ describe('Cache Creation Wizard', () => {
cy.get('[data-cy=wizardNextButton]').click();
cy.get('[data-cy=provideConfigArea] > button').click();

cy.get('.pf-c-code-editor__code textarea:first').click({force: true}).focused().type( '{downArrow}' )
cy.get('.pf-v5-c-code-editor__code textarea:first').click({force: true}).focused().type( '{downArrow}' )
.type("{shift}{end}").type("{del}{del}").type("{shift}{end}").type("{del}{del}").type("{shift}{end}").type("{del}{del}")
.type("{shift}{end}").type("{del}{del}").type("{shift}{end}").type("{del}{del}").type("{shift}{end}").type("{del}{del}")
.type("{shift}{end}").type("{del}{del}").type("{enter}{upArrow}")
Expand Down
20 changes: 10 additions & 10 deletions cypress/e2e/cache-detail.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Cache Detail Overview', () => {
cy.get('#value-entry').click().type('stringValue');
cy.get('[data-cy=addButton]').click();
cy.contains('Entry added to cache people.');
cy.get('.pf-c-alert__action > .pf-c-button').click(); //Closing alert popup.
cy.get('.pf-v5-c-alert__action > .pf-v5-c-button').click(); //Closing alert popup.
cy.contains('stringKey');
cy.contains('stringValue');

Expand All @@ -42,7 +42,7 @@ describe('Cache Detail Overview', () => {
.type('{"_type": "org.infinispan.Person","name": "Elaia","age" : 12}', { parseSpecialCharSequences: false });
cy.get('[data-cy=addButton]').click();
cy.contains('Entry added to cache people.');
cy.get('.pf-c-alert__action > .pf-c-button').click(); //Closing alert popup.
cy.get('.pf-v5-c-alert__action > .pf-v5-c-button').click(); //Closing alert popup.
cy.contains('org.infinispan.Person');

//Adding int32 key/value
Expand All @@ -60,7 +60,7 @@ describe('Cache Detail Overview', () => {
cy.get('#value-entry').click().clear().type(-2147483647);
cy.get('[data-cy=addButton]').click();
cy.contains('Entry added to cache people.');
cy.get('.pf-c-alert__action > .pf-c-button').click(); //Closing alert popup.
cy.get('.pf-v5-c-alert__action > .pf-v5-c-button').click(); //Closing alert popup.
cy.contains('2147483647');
cy.contains('-2147483647');

Expand All @@ -78,7 +78,7 @@ describe('Cache Detail Overview', () => {
cy.get('#int64').click();
cy.get('#value-entry').click().clear().type('-9223372036854775807');
cy.get('[data-cy=addButton]').click();
cy.get('.pf-c-alert__action > .pf-c-button').click(); //Closing alert popup.
cy.get('.pf-v5-c-alert__action > .pf-v5-c-button').click(); //Closing alert popup.
//cy.contains('9223372036854775807'); @TODO Uncomment when ISPN-14062 is fixed.
//cy.contains('-9223372036854775807');

Expand All @@ -93,7 +93,7 @@ describe('Cache Detail Overview', () => {
cy.get('#value-entry').click().type(1.7976931348623157e308);
cy.get('[data-cy=addButton]').click();
cy.contains('Entry added to cache people.');
cy.get('.pf-c-alert__action > .pf-c-button').click(); //Closing alert popup.
cy.get('.pf-v5-c-alert__action > .pf-v5-c-button').click(); //Closing alert popup.
cy.contains('1.7976931348623157e+308');
cy.contains('1.7976931348623157e+308');

Expand All @@ -108,7 +108,7 @@ describe('Cache Detail Overview', () => {
cy.get('#value-entry').click().type(3.402823466e-38);
cy.get('[data-cy=addButton]').click();
cy.contains('Entry added to cache people.');
cy.get('.pf-c-alert__action > .pf-c-button').click(); //Closing alert popup.
cy.get('.pf-v5-c-alert__action > .pf-v5-c-button').click(); //Closing alert popup.
//cy.contains('3.402823466e+38'); @TODO Uncomment when ISPN-14062 is fixed.
//cy.contains('3.402823466e-38');

Expand All @@ -123,7 +123,7 @@ describe('Cache Detail Overview', () => {
cy.get('#value-entry').click().type('ahoj');
cy.get('[data-cy=addButton]').click();
cy.contains('Entry added to cache people.');
cy.get('.pf-c-alert__action > .pf-c-button').click(); //Closing alert popup.
cy.get('.pf-v5-c-alert__action > .pf-v5-c-button').click(); //Closing alert popup.
cy.contains('true');
cy.contains('false');

Expand All @@ -138,7 +138,7 @@ describe('Cache Detail Overview', () => {
cy.get('#value-entry').click().type('10110010101001011001101110010101');
cy.get('[data-cy=addButton]').click();
cy.contains('Entry added to cache people.');
cy.get('.pf-c-alert__action > .pf-c-button').click(); //Closing alert popup.
cy.get('.pf-v5-c-alert__action > .pf-v5-c-button').click(); //Closing alert popup.
cy.contains('00110010101001011001101110010101');
cy.contains('00110010101001011001101110010101');

Expand Down Expand Up @@ -180,7 +180,7 @@ describe('Cache Detail Overview', () => {
cy.get('#value-entry').click().clear().type(-2147483647);
cy.get('[data-cy=addButton]').click();
cy.contains('Entry added to cache people.');
cy.get('.pf-c-alert__action > .pf-c-button').click(); //Closing alert popup.
cy.get('.pf-v5-c-alert__action > .pf-v5-c-button').click(); //Closing alert popup.
cy.contains('2147483647');
cy.contains('-2147483647');

Expand All @@ -194,7 +194,7 @@ describe('Cache Detail Overview', () => {
cy.get('#value-entry').click().clear().type('-9223372036854775807');
cy.get('[data-cy=addButton]').click();
cy.contains('Entry added to cache people.');
cy.get('.pf-c-alert__action > .pf-c-button').click(); //Closing alert popup.
cy.get('.pf-v5-c-alert__action > .pf-v5-c-button').click(); //Closing alert popup.
//cy.contains('9223372036854775807'); //@TODO Uncomment when ISPN-14062 is fixed.
//cy.contains('-9223372036854775807');

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
Loading