Skip to content

Commit

Permalink
patch: passing url e2e ?
Browse files Browse the repository at this point in the history
  • Loading branch information
aethernet committed Apr 26, 2024
1 parent 30ba5ce commit ace8853
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions tests/e2e/e2e-flash-from-url.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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 });

Expand Down

0 comments on commit ace8853

Please sign in to comment.