From 39e8c1e3f07a38ae61a89904092550533665e785 Mon Sep 17 00:00:00 2001 From: Jenny <32821331+jenny-s51@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:49:07 -0500 Subject: [PATCH] format --- .../cypress/cypress/tests/mocked/application.cy.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/__tests__/cypress/cypress/tests/mocked/application.cy.ts b/frontend/src/__tests__/cypress/cypress/tests/mocked/application.cy.ts index 8109fe32d4..986adb12c1 100644 --- a/frontend/src/__tests__/cypress/cypress/tests/mocked/application.cy.ts +++ b/frontend/src/__tests__/cypress/cypress/tests/mocked/application.cy.ts @@ -7,7 +7,7 @@ import { import { mockDashboardConfig } from '~/__mocks__'; import { aboutDialog } from '~/__tests__/cypress/cypress/pages/aboutDialog'; import { mockConsoleLinks } from '~/__mocks__/mockConsoleLinks'; -import { loginDialog } from "../../pages/loginDialog"; +import { loginDialog } from '../../pages/loginDialog'; describe('Application', () => { it('should disallow access to the dashboard', () => { @@ -114,8 +114,7 @@ describe('Application', () => { aboutDialog.findText().should('contain.text', 'OpenShift'); aboutDialog.findProductName().should('contain.text', 'OpenShift AI'); }); - it('should show the login modal when receiving a 403 status code', () => { - + it.only('should show the login modal when receiving a 403 status code', () => { // Mock the intercept to return a 403 status code cy.interceptOdh('GET /api/config', { @@ -129,6 +128,8 @@ describe('Application', () => { cy.wait('@getData403'); // Verify that the login modal is displayed - loginDialog.findText().should('contain.text', 'Your session timed out. To continue working, log in'); - }); + loginDialog + .findText() + .should('contain.text', 'Your session timed out. To continue working, log in'); }); +});