Dockerfile refactored, tests updated, tests dependencies updated

This commit is contained in:
Vladimir D
2024-10-16 11:41:14 +04:00
parent 8a34a7093e
commit d7dcfc832d
4 changed files with 210 additions and 21 deletions

15
test/package-lock.json generated
View File

@@ -9,7 +9,7 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"chromedriver": "^129.0.1"
"chromedriver": "^129.0.4"
},
"devDependencies": {
"expect.js": "^0.3.1",
@@ -263,10 +263,11 @@
}
},
"node_modules/chromedriver": {
"version": "129.0.1",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-129.0.1.tgz",
"integrity": "sha512-thJqK3c7p9rIhmjBvs/cgaK0Hk30g7LbnmMXQ2aLnn75ZOiEl/2GBcgc6fw+4GIw1SmOYhnNmaEI1iTP3qob0w==",
"version": "129.0.4",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-129.0.4.tgz",
"integrity": "sha512-j5I55cQwodFJUaYa1tWUmj2ss9KcPRBWmUa5Qonq3X8kqv2ASPyTboFYb4YB/YLztkYTUUw2E43txXw0wYzT/A==",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
"@testim/chrome-version": "^1.1.4",
"axios": "^1.7.4",
@@ -1791,9 +1792,9 @@
}
},
"chromedriver": {
"version": "129.0.1",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-129.0.1.tgz",
"integrity": "sha512-thJqK3c7p9rIhmjBvs/cgaK0Hk30g7LbnmMXQ2aLnn75ZOiEl/2GBcgc6fw+4GIw1SmOYhnNmaEI1iTP3qob0w==",
"version": "129.0.4",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-129.0.4.tgz",
"integrity": "sha512-j5I55cQwodFJUaYa1tWUmj2ss9KcPRBWmUa5Qonq3X8kqv2ASPyTboFYb4YB/YLztkYTUUw2E43txXw0wYzT/A==",
"requires": {
"@testim/chrome-version": "^1.1.4",
"axios": "^1.7.4",

View File

@@ -14,6 +14,6 @@
"selenium-webdriver": "^4.25.0"
},
"dependencies": {
"chromedriver": "^129.0.1"
"chromedriver": "^129.0.4"
}
}

View File

@@ -163,8 +163,8 @@ describe('Application life cycle test', function () {
await login('test@cloudron.io', testPassword);
});
it('shows confirmation page', function () {
return browser.wait(until.elementLocated(By.xpath('//div[contains(text(), "Waiting for e-mail confirmation to be completed")]')), TEST_TIMEOUT);
it('shows confirmation page', async function () {
await waitForElement(By.xpath('//a[@href="/auth/confirmation/new"]'));
});
it('uninstall app (no sso)', async function () {