Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-s51 committed Dec 19, 2024
1 parent 6127ce2 commit 39e8c1e
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Check warning on line 10 in frontend/src/__tests__/cypress/cypress/tests/mocked/application.cy.ts

View workflow job for this annotation

GitHub Actions / Tests (18.x)

import statements should have an absolute path

describe('Application', () => {
it('should disallow access to the dashboard', () => {
Expand Down Expand Up @@ -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', () => {

Check failure on line 117 in frontend/src/__tests__/cypress/cypress/tests/mocked/application.cy.ts

View workflow job for this annotation

GitHub Actions / Tests (18.x)

it.only not permitted
// Mock the intercept to return a 403 status code

cy.interceptOdh('GET /api/config', {
Expand All @@ -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');
});
});

0 comments on commit 39e8c1e

Please sign in to comment.