@sprucelabs/heartwood-polish 7.1.0 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,11 +7,11 @@ const SpruceError_1 = __importDefault(require("../../errors/SpruceError"));
|
|
|
7
7
|
const AssertAction_1 = require("../AssertAction");
|
|
8
8
|
async function assertDoesExist(options) {
|
|
9
9
|
const { targetSelector, page } = options;
|
|
10
|
-
const target = await page.$(
|
|
10
|
+
const target = await page.$(targetSelector);
|
|
11
11
|
if (!target) {
|
|
12
12
|
throw new SpruceError_1.default({
|
|
13
13
|
code: 'INVALID_TARGET',
|
|
14
|
-
friendlyMessage: `I could not find the target ${
|
|
14
|
+
friendlyMessage: `I could not find the target ${targetSelector}`,
|
|
15
15
|
target: [],
|
|
16
16
|
});
|
|
17
17
|
}
|