Skip to content

Commit

Permalink
fixed all conflicts with landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
rsun19 authored and karelhala committed Oct 17, 2023
1 parent 30a3d2a commit 0fcadca
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions cypress/e2e/release-gate/landing-page.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ describe('Landing page', () => {
for (let i = 0; i < FAVORITED_OVERFILLS.length; i++) {
cy.get('.chr-c-favorite-service__tile').eq(i).find('.pf-u-mb-sm').should('contain', FAVORITED_OVERFILLS[i]);
}
cy.contains('View my favorite services').should('exist');
cy.contains('My favorite services').should('exist');
cy.contains('Recently visited').should('exist');
for (let i = 0; i < lastVisitedArray.length; i++) {
cy.get('small[data-ouia-component-type="PF4/Text"]').eq(i).should('contain', parsedLastVisited.data[i].bundle);
Expand All @@ -248,9 +248,24 @@ describe('Landing page', () => {
cy.screenshot();
});

it('tooltip is shown when hovering over the gear/question icon', () => {
it('View favorited services', () => {
cy.visit('/');
cy.login();
cy.visit('/');
cy.reload();

cy.intercept({
method: 'GET',
url: '**/services/services.json',
}).as('services');

cy.wait('@services').its('response.statusCode').should('equal', 200);

// check if a favorites link exists on the page
cy.contains('My favorite services').should('exist');
});

it('tooltip is shown when hovering over the gear/question icon', () => {
cy.visit('/');
cy.wait(4000);
cy.get('.tooltip-button-settings-cy').invoke('show').trigger('mouseenter').wait(1000);
Expand Down

0 comments on commit 0fcadca

Please sign in to comment.