Socket
Socket
Sign inDemoInstall

@atomic-testing/component-driver-html

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atomic-testing/component-driver-html - npm Package Compare versions

Comparing version 0.34.0 to 0.35.0

5

dist/components/HTMLAnchorDriver.d.ts

@@ -1,4 +0,5 @@

import { ClickOption, ComponentDriver, IClickableDriver, Optional } from '@atomic-testing/core';
export declare class HTMLAnchorDriver extends ComponentDriver<{}> implements IClickableDriver {
import { ClickOption, ComponentDriver, HoverOption, IClickableDriver, IMouseInteractableDriver, Optional } from '@atomic-testing/core';
export declare class HTMLAnchorDriver extends ComponentDriver<{}> implements IClickableDriver, IMouseInteractableDriver {
click(option?: ClickOption): Promise<void>;
hover(option?: HoverOption): Promise<void>;
getHref(): Promise<Optional<string>>;

@@ -5,0 +6,0 @@ getTarget(): Promise<Optional<string>>;

@@ -20,2 +20,7 @@ "use strict";

}
hover(option) {
return __awaiter(this, void 0, void 0, function* () {
yield this.interactor.click(this.locator, option);
});
}
getHref() {

@@ -22,0 +27,0 @@ return __awaiter(this, void 0, void 0, function* () {

@@ -1,3 +0,4 @@

import { ClickOption, ComponentDriver, IClickableDriver } from '@atomic-testing/core';
export declare class HTMLButtonDriver extends ComponentDriver<{}> implements IClickableDriver {
import { ClickOption, ComponentDriver, IClickableDriver, IMouseInteractableDriver } from '@atomic-testing/core';
export declare class HTMLButtonDriver extends ComponentDriver<{}> implements IClickableDriver, IMouseInteractableDriver {
hover(): Promise<void>;
click(option?: ClickOption): Promise<void>;

@@ -4,0 +5,0 @@ isDisabled(): Promise<boolean>;

@@ -15,2 +15,7 @@ "use strict";

class HTMLButtonDriver extends core_1.ComponentDriver {
hover() {
return __awaiter(this, void 0, void 0, function* () {
this.interactor.hover(this.locator);
});
}
click(option) {

@@ -17,0 +22,0 @@ return __awaiter(this, void 0, void 0, function* () {

1

dist/components/HTMLElementDriver.d.ts

@@ -6,3 +6,4 @@ import { ComponentDriver } from '@atomic-testing/core';

export declare class HTMLElementDriver extends ComponentDriver<{}> {
hover(): Promise<void>;
get driverName(): string;
}
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -9,2 +18,7 @@ exports.HTMLElementDriver = void 0;

class HTMLElementDriver extends core_1.ComponentDriver {
hover() {
return __awaiter(this, void 0, void 0, function* () {
this.interactor.hover(this.locator);
});
}
get driverName() {

@@ -11,0 +25,0 @@ return 'HTMLElementDriver';

{
"name": "@atomic-testing/component-driver-html",
"version": "0.34.0",
"version": "0.35.0",
"description": "HTML component driver for atomic-testing",

@@ -25,3 +25,3 @@ "main": "dist/index.js",

"dependencies": {
"@atomic-testing/core": "0.34.0"
"@atomic-testing/core": "0.35.0"
},

@@ -28,0 +28,0 @@ "devDependencies": {

@@ -1,4 +0,11 @@

import { ClickOption, ComponentDriver, IClickableDriver, Optional } from '@atomic-testing/core';
import {
ClickOption,
ComponentDriver,
HoverOption,
IClickableDriver,
IMouseInteractableDriver,
Optional,
} from '@atomic-testing/core';
export class HTMLAnchorDriver extends ComponentDriver<{}> implements IClickableDriver {
export class HTMLAnchorDriver extends ComponentDriver<{}> implements IClickableDriver, IMouseInteractableDriver {
async click(option?: ClickOption): Promise<void> {

@@ -8,2 +15,6 @@ await this.interactor.click(this.locator, option);

async hover(option?: HoverOption): Promise<void> {
await this.interactor.click(this.locator, option);
}
async getHref(): Promise<Optional<string>> {

@@ -10,0 +21,0 @@ return this.interactor.getAttribute(this.locator, 'href');

@@ -1,4 +0,8 @@

import { ClickOption, ComponentDriver, IClickableDriver } from '@atomic-testing/core';
import { ClickOption, ComponentDriver, IClickableDriver, IMouseInteractableDriver } from '@atomic-testing/core';
export class HTMLButtonDriver extends ComponentDriver<{}> implements IClickableDriver {
export class HTMLButtonDriver extends ComponentDriver<{}> implements IClickableDriver, IMouseInteractableDriver {
async hover(): Promise<void> {
this.interactor.hover(this.locator);
}
async click(option?: ClickOption): Promise<void> {

@@ -5,0 +9,0 @@ await this.interactor.click(this.locator, option);

@@ -7,2 +7,6 @@ import { ComponentDriver } from '@atomic-testing/core';

export class HTMLElementDriver extends ComponentDriver<{}> {
async hover() {
this.interactor.hover(this.locator);
}
get driverName(): string {

@@ -9,0 +13,0 @@ return 'HTMLElementDriver';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc