diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a663ab6d..6547efba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - new-ui paths-ignore: - "**.md" #- "**.spec.js" diff --git a/README.md b/README.md index 54508eed..69afc0a7 100644 --- a/README.md +++ b/README.md @@ -1,51 +1,67 @@ -[![Build new-ui branch](https://github.com/selfcustody/krux-installer/actions/workflows/build.yml/badge.svg?branch=new-ui)](https://github.com/selfcustody/krux-installer/actions/workflows/build.yml) - # Krux Installer -Krux Installer (alpha versions) aims to be a GUI based tool to build, flash and debug [Krux](https://github.com/selfcustody/krux) +[![Build main branch](https://github.com/selfcustody/krux-installer/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/selfcustody/krux-installer/actions/workflows/build.yml) -As it now, the generated application execute, without typing any command in terminal,[flash the firmware onto the device](https://selfcustody.github.io/krux/getting-started/installing/#flash-the-firmware-onto-the-device), for Linux and Windows. +Krux Installer (alpha versions) aims to be a GUI based tool to build, +flash and debug [Krux](https://github.com/selfcustody/krux) -## TODOs +As it now, the generated application execute, +without typing any command in terminal. + +For more information, see [flash the firmware onto the device](https://selfcustody.github.io/krux/getting-started/installing/#flash-the-firmware-onto-the-device). + +## Tested machines -- Kendryte K210 devices: - - [x] Flash to M5stickV; - - [x] Flash to Sipeed Amigo; - - [x] Flash to Sipeed Bit; - - [x] Flash to Sipeed Dock; - - [ ] Build from source to M5stickV; - - [ ] Build from source to Sipeed Amigo; - - [ ] Build from source to Sipeed Bit; - - [ ] Build from source to Sipeed Dock; - - [ ] Debug for M5stickV; - - [ ] Debug for Sipeed Amigo; - - [ ] Debug for Sipeed Bit; - - [ ] Debug for Sipeed Dock; -- [odudex Android version](https://github.com/odudex/krux_binaries/tree/main/Android): - - [ ] Transfer to device; - - [ ] Build for device; - - [ ] Debug for device. -- Windows: - - [x] Build NSIS installer; - - [ ] Build Portable installer; - - [ ] Build AppX installer; - Linux: - - [x] Build `AppImage` standalone; - - [ ] Build `deb` package for [apt-get](https://www.debian.org/doc/manuals/apt-howto/); - - [ ] Build `snap` package for [snapcraft](https://snapcraft.io/); - - [ ] Build `pacman` package for [pacman](https://wiki.archlinux.org/title/Pacman). -- MacOS: - - [x] Build DMG installer; - - [ ] Build PKG installer; - - [ ] Build MAS installer; + - Archlinux; + - Ubuntu; +- Windows: + - Windows 10 + +## Untested machines + +- MacOS + +**Help Wanted**: we need mac users! ## Install -You can download compiled binaries on [releases page](https://github.com/selfcustody/krux-installer/releases) or Build from source: +- See [releases page](https://github.com/selfcustody/krux-installer/releases); +or + +- [Build from source](/#build-from-source) ## Build from source -### Download +### Download nodejs + +First of all, you will need [Node.js](https://nodejs.org) +installed in you system. We recommend use the latest LTS version. + +#### Download from Node.js binaries + +You can install node.js in your system downloading it from official +[nodejs website](https://nodejs.org/en/download) and following +provided instructions. + +#### Download from NVM (Node Version Manager) + +Alternatively, if you have a linux or macos system, +you can have multiple versions of Node.js using [nvm](https://github.com/nvm-sh/nvm). + +To install nvm, +follow the [instructions](https://github.com/nvm-sh/nvm#installing-and-updating). + +Once installed, +we recomend to install the latest LTS node: + +```bash +nvm install --lts +``` + +### Download repository + +Now you can download the source code: ```bash git clone https://github.com/qlrd/krux-installer.git @@ -53,64 +69,171 @@ git clone https://github.com/qlrd/krux-installer.git ### Install dependencies +Install all dependencies: + ```bash yarn install ``` -### Develop +Additionaly, you can upgrade dependencies to its latest versions. +Have some caution with this command, once that executing this command +can broke some functionalities, mainly those related to the use of +`google-chrome` and `chromiumdriver` in E2e tests. + +**TIP**: Before execute this command, always check the latest supported +`chromium` version at +[Electron Stable Releases page](https://releases.electronjs.org/releases/stable) -When a change is made, we recommend to `lint`, `dev`, `build` and `test` procedures before make a commit or a PR: +```bash +yarn upgrade-interactive --latest +``` -#### Lint +### Live compile to development environment -Verify code style and syntax errors: +When a change is made, we recommend to execute `dev` subcommand: ```bash -yarn lint +yarn run dev ``` -#### Compiles to a development electron application - -Run electron application with the (vite)[https://vitejs.dev/] server: +if you want to show some debug messages: ```bash -yarn dev +DEBUG=krux:* yarn run dev ``` -### Compiles and minifies for production +### Test + +#### Prepare tests + +To test, +you need to write `specification` tests under `pageobjects` definitions: + +- You can write your own [E2E](https://webdriver.io) +specification test files on `test/e2e/specs` folder; -Before running build, verify [builder config](electron-builder.json5) to setup the build targets. The `` depends depends on the running platform (i.e., linux, darwin, win32): +- You can define the [PageObjects] on +`test/e2e/pageobjects` folder. -* Linux: - * `AppImage` - * `deb` - * `snap` +Before run tests, +you will need to **build** the application. -* Windows: - * `nsis` - * `portable` - * `AppX` +#### Build -* Mac: - * `dmg` - * `pkg` - * `mas` +Before running build, +verify [builder config](electron-builder.json5) +to setup the build `target` on specific `os` (Operational System). +The `` depends depends on the running platform +(i.e., `linux`, `darwin` -- MacOS, and `win32` -- Windows). -Then run: +For more information, +see [Electron Builder](https://www.electron.build/configuration/configuration) +page. + +#### Run all tests + +The `wdio.conf.mts` is configured to check +if your system have `krux.zip.*` resources. + +- If not, it will, run all tests, including download tests; +- If yes, it will skip tests that download resources. + +```bash +yarn run build +``` + +If you want to build a specific `target` +to a specifi `os`, run + +```bash +yarn run build -- +``` + +If you want to debug some messages, add the +`DEBUG` environment variable. + +In linux/mac: + +```bash +DEBUG=krux:* yarn run build -- +``` + +##### Filter tests + +Additionaly, you can filter some tests with +`--filter` option and a based regular expression argument. + +For example, if you want to exclude tests until `25th` test, +you can do this: + +```bash +yarn run e2e --filter '0([0-1][0-9]|2[0-4]).*.spec.ts' +``` + +if you want to debug some messages: ```bash -yarn build +DEBUG=krux:* yarn run e2e --filter '0([0-1][0-9]|2[0-4]).*.spec.ts' ``` -#### Builtin OpenSSL for windows in KruxInstaller +#### WARNING: Builtin OpenSSL for windows in KruxInstaller + +When downloading official krux firmware versions, +it is necessary to verify the signature through the OpenSSL tool, +as a way to verify the authenticity of the downloaded binaries. -When downloading official krux firmware versions, it is necessary to verify the signature through the OpenSSL tool, as a way to verify the authenticity of the downloaded binaries. +On "Unix like" releases (Linux and MacOS), +verification is easily done since such tool +exists natively in operating system. -On Unix like releases (Linux and MacOS), verification is easily done since such tool exists natively in operating system. +In windows release, +we are faced with the peculiarity of the operating system in question +do not have such a tool +(see this [issue](https://github.com/qlrd/krux-installer/issues/2)). -In windows release, we are faced with the peculiarity of the operating system in question not having such a tool (see this [issue](https://github.com/qlrd/krux-installer/issues/2)). +So, we packaged a stable version of OpenSSL, and +compiled it from the [source](https://github.com/openssl/openssl). +The compilation process is done entirely in a reproducible virtual environment and, +therefore, not locally, with the github-action [compile-openssl-windows-action](https://github.com/qlrd/compile-openssl-windows-action/actions). -So, we packaged a stable version of OpenSSL, compiled from the [source](https://github.com/openssl/openssl). The compilation process is done entirely in a reproducible virtual environment and, therefore, not locally, with the github-action [compile-openssl-windows-action](https://github.com/qlrd/compile-openssl-windows-action/actions). +Since it is compiled in a virtual environment on github: -Since it is compiled in a virtual environment on github, it is expected to be fully verifiable and free of malicious code. You can check the build steps in [actions](https://github.com/qlrd/krux-installer/actions). +- it is expected to be fully verifiable and free of malicious code; +- it is expected that, if you're developing in Windows machine, +some difficulties will be appear. +- You can check the build steps in [actions](https://github.com/qlrd/krux-installer/actions). + +## TODOs + +- Kendryte K210 devices: + - [x] Flash to M5stickV; + - [x] Flash to Sipeed Amigo; + - [x] Flash to Sipeed Bit; + - [x] Flash to Sipeed Dock; + - [ ] Flash to Yahboom Aimotion + - [ ] Build from source to M5stickV; + - [ ] Build from source to Sipeed Amigo; + - [ ] Build from source to Sipeed Bit; + - [ ] Build from source to Sipeed Dock; + - [ ] Debug for M5stickV; + - [ ] Debug for Sipeed Amigo; + - [ ] Debug for Sipeed Bit; + - [ ] Debug for Sipeed Dock; +- [odudex Android version](https://github.com/odudex/krux_binaries/tree/main/Android): + - [ ] Transfer to device; + - [ ] Build for device; + - [ ] Debug for device. +- Windows: + - [x] Build NSIS installer; + - [ ] Build Portable installer; + - [ ] Build AppX installer; +- Linux: + - [x] Build `AppImage` standalone; + - [ ] Build `deb` package for [apt-get](https://www.debian.org/doc/manuals/apt-howto/); + - [ ] Build `snap` package for [snapcraft](https://snapcraft.io/); + - [ ] Build `pacman` package for [pacman](https://wiki.archlinux.org/title/Pacman). +- MacOS: + - [x] Build DMG installer; + - [ ] Build PKG installer; + - [ ] Build MAS installer; diff --git a/electron-builder.json5 b/electron-builder.json5 index 77cc76b4..065c71bb 100644 --- a/electron-builder.json5 +++ b/electron-builder.json5 @@ -3,7 +3,8 @@ */ { "$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json", - "appId": "YourAppID", + "appId": "org.selfcustody.krux-installer", + "productName": "krux-installer", "asar": true, "directories": { "output": "release/${version}" @@ -21,6 +22,16 @@ "dmg" ] }, + "linux": { + "category": "Utility", + "icon": "public/icon.png", + "desktop": { + "Icon": "org.selfcustody.krux-installer", + "Keywords": "electron;krux;vite;vuetify;vue3;vue", + "Terminal": false + }, + "target": [ "AppImage" ] + }, "win": { "target": [ { diff --git a/package.json b/package.json index 810a3520..6586052c 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "private": true, "keywords": [ "electron", + "krux", "vite", "vuetify", "vue3", @@ -33,7 +34,8 @@ "dev": "vue-tsc --noEmit && vite", "build": "vue-tsc --noEmit && vite build && electron-builder", "preview": "vite preview", - "e2e": "wdio run wdio.conf.mts" + "e2e": "wdio run wdio.conf.mts", + "lint:md": "markdownlint README.md --ignore node_modules" }, "devDependencies": { "@babel/cli": "^7.22.9", @@ -55,6 +57,7 @@ "electron": "^26.0.0", "electron-builder": "^24.4.0", "glob": "^10.3.3", + "markdownlint-cli": "^0.36.0", "mocha": "^10.2.0", "os-lang": "^3.1.1", "rimraf": "^5.0.1", diff --git a/public/logo.svg b/public/logo.svg deleted file mode 100644 index 96fc008b..00000000 --- a/public/logo.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/test/e2e/pageobjects/app.page.ts b/test/e2e/pageobjects/app.page.ts index 9ca61b6e..da63b237 100644 --- a/test/e2e/pageobjects/app.page.ts +++ b/test/e2e/pageobjects/app.page.ts @@ -148,10 +148,10 @@ class App { this.__select_device_page_maixpy_back_text__ = 'div#select-device-page-back-text' this.__select_version_page__ = 'div#select-version-page'; - this.__select_version_page_selfcustody_button__ = 'div#select-version-page-selfcustody-krux-releases-tag-v22-08-2-button' + this.__select_version_page_selfcustody_button__ = 'div#select-version-page-selfcustody-krux-releases-tag-v23-09-0-button' this.__select_version_page_back_button__ = 'div#select-version-page-back-button' this.__select_version_page_odudex_button__ = 'div#select-version-page-odudex-krux-binaries-button' - this.__select_version_page_selfcustody_text__ = 'div#select-version-page-selfcustody-krux-releases-tag-v22-08-2-text' + this.__select_version_page_selfcustody_text__ = 'div#select-version-page-selfcustody-krux-releases-tag-v23-09-0-text' this.__select_version_page_odudex_text__ = 'div#select-version-page-odudex-krux-binaries-text' this.__select_version_page_back_text__ = 'div#select-version-page-back-text' @@ -162,22 +162,22 @@ class App { this.__download_official_release_zip_subtitle__ = 'div#download-official-release-zip-page-subtitle' this.__download_official_release_zip_progress__ = 'div#download-official-release-zip-page-progress' - this.__checking_release_zip_msg__ = 'pre#checking-v22-08-2-krux-v22-08-2-zip' - this.__not_found_release_zip_msg__ = 'pre#v22-08-2-krux-v22-08-2-zip-not-found' - this.__found_release_zip_msg__ = 'pre#v22-08-2-krux-v22-08-2-zip-found' + this.__checking_release_zip_msg__ = 'pre#checking-v23-09-0-krux-v23-09-0-zip' + this.__not_found_release_zip_msg__ = 'pre#v23-09-0-krux-v23-09-0-zip-not-found' + this.__found_release_zip_msg__ = 'pre#v23-09-0-krux-v23-09-0-zip-found' - this.__checking_release_zip_sha256_txt_msg__ = 'pre#checking-v22-08-2-krux-v22-08-2-zip-sha256-txt' - this.__not_found_release_zip_sha256_txt_msg__ = 'pre#v22-08-2-krux-v22-08-2-zip-sha256-txt-not-found' - this.__found_release_zip_sha256_txt_msg__ = 'pre#v22-08-2-krux-v22-08-2-zip-sha256-txt-found' + this.__checking_release_zip_sha256_txt_msg__ = 'pre#checking-v23-09-0-krux-v23-09-0-zip-sha256-txt' + this.__not_found_release_zip_sha256_txt_msg__ = 'pre#v23-09-0-krux-v23-09-0-zip-sha256-txt-not-found' + this.__found_release_zip_sha256_txt_msg__ = 'pre#v23-09-0-krux-v23-09-0-zip-sha256-txt-found' this.__download_official_release_zip_sha256_txt_page__ = 'div#download-official-release-zip-sha256-txt-page' this.__download_official_release_zip_sha256_txt_page_title__ = 'div#download-official-release-zip-sha256-txt-page-title' this.__download_official_release_zip_sha256_txt_page_subtitle__ = 'div#download-official-release-zip-sha256-txt-page-subtitle' this.__download_official_release_zip_sha256_txt_page_progress__ = 'div#download-official-release-zip-sha256-txt-page-progress' - this.__checking_release_zip_sig_msg__ = 'pre#checking-v22-08-2-krux-v22-08-2-zip-sig' - this.__not_found_release_zip_sig_msg__ = 'pre#v22-08-2-krux-v22-08-2-zip-sig-not-found' - this.__found_release_zip_sig_msg__ = 'pre#v22-08-2-krux-v22-08-2-zip-sig-found' + this.__checking_release_zip_sig_msg__ = 'pre#checking-v23-09-0-krux-v23-09-0-zip-sig' + this.__not_found_release_zip_sig_msg__ = 'pre#v23-09-0-krux-v23-09-0-zip-sig-not-found' + this.__found_release_zip_sig_msg__ = 'pre#v23-09-0-krux-v23-09-0-zip-sig-found' this.__download_official_release_zip_sig_page__ = 'div#download-official-release-zip-sig-page' this.__download_official_release_zip_sig_title__ = 'div#download-official-release-zip-sig-page-title' @@ -216,8 +216,8 @@ class App { this.__verified_official_release_page__ = 'div#verified-official-release-page' this.__verified_official_release_page_sha256_integrity_title__ = 'div#verified-official-release-page-sha256-integrity-title' - this.__verified_official_release_page_sha256_integrity_txt__ = 'div#verified-official-release-page-sha256-integrity-v22-08-2-krux-v22-08-2-zip-sha256-txt' - this.__verified_official_release_page_sha256_integrity__ = 'div#verified-official-release-page-sha256-integrity-v22-08-2-krux-v22-08-2-zip' + this.__verified_official_release_page_sha256_integrity_txt__ = 'div#verified-official-release-page-sha256-integrity-v23-09-0-krux-v23-09-0-zip-sha256-txt' + this.__verified_official_release_page_sha256_integrity__ = 'div#verified-official-release-page-sha256-integrity-v23-09-0-krux-v23-09-0-zip' this.__verified_official_release_page_signature_title__ = 'div#verified-official-release-page-signature-title' this.__verified_official_release_page_signature_command__ = 'span#verified-official-release-page-signature-command' this.__verified_official_release_page_signature_result__ = 'span#verified-official-release-page-signature-result' diff --git a/test/e2e/specs/013.select-version-show-only.spec.ts b/test/e2e/specs/013.select-version-show-only.spec.ts index b5418cb8..67876d8b 100644 --- a/test/e2e/specs/013.select-version-show-only.spec.ts +++ b/test/e2e/specs/013.select-version-show-only.spec.ts @@ -72,14 +72,14 @@ describe('KruxInstaller SelectVersion page (show only)', () => { await expectWDIO(instance.selectVersionPage).toBeDisplayed() }) - it('should \'selfcustody/krux/releases/tag/v22.08.2\' button appear', async () => { + it('should \'selfcustody/krux/releases/tag/v23.09.0\' button appear', async () => { await instance.selectVersionSelfcustodyButton.waitForExist() await expectWDIO(instance.selectVersionSelfcustodyButton).toBeDisplayed() }) - it('should \'selfcustody/krux/releases/tag/v22.08.2\' button have \'selfcustody/krux/releases/tag/v22.08.2\' text', async () => { + it('should \'selfcustody/krux/releases/tag/v23.09.0\' button have \'selfcustody/krux/releases/tag/v23.09.0\' text', async () => { await instance.selectVersionSelfcustodyText.waitForExist() - await expectWDIO(instance.selectVersionSelfcustodyText).toHaveText('selfcustody/krux/releases/tag/v22.08.2') + await expectWDIO(instance.selectVersionSelfcustodyText).toHaveText('selfcustody/krux/releases/tag/v23.09.0') }) it('should \'odudex/krux_binaries\' button appear', async () => { diff --git a/test/e2e/specs/014.select-version-selfcustody-release-zip.spec.ts b/test/e2e/specs/014.select-version-selfcustody-release-zip.spec.ts index a9aeeabc..da1abd68 100644 --- a/test/e2e/specs/014.select-version-selfcustody-release-zip.spec.ts +++ b/test/e2e/specs/014.select-version-selfcustody-release-zip.spec.ts @@ -39,25 +39,25 @@ describe('KruxInstaller SelectVersion page (download release)', () => { await instance.selectVersionOdudexText.waitForExist() }) - it('should click on \'selfcustody/krux/tags/v22.08.2\' and go to ConsoleLoad page', async () => { + it('should click on \'selfcustody/krux/tags/v23.09.0\' and go to ConsoleLoad page', async () => { await instance.selectVersionSelfcustodyButton.click() await instance.selectVersionPage.waitForExist({ reverse: true }) await expectWDIO(instance.selectVersionPage).not.toBeDisplayed() }) - it('should \'Checking v22.08.2/krux-v22.08.2.zip\' message appears', async () => { + it('should \'Checking v23.09.0/krux-v23.09.0.zip\' message appears', async () => { await instance.checkingReleaseZipMsg.waitForExist() await expectWDIO(instance.checkingReleaseZipMsg).toBeDisplayed() - await expectWDIO(instance.checkingReleaseZipMsg).toHaveText('Checking v22.08.2/krux-v22.08.2.zip') + await expectWDIO(instance.checkingReleaseZipMsg).toHaveText('Checking v23.09.0/krux-v23.09.0.zip') }) - it('should \'v22.08.2/krux-v22.08.2.zip not found\' message appears', async () => { + it('should \'v23.09.0/krux-v23.09.0.zip not found\' message appears', async () => { await instance.notFoundReleaseZipMsg.waitForExist() await expectWDIO(instance.notFoundReleaseZipMsg).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.notFoundReleaseZipMsg).toHaveText('v22.08.2/krux-v22.08.2.zip not found') + await expectWDIO(instance.notFoundReleaseZipMsg).toHaveText('v23.09.0/krux-v23.09.0.zip not found') } else if (process.platform === 'win32') { - await expectWDIO(instance.notFoundReleaseZipMsg).toHaveText('v22.08.2\\krux-v22.08.2.zip not found') + await expectWDIO(instance.notFoundReleaseZipMsg).toHaveText('v23.09.0\\krux-v23.09.0.zip not found') } }) @@ -72,10 +72,10 @@ describe('KruxInstaller SelectVersion page (download release)', () => { await expectWDIO(instance.downloadOfficialReleaseZipTitle).toHaveText('Downloading') }) - it('should DownloadOfficialReleaseZip page have \'https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip\' subtitle', async () => { + it('should DownloadOfficialReleaseZip page have \'https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip\' subtitle', async () => { await instance.downloadOfficialReleaseZipTitle.waitForExist() await expectWDIO(instance.downloadOfficialReleaseZipSubtitle).toBeDisplayed() - await expectWDIO(instance.downloadOfficialReleaseZipSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip') + await expectWDIO(instance.downloadOfficialReleaseZipSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip') }) it('should DownloadOfficialReleaseZip page progress until 100%', async () => { @@ -86,7 +86,7 @@ describe('KruxInstaller SelectVersion page (download release)', () => { const percent = parseFloat(percentText.split('%')[0]) return percent === 100.00 }, { - timeout: 60000, + timeout: 600000, interval: 50 }) }) diff --git a/test/e2e/specs/015.already-downloaded-selfcustody-release-zip.spec.ts b/test/e2e/specs/015.already-downloaded-selfcustody-release-zip.spec.ts index 010418f0..0d785314 100644 --- a/test/e2e/specs/015.already-downloaded-selfcustody-release-zip.spec.ts +++ b/test/e2e/specs/015.already-downloaded-selfcustody-release-zip.spec.ts @@ -42,13 +42,13 @@ describe('KruxInstaller SelectVersion page (already downloaded release - show on await instance.checkingReleaseZipMsg.waitForExist() }) - it('should \'v22.08.2/krux-v22.08.2.zip found\' message appears', async () => { + it('should \'v23.09.0/krux-v23.09.0.zip found\' message appears', async () => { await instance.foundReleaseZipMsg.waitForExist() await expectWDIO(instance.foundReleaseZipMsg).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.foundReleaseZipMsg).toHaveText('v22.08.2/krux-v22.08.2.zip found') + await expectWDIO(instance.foundReleaseZipMsg).toHaveText('v23.09.0/krux-v23.09.0.zip found') } else if (process.platform === 'win32') { - await expectWDIO(instance.foundReleaseZipMsg).toHaveText('v22.08.2\\krux-v22.08.2.zip found') + await expectWDIO(instance.foundReleaseZipMsg).toHaveText('v23.09.0\\krux-v23.09.0.zip found') } }) @@ -57,13 +57,13 @@ describe('KruxInstaller SelectVersion page (already downloaded release - show on await expectWDIO(instance.warningDownloadPage).toBeDisplayed() }) - it('should \'v22.08.2/krux-v22.08.2.zip already downloaded\' message be displayed', async () => { + it('should \'v23.09.0/krux-v23.09.0.zip already downloaded\' message be displayed', async () => { await instance.warningAlreadyDownloadedText.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedText).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2/krux-v22.08.2.zip already downloaded') + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v23.09.0/krux-v23.09.0.zip already downloaded') } else if (process.platform === 'win32') { - await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2\\krux-v22.08.2.zip already downloaded') + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v23.09.0\\krux-v23.09.0.zip already downloaded') } }) diff --git a/test/e2e/specs/016.already-downloaded-selfcustody-release-zip-click-back-button.spec.ts b/test/e2e/specs/016.already-downloaded-selfcustody-release-zip-click-back-button.spec.ts index 69bd1f2b..c9a56c8d 100644 --- a/test/e2e/specs/016.already-downloaded-selfcustody-release-zip-click-back-button.spec.ts +++ b/test/e2e/specs/016.already-downloaded-selfcustody-release-zip-click-back-button.spec.ts @@ -64,9 +64,9 @@ describe('KruxInstaller SelectVersion page (already downloaded release - click b await expectWDIO(instance.mainPage).toBeDisplayed() }) - it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v22.08.2\'', async () => { + it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v23.09.0\'', async () => { await instance.mainSelectVersionText.waitForExist() await expectWDIO(instance.mainSelectVersionText).toBeDisplayed() - await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v22.08.2') + await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v23.09.0') }) }) diff --git a/test/e2e/specs/017.already-downloaded-selfcustody-release-zip-click-show-details-button.spec.ts b/test/e2e/specs/017.already-downloaded-selfcustody-release-zip-click-show-details-button.spec.ts index 00298323..7978a514 100644 --- a/test/e2e/specs/017.already-downloaded-selfcustody-release-zip-click-show-details-button.spec.ts +++ b/test/e2e/specs/017.already-downloaded-selfcustody-release-zip-click-show-details-button.spec.ts @@ -71,16 +71,16 @@ describe('KruxInstaller SelectVersion page (already downloaded release - click s await expectWDIO(instance.warningAlreadyDownloadedOverlayTitle).toHaveText('Resource details') }) - it ('should overlay subtitle be \'v22.08.2/krux-v22.08.2.zip\'', async () => { + it ('should overlay subtitle be \'v23.09.0/krux-v23.09.0.zip\'', async () => { await instance.warningAlreadyDownloadedOverlayTitle.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toBeDisplayed() - await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toHaveText('v22.08.2/krux-v22.08.2.zip') + await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toHaveText('v23.09.0/krux-v23.09.0.zip') }) - it ('should a overlay text have \'Remote: https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip\'', async () => { + it ('should a overlay text have \'Remote: https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip\'', async () => { await instance.warningAlreadyDownloadedOverlayTextRemote.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toBeDisplayed() - await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toHaveText('Remote:\nhttps://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip') + await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toHaveText('Remote:\nhttps://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip') }) it ('should a overlay text have properly local resource', async () => { @@ -108,7 +108,7 @@ describe('KruxInstaller SelectVersion page (already downloaded release - click s } } - const resource = join(resources, 'v22.08.2', 'krux-v22.08.2.zip') + const resource = join(resources, 'v23.09.0', 'krux-v23.09.0.zip') await expectWDIO(instance.warningAlreadyDownloadedOverlayTextLocal).toHaveText(`Local:\n${resource}`) }) diff --git a/test/e2e/specs/018.already-downloaded-selfcustody-release-zip-click-download-again.spec.ts b/test/e2e/specs/018.already-downloaded-selfcustody-release-zip-click-download-again.spec.ts index f55b0c3a..cb99754b 100644 --- a/test/e2e/specs/018.already-downloaded-selfcustody-release-zip-click-download-again.spec.ts +++ b/test/e2e/specs/018.already-downloaded-selfcustody-release-zip-click-download-again.spec.ts @@ -72,10 +72,10 @@ describe('KruxInstaller SelectVersion page (already downloaded release - click d await expectWDIO(instance.downloadOfficialReleaseZipTitle).toHaveText('Downloading') }) - it('should DownloadOfficialReleaseZip page have \'https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip\' subtitle', async () => { + it('should DownloadOfficialReleaseZip page have \'https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip\' subtitle', async () => { await instance.downloadOfficialReleaseZipTitle.waitForExist() await expectWDIO(instance.downloadOfficialReleaseZipSubtitle).toBeDisplayed() - await expectWDIO(instance.downloadOfficialReleaseZipSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip') + await expectWDIO(instance.downloadOfficialReleaseZipSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip') }) it('should DownloadOfficialReleaseZip page progress until 100%', async () => { diff --git a/test/e2e/specs/020.select-version-selfcustody-release-zip-sha256.spec.ts b/test/e2e/specs/020.select-version-selfcustody-release-zip-sha256.spec.ts index 0a01a8f4..e188c29e 100644 --- a/test/e2e/specs/020.select-version-selfcustody-release-zip-sha256.spec.ts +++ b/test/e2e/specs/020.select-version-selfcustody-release-zip-sha256.spec.ts @@ -57,12 +57,12 @@ describe('KruxInstaller SelectVersion page (download release sha256.txt)', () => await instance.warningDownloadPage.waitForExist({ reverse: true }) }) - it ('should \'checking v22.08.2/krux-v22.08.2.zip.sha256.txt\' message appears', async () => { + it ('should \'checking v23.09.0/krux-v23.09.0.zip.sha256.txt\' message appears', async () => { await instance.checkingReleaseZipSha256txtMsg.waitForExist() await expectWDIO(instance.checkingReleaseZipSha256txtMsg).toBeDisplayed() }) - it ('should \'v22.08.2/krux-v22.08.2.zip.sha256.txt not found\' message appears', async () => { + it ('should \'v23.09.0/krux-v23.09.0.zip.sha256.txt not found\' message appears', async () => { await instance.notFoundReleaseZipSha256txtMsg.waitForExist() await expectWDIO(instance.notFoundReleaseZipSha256txtMsg).toBeDisplayed() }) @@ -78,10 +78,10 @@ describe('KruxInstaller SelectVersion page (download release sha256.txt)', () => await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageTitle).toHaveText('Downloading') }) - it('should DownloadOfficialReleaseZipSha256 page have \'https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sha256.txt\' subtitle', async () => { + it('should DownloadOfficialReleaseZipSha256 page have \'https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sha256.txt\' subtitle', async () => { await instance.downloadOfficialReleaseZipSha256txtPageSubtitle.waitForExist() await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageSubtitle).toBeDisplayed() - await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sha256.txt') + await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sha256.txt') }) it('should DownloadOfficialReleaseZipSha256 page progress until 100%', async () => { diff --git a/test/e2e/specs/021.already-downloaded-selfcustody-release-zip-sha256.spec.ts b/test/e2e/specs/021.already-downloaded-selfcustody-release-zip-sha256.spec.ts index db01f7ba..b2912823 100644 --- a/test/e2e/specs/021.already-downloaded-selfcustody-release-zip-sha256.spec.ts +++ b/test/e2e/specs/021.already-downloaded-selfcustody-release-zip-sha256.spec.ts @@ -54,13 +54,13 @@ describe('KruxInstaller SelectVersion page (already downloaded release sha256.tx await instance.warningDownloadPage.waitForExist({ reverse: true }) }) - it ('should \'v22.08.2/krux-v22.08.2.zip.sha256.txt found\' message appears', async () => { + it ('should \'v23.09.0/krux-v23.09.0.zip.sha256.txt found\' message appears', async () => { await instance.checkingReleaseZipSha256txtMsg.waitForExist() await expectWDIO(instance.checkingReleaseZipSha256txtMsg).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.foundReleaseZipSha256txtMsg).toHaveText('v22.08.2/krux-v22.08.2.zip.sha256.txt found') + await expectWDIO(instance.foundReleaseZipSha256txtMsg).toHaveText('v23.09.0/krux-v23.09.0.zip.sha256.txt found') } else if (process.platform === 'win32') { - await expectWDIO(instance.foundReleaseZipSha256txtMsg).toHaveText('v22.08.2\\krux-v22.08.2.zip.sha256.txt found') + await expectWDIO(instance.foundReleaseZipSha256txtMsg).toHaveText('v23.09.0\\krux-v23.09.0.zip.sha256.txt found') } }) @@ -69,13 +69,13 @@ describe('KruxInstaller SelectVersion page (already downloaded release sha256.tx await expectWDIO(instance.warningDownloadPage).toBeDisplayed() }) - it('should \'v22.08.2/krux-v22.08.2.zip.sha256.txt already downloaded\' message be displayed', async () => { + it('should \'v23.09.0/krux-v23.09.0.zip.sha256.txt already downloaded\' message be displayed', async () => { await instance.warningAlreadyDownloadedText.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedText).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2/krux-v22.08.2.zip.sha256.txt already downloaded') + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v23.09.0/krux-v23.09.0.zip.sha256.txt already downloaded') } else if (process.platform === 'win32') { - await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2\\krux-v22.08.2.zip.sha256.txt already downloaded') + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v23.09.0\\krux-v23.09.0.zip.sha256.txt already downloaded') } }) diff --git a/test/e2e/specs/022.already-downloaded-selfcustody-release-zip-sha256-click-back-button.spec.ts b/test/e2e/specs/022.already-downloaded-selfcustody-release-zip-sha256-click-back-button.spec.ts index 96393265..426eb659 100644 --- a/test/e2e/specs/022.already-downloaded-selfcustody-release-zip-sha256-click-back-button.spec.ts +++ b/test/e2e/specs/022.already-downloaded-selfcustody-release-zip-sha256-click-back-button.spec.ts @@ -70,10 +70,10 @@ describe('KruxInstaller SelectVersion page (already downloaded release sha256.tx await expectWDIO(instance.mainPage).toBeDisplayed() }) - it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v22.08.2\'', async () => { + it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v23.09.0\'', async () => { await instance.mainSelectVersionText.waitForExist() await expectWDIO(instance.mainSelectVersionText).toBeDisplayed() - await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v22.08.2') + await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v23.09.0') }) }) diff --git a/test/e2e/specs/023.already-downloaded-selfcustody-release-zip-sha256-click-show-details-button.spec.ts b/test/e2e/specs/023.already-downloaded-selfcustody-release-zip-sha256-click-show-details-button.spec.ts index 7b260166..8f7a0914 100644 --- a/test/e2e/specs/023.already-downloaded-selfcustody-release-zip-sha256-click-show-details-button.spec.ts +++ b/test/e2e/specs/023.already-downloaded-selfcustody-release-zip-sha256-click-show-details-button.spec.ts @@ -78,16 +78,16 @@ describe('KruxInstaller SelectVersion page (already downloaded release sha256.tx await expectWDIO(instance.warningAlreadyDownloadedOverlayTitle).toHaveText('Resource details') }) - it ('should overlay subtitle be \'v22.08.2/krux-v22.08.2.zip.sha256.txt\'', async () => { + it ('should overlay subtitle be \'v23.09.0/krux-v23.09.0.zip.sha256.txt\'', async () => { await instance.warningAlreadyDownloadedOverlayTitle.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toBeDisplayed() - await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toHaveText('v22.08.2/krux-v22.08.2.zip.sha256.txt') + await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toHaveText('v23.09.0/krux-v23.09.0.zip.sha256.txt') }) - it ('should a overlay text have \'Remote: https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sha256.txt\'', async () => { + it ('should a overlay text have \'Remote: https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sha256.txt\'', async () => { await instance.warningAlreadyDownloadedOverlayTextRemote.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toBeDisplayed() - await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toHaveText('Remote:\nhttps://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sha256.txt') + await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toHaveText('Remote:\nhttps://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sha256.txt') }) it ('should a overlay text have properly local resource', async () => { @@ -115,7 +115,7 @@ describe('KruxInstaller SelectVersion page (already downloaded release sha256.tx } } - const resource = join(resources, 'v22.08.2', 'krux-v22.08.2.zip.sha256.txt') + const resource = join(resources, 'v23.09.0', 'krux-v23.09.0.zip.sha256.txt') await expectWDIO(instance.warningAlreadyDownloadedOverlayTextLocal).toHaveText(`Local:\n${resource}`) }) diff --git a/test/e2e/specs/024.already-downloaded-selfcustody-release-zip-sha256-click-download-again-button.spec.ts b/test/e2e/specs/024.already-downloaded-selfcustody-release-zip-sha256-click-download-again-button.spec.ts index eca5350a..016dadb1 100644 --- a/test/e2e/specs/024.already-downloaded-selfcustody-release-zip-sha256-click-download-again-button.spec.ts +++ b/test/e2e/specs/024.already-downloaded-selfcustody-release-zip-sha256-click-download-again-button.spec.ts @@ -80,10 +80,10 @@ describe('KruxInstaller SelectVersion page (already downloaded release sha256.tx await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageTitle).toHaveText('Downloading') }) - it('should DownloadOfficialReleaseZipSha256 page have \'https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sha256.txt\' subtitle', async () => { + it('should DownloadOfficialReleaseZipSha256 page have \'https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sha256.txt\' subtitle', async () => { await instance.downloadOfficialReleaseZipSha256txtPageSubtitle.waitForExist() await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageSubtitle).toBeDisplayed() - await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sha256.txt') + await expectWDIO(instance.downloadOfficialReleaseZipSha256txtPageSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sha256.txt') }) it('should DownloadOfficialReleaseZipSha256 page progress until 100%', async () => { diff --git a/test/e2e/specs/026.select-version-selfcustody-release-zip-sig.spec.ts b/test/e2e/specs/026.select-version-selfcustody-release-zip-sig.spec.ts index 130c966c..225cdb79 100644 --- a/test/e2e/specs/026.select-version-selfcustody-release-zip-sig.spec.ts +++ b/test/e2e/specs/026.select-version-selfcustody-release-zip-sig.spec.ts @@ -65,12 +65,12 @@ describe('KruxInstaller SelectVersion page (download release signature)', () => await instance.warningDownloadPage.waitForExist({ reverse: true }) }) - it ('should \'checking v22.08.2/krux-v22.08.2.zip.sig\' message appears', async () => { + it ('should \'checking v23.09.0/krux-v23.09.0.zip.sig\' message appears', async () => { await instance.checkingReleaseZipSigMsg.waitForExist() await expectWDIO(instance.checkingReleaseZipSigMsg).toBeDisplayed() }) - it ('should \'v22.08.2/krux-v22.08.2.zip.sig not found\' message appears', async () => { + it ('should \'v23.09.0/krux-v23.09.0.zip.sig not found\' message appears', async () => { await instance.notFoundReleaseZipSigMsg.waitForExist() await expectWDIO(instance.notFoundReleaseZipSigMsg).toBeDisplayed() }) @@ -86,10 +86,10 @@ describe('KruxInstaller SelectVersion page (download release signature)', () => await expectWDIO(instance.downloadOfficialReleaseZipSigTitle).toHaveText('Downloading') }) - it('should DownloadOfficialReleaseZipSig page have \'https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sig\' subtitle', async () => { + it('should DownloadOfficialReleaseZipSig page have \'https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sig\' subtitle', async () => { await instance.downloadOfficialReleaseZipSigSubtitle.waitForExist() await expectWDIO(instance.downloadOfficialReleaseZipSigSubtitle).toBeDisplayed() - await expectWDIO(instance.downloadOfficialReleaseZipSigSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sig') + await expectWDIO(instance.downloadOfficialReleaseZipSigSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sig') }) it('should DownloadOfficialReleaseZipSig page progress until 100%', async () => { diff --git a/test/e2e/specs/027.already-downloaded-selfcustody-release-zip-sig.spec.ts b/test/e2e/specs/027.already-downloaded-selfcustody-release-zip-sig.spec.ts index e1b318f9..1a512372 100644 --- a/test/e2e/specs/027.already-downloaded-selfcustody-release-zip-sig.spec.ts +++ b/test/e2e/specs/027.already-downloaded-selfcustody-release-zip-sig.spec.ts @@ -65,13 +65,13 @@ describe('KruxInstaller SelectVersion page (already downloaded release signatur await instance.warningDownloadPage.waitForExist({ reverse: true }) }) - it ('should \'v22.08.2/krux-v22.08.2.zip.sig found\' message appears', async () => { + it ('should \'v23.09.0/krux-v23.09.0.zip.sig found\' message appears', async () => { await instance.checkingReleaseZipSigMsg.waitForExist() await expectWDIO(instance.foundReleaseZipSigMsg).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.foundReleaseZipSigMsg).toHaveText('v22.08.2/krux-v22.08.2.zip.sig found') + await expectWDIO(instance.foundReleaseZipSigMsg).toHaveText('v23.09.0/krux-v23.09.0.zip.sig found') } else if (process.platform === 'win32') { - await expectWDIO(instance.foundReleaseZipSigMsg).toHaveText('v22.08.2\\krux-v22.08.2.zip.sig found') + await expectWDIO(instance.foundReleaseZipSigMsg).toHaveText('v23.09.0\\krux-v23.09.0.zip.sig found') } }) @@ -80,13 +80,13 @@ describe('KruxInstaller SelectVersion page (already downloaded release signatur await expectWDIO(instance.warningDownloadPage).toBeDisplayed() }) - it('should \'v22.08.2/krux-v22.08.2.zip.sig already downloaded\' message be displayed', async () => { + it('should \'v23.09.0/krux-v23.09.0.zip.sig already downloaded\' message be displayed', async () => { await instance.warningAlreadyDownloadedText.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedText).toBeDisplayed() if (process.platform === 'linux' || process.platform === 'darwin') { - await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2/krux-v22.08.2.zip.sig already downloaded') + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v23.09.0/krux-v23.09.0.zip.sig already downloaded') } else if (process.platform === 'win32') { - await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2\\krux-v22.08.2.zip.sig already downloaded') + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v23.09.0\\krux-v23.09.0.zip.sig already downloaded') } }) diff --git a/test/e2e/specs/028.already-downloaded-selfcustody-release-zip-sig-click-back-button.spec.ts b/test/e2e/specs/028.already-downloaded-selfcustody-release-zip-sig-click-back-button.spec.ts index 4890902f..534f024d 100644 --- a/test/e2e/specs/028.already-downloaded-selfcustody-release-zip-sig-click-back-button.spec.ts +++ b/test/e2e/specs/028.already-downloaded-selfcustody-release-zip-sig-click-back-button.spec.ts @@ -80,10 +80,10 @@ describe('KruxInstaller SelectVersion page (already downloaded release signatur await expectWDIO(instance.mainPage).toBeDisplayed() }) - it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v22.08.2\'', async () => { + it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v23.09.0\'', async () => { await instance.mainSelectVersionText.waitForExist() await expectWDIO(instance.mainSelectVersionText).toBeDisplayed() - await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v22.08.2') + await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v23.09.0') }) }) diff --git a/test/e2e/specs/029.already-downloaded-selfcustody-release-zip-sig-show-details-button.spec.ts b/test/e2e/specs/029.already-downloaded-selfcustody-release-zip-sig-show-details-button.spec.ts index fadf8f07..5d04301d 100644 --- a/test/e2e/specs/029.already-downloaded-selfcustody-release-zip-sig-show-details-button.spec.ts +++ b/test/e2e/specs/029.already-downloaded-selfcustody-release-zip-sig-show-details-button.spec.ts @@ -85,16 +85,16 @@ describe('KruxInstaller SelectVersion page (already downloaded release signature await expectWDIO(instance.warningAlreadyDownloadedOverlayTitle).toHaveText('Resource details') }) - it ('should overlay subtitle be \'v22.08.2/krux-v22.08.2.zip.sig\'', async () => { + it ('should overlay subtitle be \'v23.09.0/krux-v23.09.0.zip.sig\'', async () => { await instance.warningAlreadyDownloadedOverlayTitle.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toBeDisplayed() - await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toHaveText('v22.08.2/krux-v22.08.2.zip.sig') + await expectWDIO(instance.warningAlreadyDownloadedOverlaySubtitle).toHaveText('v23.09.0/krux-v23.09.0.zip.sig') }) - it ('should a overlay text have \'Remote: https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sig\'', async () => { + it ('should a overlay text have \'Remote: https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sig\'', async () => { await instance.warningAlreadyDownloadedOverlayTextRemote.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toBeDisplayed() - await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toHaveText('Remote:\nhttps://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sig') + await expectWDIO(instance.warningAlreadyDownloadedOverlayTextRemote).toHaveText('Remote:\nhttps://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sig') }) it ('should a overlay text have properly local resource', async () => { @@ -122,7 +122,7 @@ describe('KruxInstaller SelectVersion page (already downloaded release signature } } - const resource = join(resources, 'v22.08.2', 'krux-v22.08.2.zip.sig') + const resource = join(resources, 'v23.09.0', 'krux-v23.09.0.zip.sig') await expectWDIO(instance.warningAlreadyDownloadedOverlayTextLocal).toHaveText(`Local:\n${resource}`) }) diff --git a/test/e2e/specs/030.already-downloaded-selfcustody-release-zip-sig-download-again-button.spec.ts b/test/e2e/specs/030.already-downloaded-selfcustody-release-zip-sig-download-again-button.spec.ts index ada9138b..3cec6b52 100644 --- a/test/e2e/specs/030.already-downloaded-selfcustody-release-zip-sig-download-again-button.spec.ts +++ b/test/e2e/specs/030.already-downloaded-selfcustody-release-zip-sig-download-again-button.spec.ts @@ -87,10 +87,10 @@ describe('KruxInstaller SelectVersion page (already downloaded release signatur await expectWDIO(instance.downloadOfficialReleaseZipSigTitle).toHaveText('Downloading') }) - it('should DownloadOfficialReleaseSig page have \'https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sig\' subtitle', async () => { + it('should DownloadOfficialReleaseSig page have \'https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sig\' subtitle', async () => { await instance.downloadOfficialReleaseZipSigSubtitle.waitForExist() await expectWDIO(instance.downloadOfficialReleaseZipSigSubtitle).toBeDisplayed() - await expectWDIO(instance.downloadOfficialReleaseZipSigSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v22.08.2/krux-v22.08.2.zip.sig') + await expectWDIO(instance.downloadOfficialReleaseZipSigSubtitle).toHaveText('https://github.com/selfcustody/krux/releases/download/v23.09.0/krux-v23.09.0.zip.sig') }) it('should DownloadOfficialReleaseSig page progress until 100%', async () => { diff --git a/test/e2e/specs/034.already-downloaded-selfcustody-pem-click-back-button.spec.ts b/test/e2e/specs/034.already-downloaded-selfcustody-pem-click-back-button.spec.ts index fa5f89ab..6ef1d451 100644 --- a/test/e2e/specs/034.already-downloaded-selfcustody-pem-click-back-button.spec.ts +++ b/test/e2e/specs/034.already-downloaded-selfcustody-pem-click-back-button.spec.ts @@ -86,9 +86,9 @@ describe('KruxInstaller SelectVersion page (already downloaded public key certif await expectWDIO(instance.mainPage).toBeDisplayed() }) - it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v22.08.2\'', async () => { + it('should \'Select version\' button changed to \'Version: selfcustody/krux/releases/tag/v23.09.0\'', async () => { await instance.mainSelectVersionText.waitForExist() await expectWDIO(instance.mainSelectVersionText).toBeDisplayed() - await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v22.08.2') + await expectWDIO(instance.mainSelectVersionText).toHaveText('Version: selfcustody/krux/releases/tag/v23.09.0') }) }) diff --git a/test/e2e/specs/039-verified-official-release.spec.ts b/test/e2e/specs/039-verified-official-release.spec.ts index 46c90369..f0344fba 100644 --- a/test/e2e/specs/039-verified-official-release.spec.ts +++ b/test/e2e/specs/039-verified-official-release.spec.ts @@ -96,13 +96,13 @@ describe('KruxInstaller VerifiedOfficialRelease page (show and click back button it('should show sha256sum intergrity sha256.txt', async () => { await instance.verifiedOfficialReleasePageSha2256IntegritySha256txt.waitForExist() await expectWDIO(instance.verifiedOfficialReleasePageSha2256IntegritySha256txt).toBeDisplayed() - await expectWDIO(instance.verifiedOfficialReleasePageSha2256IntegritySha256txt).toHaveText('Expected result from file v22.08.2/krux-v22.08.2.zip.sha256.txt\n26 f9 01 a1 73 90 2e 76 b4 d8 4a 95 ee 3d 55 24 51 bc 08 f6 a0 54 e4 72 d5 a5 4e 62 36 31 27 63') + await expectWDIO(instance.verifiedOfficialReleasePageSha2256IntegritySha256txt).toHaveText('Expected result from file v23.09.0/krux-v23.09.0.zip.sha256.txt\n4a 8a a4 0b 71 f7 df 35 5b d1 54 ff ac 9c 9f 10 99 e8 7a 89 c0 53 32 58 7e bc 02 a2 15 92 ec 1b') }) it('should show sha256sum intergrity sha256 summed result', async () => { await instance.verifiedOfficialReleasePageSha2256IntegritySha256.waitForExist() await expectWDIO(instance.verifiedOfficialReleasePageSha2256IntegritySha256).toBeDisplayed() - await expectWDIO(instance.verifiedOfficialReleasePageSha2256IntegritySha256).toHaveText('Summed result of file v22.08.2/krux-v22.08.2.zip\n26 f9 01 a1 73 90 2e 76 b4 d8 4a 95 ee 3d 55 24 51 bc 08 f6 a0 54 e4 72 d5 a5 4e 62 36 31 27 63') + await expectWDIO(instance.verifiedOfficialReleasePageSha2256IntegritySha256).toHaveText('Summed result of file v23.09.0/krux-v23.09.0.zip\n4a 8a a4 0b 71 f7 df 35 5b d1 54 ff ac 9c 9f 10 99 e8 7a 89 c0 53 32 58 7e bc 02 a2 15 92 ec 1b') }) it('should show openssl authenticity title', async () => { @@ -131,6 +131,11 @@ describe('KruxInstaller VerifiedOfficialRelease page (show and click back button } else { const lang = osLangSync() const home = homedir() + if (process.platform === 'linux' || process.platform === 'darwin') { + openssl = 'openssl' + } else if (process.platform === 'win32') { + openssl = 'openssl.exe' + } if ( lang.match(/en-*/g)) { resources = join(home, 'Documents', 'krux-installer') } else if ( lang.match(/pt-*/g)) { @@ -140,9 +145,9 @@ describe('KruxInstaller VerifiedOfficialRelease page (show and click back button } } - const resourceZip = join(resources, 'v22.08.2', 'krux-v22.08.2.zip') + const resourceZip = join(resources, 'v23.09.0', 'krux-v23.09.0.zip') const resourcePem = join(resources, 'main', 'selfcustody.pem') - const resourceSig = join(resources, 'v22.08.2', 'krux-v22.08.2.zip.sig') + const resourceSig = join(resources, 'v23.09.0', 'krux-v23.09.0.zip.sig') const command = [ '$>', `${openssl} sha256 <${resourceZip}`, diff --git a/wdio.conf.mts b/wdio.conf.mts index 7b9089df..ef5e7fde 100644 --- a/wdio.conf.mts +++ b/wdio.conf.mts @@ -72,7 +72,6 @@ if (hasFilter.length > 0) { if (hasFilter[0] === '--filter' || hasFilter[0] === '-f') { const filter = new RegExp(hasFilter[1], 'g') specs.map(async function (file: string) { - console.log(file.match(filter)) if (file.match(filter)) { debug(`Excluding ${file}`) SPECS_TO_EXCLUDE.push(file) @@ -86,16 +85,13 @@ if (hasFilter.length > 0) { // - Positive: add it to SPECS_TO_EXCLUDE // - Negative: add it to SPECS_TO_TEST specs.map(async function (file: string) { - debug(` checking ${file}`) if ( file === 'test/e2e/specs/014.select-version-selfcustody-release-zip.spec.ts' || file === 'test/e2e/specs/018.already-downloaded-selfcustody-release-zip-click-download-again.spec.ts' ) { try { const r = join(resources, 'v22.08.2', 'krux-v22.08.2.zip') - debug(` checking ${r}`) accessSync(r) - debug(` ${r} exists`) SPECS_TO_EXCLUDE.push(file) } catch (error) { SPECS_TO_TEST.push(file) @@ -106,9 +102,7 @@ specs.map(async function (file: string) { ) { try { const r = join(resources, 'v22.08.2', 'krux-v22.08.2.zip.sha256.txt') - debug(` checking ${r}`) accessSync(r) - debug(` ${r} exists`) SPECS_TO_EXCLUDE.push(file) } catch (error) { SPECS_TO_TEST.push(file) @@ -119,9 +113,7 @@ specs.map(async function (file: string) { ) { try { const r = join(resources, 'v22.08.2', 'krux-v22.08.2.zip.sig') - debug(` checking ${r}`) accessSync(r) - debug(` ${r} exists`) SPECS_TO_EXCLUDE.push(file) } catch (error) { SPECS_TO_TEST.push(file) @@ -131,9 +123,7 @@ specs.map(async function (file: string) { ) { try { const r = join(resources, 'main', 'selfcustody.pem') - debug(` checking ${r}`) accessSync(r) - debug(` ${r} exists`) SPECS_TO_EXCLUDE.push(file) } catch (error) { SPECS_TO_TEST.push(file)