mirror of
https://git.cloudron.io/cloudron/gitea-app
synced 2026-04-25 12:13:03 +00:00
test: use waitForUrl(full URL) instead of waitForPath(path)
charlie's waitForPath was renamed to waitForUrl and now takes a full URL for consistency with goto/currentUrl. Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
<testsuites id="" name="" tests="0" failures="0" skipped="0" errors="0" time="0.088404">
|
||||||
|
</testsuites>
|
||||||
+2
-2
@@ -20,7 +20,7 @@ import {
|
|||||||
teardownBrowser,
|
teardownBrowser,
|
||||||
username,
|
username,
|
||||||
waitForElement,
|
waitForElement,
|
||||||
waitForPath
|
waitForUrl
|
||||||
} from '@cloudron/charlie';
|
} from '@cloudron/charlie';
|
||||||
|
|
||||||
/* global it, describe, before, after, afterEach */
|
/* global it, describe, before, after, afterEach */
|
||||||
@@ -108,7 +108,7 @@ describe('Application life cycle test', function () {
|
|||||||
await sendKeys('#repo_name', reponame);
|
await sendKeys('#repo_name', reponame);
|
||||||
await click('#auto-init');
|
await click('#auto-init');
|
||||||
await click('//button[contains(text(), "Create Repository")]');
|
await click('//button[contains(text(), "Create Repository")]');
|
||||||
await waitForPath(`/${username}/${reponame}`);
|
await waitForUrl(`https://${app.fqdn}/${username}/${reponame}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
function cloneRepo() {
|
function cloneRepo() {
|
||||||
|
|||||||
Reference in New Issue
Block a user