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.33.0 to 0.34.0

4

dist/components/HTMLAnchorDriver.d.ts

@@ -1,5 +0,7 @@

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

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

}
getHref() {
return __awaiter(this, void 0, void 0, function* () {
return this.interactor.getAttribute(this.locator, 'href');
});
}
getTarget() {
return __awaiter(this, void 0, void 0, function* () {
return this.interactor.getAttribute(this.locator, 'target');
});
}
get driverName() {

@@ -22,0 +32,0 @@ return 'HTMLButtonDriver';

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

isDisabled(): Promise<boolean>;
isReadonly(): Promise<boolean>;
get driverName(): string;
}

@@ -23,5 +23,2 @@ "use strict";

}
isReadonly() {
return this.interactor.isReadonly(this.locator);
}
get driverName() {

@@ -28,0 +25,0 @@ return 'HTMLButtonDriver';

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

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

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

@@ -31,8 +31,8 @@ "devDependencies": {

"@testing-library/user-event": "^14.0.0",
"@types/jest": "^29.5.0",
"@types/jest": "^29.5.5",
"@types/node": "^16.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"ts-jest": "^29.0.5",

@@ -39,0 +39,0 @@ "ts-node": "^10.9.0",

@@ -1,2 +0,2 @@

import { ClickOption, ComponentDriver, IClickableDriver } from '@atomic-testing/core';
import { ClickOption, ComponentDriver, IClickableDriver, Optional } from '@atomic-testing/core';

@@ -8,2 +8,10 @@ export class HTMLAnchorDriver extends ComponentDriver<{}> implements IClickableDriver {

async getHref(): Promise<Optional<string>> {
return this.interactor.getAttribute(this.locator, 'href');
}
async getTarget(): Promise<Optional<string>> {
return this.interactor.getAttribute(this.locator, 'target');
}
get driverName(): string {

@@ -10,0 +18,0 @@ return 'HTMLButtonDriver';

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

isReadonly(): Promise<boolean> {
return this.interactor.isReadonly(this.locator);
}
get driverName(): string {

@@ -18,0 +14,0 @@ return 'HTMLButtonDriver';

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