Skip to content

Commit

Permalink
chore: Fix NPM audit vulnerabilities in the API Catalog (#3210)
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Jareš <[email protected]>
  • Loading branch information
pj892031 authored Nov 23, 2023
1 parent 8a26c44 commit c9d9bfd
Show file tree
Hide file tree
Showing 37 changed files with 10,635 additions and 14,167 deletions.
24 changes: 24 additions & 0 deletions api-catalog-ui/frontend/cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const { defineConfig } = require('cypress')

module.exports = defineConfig({
env: {
catalogHomePage: 'https://localhost:10010/apicatalog/ui/v1',
viewportWidth: 1400,
viewportHeight: 980,
username: 'USER',
password: 'validPassword',
},
reporter: 'junit',
defaultCommandTimeout: 30000,
reporterOptions: {
mochaFile: 'test-results/e2e/output-[hash].xml',
},
video: false,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config)
},
},
})
15 changes: 0 additions & 15 deletions api-catalog-ui/frontend/cypress.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/// <reference types="Cypress" />

describe('>>> Login bad test', () => {
it('succesfully loads login page', () => {
beforeEach('succesfully loads login page', () => {
cy.visit(`${Cypress.env('catalogHomePage')}/`);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
/// <reference types="Cypress" />

describe('>>> Login ok page test', () => {
it('succesfully loads login page', () => {
cy.visit(`${Cypress.env('catalogHomePage')}`);
beforeEach('succesfully loads login page', () => {
cy.visit(`${Cypress.env('catalogHomePage')}/#/`);
});

it('should not display header', () => {
Expand Down
Loading

0 comments on commit c9d9bfd

Please sign in to comment.