UNPKG

e2ed

Version:

E2E testing framework over Playwright

18 lines (17 loc) 710 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.backPageHistory = void 0; const createClientFunction_1 = require("../../../createClientFunction"); const log_1 = require("../../../utils/log"); const backPageHistoryClient = (0, createClientFunction_1.createClientFunction)(() => window.history.back(), { name: 'backPageHistory', }); /** * Go back in browser page history. */ const backPageHistory = async (page) => { (0, log_1.log)(`Go back in browser history from page "${page.constructor.name}"`, undefined, 5 /* LogEventType.InternalAction */); await backPageHistoryClient(); await page.waitForPageLoaded(); }; exports.backPageHistory = backPageHistory;