2022-11-08 04:21:10 -08:00
|
|
|
// ***********************************************************
|
|
|
|
// This example support/e2e.js is processed and
|
|
|
|
// loaded automatically before your test files.
|
|
|
|
//
|
|
|
|
// This is a great place to put global configuration and
|
|
|
|
// behavior that modifies Cypress.
|
|
|
|
//
|
|
|
|
// You can change the location of this file or turn off
|
|
|
|
// automatically serving support files with the
|
|
|
|
// 'supportFile' configuration option.
|
|
|
|
//
|
|
|
|
// You can read more here:
|
|
|
|
// https://on.cypress.io/configuration
|
|
|
|
// ***********************************************************
|
|
|
|
|
2022-12-15 07:39:59 -08:00
|
|
|
import './commands';
|
2023-02-03 04:14:59 -08:00
|
|
|
|
|
|
|
// Load custom nodes and credentials fixtures
|
|
|
|
beforeEach(() => {
|
2023-03-10 07:54:54 -08:00
|
|
|
cy.intercept('GET', '/rest/settings').as('loadSettings');
|
|
|
|
cy.intercept('GET', '/rest/login').as('loadLogin');
|
2023-02-03 04:14:59 -08:00
|
|
|
|
2023-03-10 07:54:54 -08:00
|
|
|
// Always intercept the request to test credentials and return a success
|
|
|
|
cy.intercept('POST', '/rest/credentials/test', {
|
|
|
|
statusCode: 200,
|
|
|
|
body: {
|
|
|
|
data: { status: 'success', message: 'Tested successfully' },
|
|
|
|
}
|
|
|
|
});
|
2023-02-03 04:14:59 -08:00
|
|
|
})
|