Converted tests to typescript. (#6181)

* Converted tests to typescript.

* Run all tests.

* Fixed tests.

* Removed cypress from every installation.

* Use cache for libreoffice.

* Fixed cypress install.

* Fixed cypress install.
This commit is contained in:
SamTV12345 2024-02-22 18:31:17 +01:00 committed by GitHub
parent 4bd27a1c79
commit 546ede284c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 912 additions and 734 deletions

View file

@ -5,11 +5,16 @@ export type PadType = {
apool: ()=>APool,
atext: AText,
pool: APool,
getInternalRevisionAText: (text:string)=>Promise<AText>,
getInternalRevisionAText: (text:number|string)=>Promise<AText>,
getValidRevisionRange: (fromRev: string, toRev: string)=>PadRange,
getRevisionAuthor: (rev: number)=>Promise<string>,
getRevision: (rev?: string)=>Promise<any>,
head: number,
getAllAuthorColors: ()=>Promise<MapArrayType<string>>,
remove: ()=>Promise<void>,
text: ()=>string,
setText: (text: string)=>Promise<void>,
appendText: (text: string)=>Promise<void>,
}

View file

@ -0,0 +1,6 @@
export type SettingsUser = {
[username: string]:{
password: string,
is_admin?: boolean,
}
}