Skip to content

Commit

Permalink
fixed win32 test for release zip's WarningDownload
Browse files Browse the repository at this point in the history
  • Loading branch information
qlrd committed Aug 24, 2023
1 parent b3e1028 commit 71c2fa2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 71c2fa2

Please sign in to comment.