mirror of
https://git.cloudron.io/cloudron/gitea-app
synced 2026-05-01 06:53:37 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 335940ab4a | |||
| 7c3fa660e0 |
+3
-18
@@ -4,22 +4,7 @@ import assert from 'node:assert/strict';
|
|||||||
import { execSync } from 'node:child_process';
|
import { execSync } from 'node:child_process';
|
||||||
import fs from 'node:fs';
|
import fs from 'node:fs';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import {
|
import { app, clearCache, click, cloudronCli, goto, loginOIDC, sendKeys, setupBrowser, takeScreenshot, teardownBrowser, username, waitFor, waitForUrl, press } from '@cloudron/charlie';
|
||||||
app,
|
|
||||||
clearCache,
|
|
||||||
click,
|
|
||||||
cloudronCli,
|
|
||||||
goto,
|
|
||||||
loginOIDC,
|
|
||||||
sendKeys,
|
|
||||||
setupBrowser,
|
|
||||||
takeScreenshot,
|
|
||||||
teardownBrowser,
|
|
||||||
username,
|
|
||||||
waitFor,
|
|
||||||
waitForUrl,
|
|
||||||
press
|
|
||||||
} from '@cloudron/charlie';
|
|
||||||
|
|
||||||
/* global it, describe, before, after, afterEach */
|
/* global it, describe, before, after, afterEach */
|
||||||
|
|
||||||
@@ -36,7 +21,7 @@ describe('Application life cycle test', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async function () {
|
afterEach(async function () {
|
||||||
await takeScreenshot(this.currentTest.title);
|
await takeScreenshot(this.currentTest);
|
||||||
});
|
});
|
||||||
|
|
||||||
async function login(user, passwd) {
|
async function login(user, passwd) {
|
||||||
@@ -153,7 +138,7 @@ describe('Application life cycle test', function () {
|
|||||||
|
|
||||||
it('uninstall app (no sso)', cloudronCli.uninstall);
|
it('uninstall app (no sso)', cloudronCli.uninstall);
|
||||||
|
|
||||||
it('can install app from appstore', async function () {
|
it('can install app for update', async function () {
|
||||||
await cloudronCli.appstoreInstall({ tcpPortFlags: INSTALL_TCP_FLAGS });
|
await cloudronCli.appstoreInstall({ tcpPortFlags: INSTALL_TCP_FLAGS });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user