diff --git a/tests/e2e/e2e-flash-from-url.spec.ts b/tests/e2e/e2e-flash-from-url.spec.ts index 4441ca75ba7..3496f64f973 100644 --- a/tests/e2e/e2e-flash-from-url.spec.ts +++ b/tests/e2e/e2e-flash-from-url.spec.ts @@ -5,7 +5,7 @@ describe('Electron Testing', () => { console.log('Hello', await browser.getTitle(), 'application!'); }); - it('should "select an url source"', async () => { + it('should "flash e2e"', async () => { const flashFromUrlButton = $('button[data-testid="flash-from-url"]'); await flashFromUrlButton.waitForDisplayed({ timeout: 10000 }); // const isDisplayed = await flashFromFileButton.isDisplayed(); @@ -22,9 +22,7 @@ describe('Electron Testing', () => { const sourceUrlOkButton = $('button[data-testid="source-url-ok-button"]'); await sourceUrlOkButton.waitForDisplayed({ timeout: 10000 }); await sourceUrlOkButton.click(); - }); - - it('should "select a virtual target"', async () => { + const selectTargetButton = $('button[data-testid="select-target-button"]'); await selectTargetButton.waitForClickable({ timeout: 30000 }); await selectTargetButton.click(); @@ -40,15 +38,11 @@ describe('Electron Testing', () => { ); await validateTargetButton.waitForClickable({ timeout: 10000 }); await validateTargetButton.click(); - }); - - it('should "start flashing"', async () => { + const flashNowButton = $('button[data-testid="flash-now-button"]'); await flashNowButton.waitForClickable({ timeout: 10000 }); await flashNowButton.click(); - }); - - it('should find "Flash Completed" screen', async () => { + const flashResults = $('[data-testid="flash-results"]'); await flashResults.waitForDisplayed({ timeout: 180000 });