Skip to content

Commit

Permalink
Add scrollIntoView
Browse files Browse the repository at this point in the history
  • Loading branch information
jordojordo committed Sep 23, 2024
1 parent c5f6c70 commit ad6f23e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cypress/e2e/tests/pages/explorer/apps/charts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ describe('Apps/Charts', { tags: ['@explorer', '@adminUser'] }, () => {
it('should call fetch when route query changes with valid parameters', () => {
const chartName = 'Logging';

chartsPage.getChartByName(chartName).should('exist').and('be.visible').click();
chartsPage.getChartByName(chartName)
.should('exist')
.scrollIntoView()
.should('be.visible')
.click();

const chartPage = new ChartPage();

Expand All @@ -105,7 +109,11 @@ describe('Apps/Charts', { tags: ['@explorer', '@adminUser'] }, () => {
it('should not call fetch when navigating back to charts page', () => {
const chartName = 'Logging';

chartsPage.getChartByName(chartName).should('exist').and('be.visible').click();
chartsPage.getChartByName(chartName)
.should('exist')
.scrollIntoView()
.should('be.visible')
.click();

const chartPage = new ChartPage();

Expand Down

0 comments on commit ad6f23e

Please sign in to comment.