UNPKG

playwright-fluent

Version:
18 lines (17 loc) 816 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const SUT = tslib_1.__importStar(require("../index")); const utils_1 = require("../../../../utils"); describe('has-not-selector-class', () => { // eslint-disable-next-line @typescript-eslint/no-empty-function beforeEach(() => { }); test('should return an error when page has not been initialized', async () => { // Given const page = undefined; // When // Then const expectedError = new Error("Cannot check that 'foobar' does not have class 'yo' because no browser has been launched"); await SUT.hasNotSelectorClass('foobar', 'yo', page, utils_1.defaultWaitUntilOptions).catch((error) => expect(error).toMatchObject(expectedError)); }); });