Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteregrets committed Nov 18, 2023
1 parent ea85599 commit fffe4b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tests/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,25 @@ describe("mirrord sample flow test", function () {

let terminal = await panel.openTerminalView();

console.log("terminal opened");

await browser.driver.wait(async () => {
const text = await terminal.getText();
return await terminal.isDisplayed() && text.includes("Press CTRL+C to quit");
}, 2 * defaultTimeout, "terminal text not found -- timed out");

console.log("terminal text found");
await sendTrafficToPod();

console.log("traffic sent to pod");

await browser.driver.wait(async () => {
const text = await terminal.getText();
return text.includes("GET: Request completed");
}, defaultTimeout, "terminal text not found -- timed out");

console.log("terminal text found - traffic sent to pod");

});
});

Expand Down

0 comments on commit fffe4b4

Please sign in to comment.