Skip to content

Commit 59986f0

Browse files
committed
Remove the 'wait' action as it is better implemented as asyncio.wait(..) on the server side.
1 parent 71c24b4 commit 59986f0

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

cypress/e2e/trafficlight/actions/browser.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ export function idle(): void {
2020
cy.wait(5000);
2121
}
2222

23-
export function wait(time: string): string {
24-
const _time = time ? parseInt(time, 10): 5000;
25-
cy.wait(_time);
26-
return "wait_over";
27-
}
28-
2923
export function advanceClock(milliseconds: string): string {
3024
const millisecondsAsNumber = parseInt(milliseconds, 10);
3125
if (isNaN(millisecondsAsNumber)) {

cypress/e2e/trafficlight/trafficlight.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ limitations under the License.
2121
import fetch from "node-fetch";
2222

2323
import { login, logout, register } from "./actions/auth";
24-
import { advanceClock, clearIDBStorage, exit, idle, reload, wait } from "./actions/browser";
24+
import { advanceClock, clearIDBStorage, exit, idle, reload } from "./actions/browser";
2525
import {
2626
acceptCrossSigningRequest,
2727
enableDehydratedDevice,
@@ -235,10 +235,6 @@ function runAction(action: string, data: JSONValue): string | undefined {
235235
case 'idle':
236236
idle();
237237
break;
238-
case 'wait': {
239-
const time = data?.["time"];
240-
return wait(time);
241-
}
242238
case "advance_clock": {
243239
const milliseconds = data["milliseconds"];
244240
if (!milliseconds) {

0 commit comments

Comments
 (0)