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

[stable] Update build #2672

Merged
merged 74 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
3df1d80
RHCLOUD-28295 - update chrome to use autosuggest search API
florkbr Oct 9, 2023
4cbd14a
Add name for context switcher dropdown.
Hyperkid123 Oct 10, 2023
ec2e2f5
Use both APIs and remove wildcard matching and fuzzy matching
florkbr Oct 19, 2023
d8ba38a
update the support case url
InsaneZein Oct 23, 2023
4bf1a78
lint
InsaneZein Oct 23, 2023
1add216
Merge pull request #2671 from RedHatInsights/update-support-case-url
Hyperkid123 Oct 24, 2023
a997a56
Add icon for AI/ML
epwinchell Oct 24, 2023
8dc778a
Merge pull request #2673 from epwinchell/lightbulb
Hyperkid123 Oct 25, 2023
9b36b68
fix support options link
InsaneZein Oct 25, 2023
da85907
make line more readable
InsaneZein Oct 26, 2023
888ac00
lint
InsaneZein Oct 26, 2023
2dbda74
Attempt to pass autosuggest results into search solr endpoint
florkbr Oct 27, 2023
d8eadf6
Rename preview flag in redirects and use feature flag for integration…
karelhala Oct 30, 2023
ea51700
Bump chrome dependency
Hyperkid123 Nov 1, 2023
3936cf4
Merge branch 'master' into last-visited-debounce
Hyperkid123 Nov 1, 2023
88ed9a1
Merge pull request #2676 from Hyperkid123/last-visited-debounce
Hyperkid123 Nov 1, 2023
66ad46a
Use autosuggest search API.
Hyperkid123 Nov 1, 2023
a8ffe60
Merge branch 'master' into fix-supportoptions-link
InsaneZein Nov 1, 2023
9c8a4f9
fixes internal dropdown link not redirecting
InsaneZein Nov 1, 2023
ed98aaf
remove debug code
InsaneZein Nov 1, 2023
5f6dd39
Merge pull request #2674 from RedHatInsights/fix-supportoptions-link
Hyperkid123 Nov 2, 2023
f8fea93
Merge branch 'master' into fix-internal-link
karelhala Nov 2, 2023
d6f0a38
Allow subs navigation on production (#2677)
karelhala Nov 2, 2023
7c42003
Merge branch 'master' into fix-internal-link
Hyperkid123 Nov 2, 2023
eeda7c1
Merge branch 'master' into rhcloud-28295
Hyperkid123 Nov 2, 2023
e740df9
Merge pull request #2658 from florkbr/rhcloud-28295
Hyperkid123 Nov 2, 2023
fcc116c
Merge branch 'master' into fix-internal-link
InsaneZein Nov 2, 2023
d6638e4
Do not include empty bundle in navigations
karelhala Nov 2, 2023
92e3d7c
Merge pull request #2679 from karelhala/no-empty-bundle
Hyperkid123 Nov 3, 2023
84c22e5
Use improved search suggester.
Hyperkid123 Nov 3, 2023
69e0e3c
Merge pull request #2680 from Hyperkid123/improved-suggester
Hyperkid123 Nov 6, 2023
f10f1f7
Combine suggester restuls.
Hyperkid123 Nov 6, 2023
7aaa8f6
Merge branch 'master' into use-improved-suggester
Hyperkid123 Nov 6, 2023
d2df52b
Merge pull request #2681 from Hyperkid123/use-improved-suggester
Hyperkid123 Nov 6, 2023
118754c
Bump chrome package.
Hyperkid123 Nov 6, 2023
03cd4c7
Merge branch 'master' into lastvisited-localstorage
Hyperkid123 Nov 6, 2023
e2fbfd1
Merge pull request #2682 from Hyperkid123/lastvisited-localstorage
Hyperkid123 Nov 6, 2023
1117623
Merge branch 'master' into fix-internal-link
InsaneZein Nov 6, 2023
05c944c
Merge pull request #2678 from RedHatInsights/fix-internal-link
Hyperkid123 Nov 6, 2023
8306110
update to use keycloak in stage itless
aneelac22 Nov 6, 2023
a60031a
Merge pull request #2687 from aneelac22/keycloak-updates
aneelac22 Nov 6, 2023
2d4c38d
Add beta build for ITLess env
aneelac22 Nov 6, 2023
cbc57b0
update sat url for prod
aneelac22 Nov 6, 2023
d9c412a
Merge pull request #2688 from aneelac22/prod-updates
aneelac22 Nov 6, 2023
740cab4
remove internal from all ITLess envs
aneelac22 Nov 6, 2023
494be91
Merge pull request #2690 from aneelac22/remove-internal
aneelac22 Nov 6, 2023
806e325
Change event WS type for drawer (#2686)
karelhala Nov 7, 2023
054b30e
Unblock RH cypress hosts. (#2691)
Hyperkid123 Nov 7, 2023
22cca26
Enable all services filtering by service group titles.
Hyperkid123 Nov 7, 2023
1f257c4
Merge pull request #2692 from Hyperkid123/all-services-subtitle-search
Hyperkid123 Nov 7, 2023
6151a45
Update dependecies.
Hyperkid123 Nov 7, 2023
d1e4223
Restyle service menu
epwinchell Nov 7, 2023
840d50e
Merge branch 'master' into service_menu_restyle
epwinchell Nov 7, 2023
146eaa0
lint fix
epwinchell Nov 7, 2023
bc6057d
Add pendo badge click event tracking.
Hyperkid123 Nov 8, 2023
a40a953
Merge pull request #2693 from epwinchell/service_menu_restyle
Hyperkid123 Nov 8, 2023
ddc7bce
Merge pull request #2694 from Hyperkid123/pendo-bubble-click-tracking
Hyperkid123 Nov 8, 2023
1440c85
Update itless stage SSO URL
florkbr Nov 8, 2023
559acb7
Merge pull request #2695 from florkbr/update-itless-stage-sso-url
florkbr Nov 8, 2023
4b9f2b9
Merge branch 'master' into update-dependencies
fhlavac Nov 9, 2023
360159b
Merge pull request #2662 from Hyperkid123/update-dependencies
Hyperkid123 Nov 10, 2023
1b4dc2c
Merge branch 'master' into add-name-tam-tool
Hyperkid123 Nov 10, 2023
cda9f56
Merge pull request #2661 from Hyperkid123/add-name-tam-tool
Hyperkid123 Nov 10, 2023
0add15a
Disable pendo on stage landing page.
Hyperkid123 Nov 16, 2023
fc71038
Merge pull request #2701 from Hyperkid123/disable-pendo-landing-page
Hyperkid123 Nov 16, 2023
db40e14
use conditional accessor to pendo
Hyperkid123 Nov 16, 2023
59c36cb
Merge pull request #2703 from Hyperkid123/pendo-conditional
Hyperkid123 Nov 16, 2023
eb3a47b
Add aditional logic for pendo guides stopping.
Hyperkid123 Nov 16, 2023
f387ab1
Merge pull request #2704 from Hyperkid123/pendo-functions-do-not-exist
Hyperkid123 Nov 16, 2023
8b07c1f
Remove safe pendo handlers.
Hyperkid123 Nov 16, 2023
8fd5a7f
Move console.err after pendo retries are exhausted
fhlavac Nov 16, 2023
2c3dc9f
Merge pull request #2706 from fhlavac/master
florkbr Nov 16, 2023
8521146
Call initSuccess for cognito envs (causes cs-jwt to be set)
florkbr Nov 17, 2023
2853d38
Merge pull request #2707 from florkbr/fix-cs-jwt-not-set-in-itless
florkbr Nov 17, 2023
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
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineConfig({
},
},
e2e: {
blockHosts: ['static.redhat.com', 'consent.trustarc.com', 'www.redhat.com/en/cms/ajax/site-switcher'],
blockHosts: ['consent.trustarc.com'],
baseUrl: 'https://stage.foo.redhat.com:1337/beta',
env: {
E2E_USER: process.env.E2E_USER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
it('should close all services dropdown in link matches current pathname', () => {
function checkMenuClosed() {
cy.get('.pf-v5-c-menu-toggle__text').click();
cy.contains('Browse all services').should('exist');
cy.contains('All services').should('exist');
cy.contains('Favorites').click();
cy.contains('Test section').click();
cy.contains('Test link').click();
cy.contains('Browse all services').should('not.exist');
cy.contains('All services').should('not.exist');
}
cy.intercept('http://localhost:8080/api/chrome-service/v1/static/stable/stage/services/services.json', [
{
Expand All @@ -45,7 +45,7 @@
},
]);
cy.window().then((win) => {
(win as any).foo = {

Check warning on line 48 in cypress/component/AllServicesDropdown/AllServicesDropdown.cy.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

Check warning on line 48 in cypress/component/AllServicesDropdown/AllServicesDropdown.cy.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
init: () => undefined,
get: () => () => ({
default: () => <div>Foo</div>,
Expand Down
74 changes: 74 additions & 0 deletions cypress/component/AllServicesPage/AllServicesPage.cy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import React from 'react';
import AllServices from '../../../src/layouts/AllServices';
import { BrowserRouter } from 'react-router-dom';
import { IntlProvider } from 'react-intl';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import { ScalprumProvider } from '@scalprum/react-core';
import { getVisibilityFunctions, initializeVisibilityFunctions } from '../../../src/utils/VisibilitySingleton';
import userFixture from '../../fixtures/testUser.json';
import { ChromeUser } from '@redhat-cloud-services/types';

describe('<AllServices />', () => {
beforeEach(() => {
// mock chrome and scalprum generic requests
cy.intercept('http://localhost:8080/api/chrome-service/v1/static/stable/stage/services/services.json', {
status: 200,
fixture: 'services.json',
});
cy.intercept('http://localhost:8080/entry?cacheBuster=*', '');
cy.intercept('http://localhost:8080/foo/bar.json', {
foo: {
entry: ['/entry'],
},
});
cy.intercept('http://localhost:8080/api/chrome-service/v1/static/stable/stage/navigation/settings-navigation.json?ts=*', {
status: 200,
fixture: 'settings-navigation.json',
});
// cy.intercept('http://localhost:8080/api/chrome-service/v1/static/stable/stage/navigation/*-navigation.json?ts=*', {
// data: [],
// });
});

it('should filter by service category title', () => {
initializeVisibilityFunctions({
getToken: () => Promise.resolve(''),
getUser: () => Promise.resolve(userFixture as unknown as ChromeUser),
getUserPermissions: () => Promise.resolve([]),
});
const visibilityFunctions = getVisibilityFunctions();
const store = createStore(() => ({
chrome: {
moduleRoutes: [
{
path: '/test/link',
scope: 'foo',
module: 'bar',
},
],
},
}));
cy.mount(
<ScalprumProvider
config={{}}
api={{
chrome: {
visibilityFunctions,
},
}}
>
<BrowserRouter>
<Provider store={store}>
<IntlProvider locale="en">
<AllServices />
</IntlProvider>
</Provider>
</BrowserRouter>
</ScalprumProvider>
);

cy.get('.pf-v5-c-text-input-group__text-input').type('consoleset');
cy.contains('Console Settings').should('exist');
});
});
4 changes: 2 additions & 2 deletions cypress/e2e/release-gate/navigation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ describe('Navigation', () => {
cy.get('.chr-c-link-service-toggle').click();

// check if favorite services links exist
cy.contains('.pf-v5-c-tabs__link', 'My favorite services');
cy.contains('.pf-v5-c-tabs__link', 'Favorites');

// click on all services
cy.get('.chr-l-flex__item-browse-all-services a').click();
cy.get('.chr-l-stack__item-browse-all-services a').click();

// get users link
cy.get('p:contains("Users")').click();
Expand Down
69 changes: 0 additions & 69 deletions cypress/e2e/release-gate/search.cy.tsx

This file was deleted.

Loading
Loading