1
0
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:
Girish Ramakrishnan
2026-04-24 16:47:02 +02:00
parent 99ecdfefff
commit 6359bc1e2c
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -0,0 +1,2 @@
<testsuites id="" name="" tests="0" failures="0" skipped="0" errors="0" time="0.088404">
</testsuites>
+2 -2
View File
@@ -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() {