From 71c2fa201266c018af22377675347e21f8806b81 Mon Sep 17 00:00:00 2001 From: qlrd <106913782+qlrd@users.noreply.github.com> Date: Wed, 23 Aug 2023 21:44:46 -0300 Subject: [PATCH] fixed win32 test for release zip's WarningDownload --- .../015.already-downloaded-selfcustody-release-zip.spec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 56e30c85..a9580387 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 @@ -60,7 +60,11 @@ describe('KruxInstaller SelectVersion page (already downloaded release)', () => it('should \'v22.08.2/krux-v22.08.2.zip already downloaded\' message be displayed', async () => { await instance.warningAlreadyDownloadedText.waitForExist() await expectWDIO(instance.warningAlreadyDownloadedText).toBeDisplayed() - await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2/krux-v22.08.2.zip already downloaded') + if (process.platform === 'linux' || process.platform === 'darwin') { + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2/krux-v22.08.2.zip already downloaded') + } else if (process.platform === 'win32') { + await expectWDIO(instance.warningAlreadyDownloadedText).toHaveText('v22.08.2\\krux-v22.08.2.zip already downloaded') + } }) it('should \'Proceed with current file\' button be displayed', async () => {