mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 18:47:15 -07:00
test coverage on the plex settings page
This commit is contained in:
parent
cd6b70f771
commit
dc0a66f4d8
9 changed files with 142 additions and 19 deletions
|
@ -17,6 +17,7 @@
|
|||
import './commands'
|
||||
import './request.commands';
|
||||
import './plex-settings.commands';
|
||||
import './mock-data.commands';
|
||||
import "cypress-real-events/support";
|
||||
import '@bahmutov/cy-api/support';
|
||||
|
||||
|
|
15
tests/cypress/support/mock-data.commands.ts
Normal file
15
tests/cypress/support/mock-data.commands.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
Cypress.Commands.add('addMock', (mapping) => {
|
||||
cy.request({
|
||||
method: 'POST',
|
||||
url: 'http://localhost:32400/__admin/mappings',
|
||||
body: mapping
|
||||
})
|
||||
})
|
||||
|
||||
Cypress.Commands.add('clearMocks', () => {
|
||||
cy.request({
|
||||
method: 'DELETE',
|
||||
url: 'http://localhost:32400/__admin/mappings'
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue