mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
38 lines
844 B
TypeScript
38 lines
844 B
TypeScript
/// <reference types="cypress" />
|
|
|
|
declare namespace Cypress {
|
|
interface Chainable {
|
|
login(username: string): Chainable<void>
|
|
loginAsDeleteCoordinator(): Chainable<void>
|
|
deleteTargets(): Chainable<DeleteTarget[]>
|
|
pageForbidden(url: string): Chainable<void>
|
|
resetDatabase(): Chainable<void>
|
|
addReferenceAndSave(): Chainable<void>
|
|
clearNewSpeciesForm(): Chainable<void>
|
|
}
|
|
|
|
interface Tasks {
|
|
waitForDbHealthy(options?: WaitForDbHealthyOptions): null
|
|
waitForAppHealthy(options?: WaitForAppHealthyOptions): null
|
|
}
|
|
}
|
|
|
|
interface WaitForDbHealthyOptions {
|
|
host?: string
|
|
port?: number
|
|
timeoutMs?: number
|
|
}
|
|
|
|
interface WaitForAppHealthyOptions {
|
|
url?: string
|
|
timeoutMs?: number
|
|
}
|
|
|
|
interface DeleteTarget {
|
|
entity: string
|
|
path: string
|
|
deleteButton: string
|
|
confirmText: string
|
|
notes: string
|
|
}
|