mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-24 23:15:23 -07:00
try again
This commit is contained in:
parent
610507d1f7
commit
ca8d998731
5 changed files with 38 additions and 6 deletions
|
@ -19,7 +19,7 @@ import './request.commands';
|
|||
import './plex-settings.commands';
|
||||
import './mock-data.commands';
|
||||
import "cypress-real-events/support";
|
||||
import '@bahmutov/cypress-cucumber-preprocessor/support';
|
||||
import '@badeball/cypress-cucumber-preprocessor/cypress';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
// Type definitions for mock data commands
|
||||
declare global {
|
||||
namespace Cypress {
|
||||
interface Chainable {
|
||||
addMock(mapping: any): Chainable<void>;
|
||||
clearMocks(): Chainable<void>;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Cypress.Commands.add('addMock', (mapping) => {
|
||||
cy.request({
|
||||
|
@ -13,3 +22,5 @@ Cypress.Commands.add('clearMocks', () => {
|
|||
url: 'http://localhost:32400/__admin/mappings'
|
||||
})
|
||||
})
|
||||
|
||||
export {};
|
|
@ -1,3 +1,11 @@
|
|||
// Type definitions for plex settings commands
|
||||
declare global {
|
||||
namespace Cypress {
|
||||
interface Chainable {
|
||||
clearPlexServers(): Chainable<void>;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Cypress.Commands.add('clearPlexServers', () => {
|
||||
cy.request({
|
||||
|
@ -10,3 +18,5 @@ Cypress.Commands.add('clearPlexServers', () => {
|
|||
}
|
||||
})
|
||||
})
|
||||
|
||||
export {};
|
|
@ -1,3 +1,14 @@
|
|||
// Type definitions for request commands
|
||||
declare global {
|
||||
namespace Cypress {
|
||||
interface Chainable {
|
||||
requestGenericMovie(): Chainable<void>;
|
||||
requestMovie(movieId: number): Chainable<void>;
|
||||
requestAllTv(tvId: number): Chainable<any>;
|
||||
removeAllMovieRequests(): Chainable<void>;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Cypress.Commands.add('requestGenericMovie', () => {
|
||||
cy.request({
|
||||
|
@ -48,3 +59,5 @@ Cypress.Commands.add('removeAllMovieRequests', () => {
|
|||
}
|
||||
});
|
||||
})
|
||||
|
||||
export {};
|
|
@ -15,9 +15,7 @@
|
|||
"types": [
|
||||
"cypress",
|
||||
"cypress-wait-until",
|
||||
"cypress-image-snapshot",
|
||||
"cypress-real-events",
|
||||
"@bahmutov/cy-api",
|
||||
"node"
|
||||
],
|
||||
"baseUrl": "./cypress",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue