Skip to content

Commit

Permalink
Remove unused commands
Browse files Browse the repository at this point in the history
  • Loading branch information
asekawa committed Apr 1, 2024
1 parent e709714 commit 77f12e1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 182 deletions.
109 changes: 0 additions & 109 deletions src/ui/commands/authentication.ts

This file was deleted.

39 changes: 26 additions & 13 deletions src/ui/commands/dom.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -14,7 +14,6 @@
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/

import { CommonUtils } from "../utils";
Expand All @@ -33,11 +32,18 @@ import { CommonUtils } from "../utils";
* @param {string} options - Query options. i.e timeout etc.
* @returns {Cypress.CanReturnChainable}
*/
Cypress.Commands.add("dataTestId", (value: string, options?: Partial<Cypress.Loggable & Cypress.Timeoutable
& Cypress.Withinable & Cypress.Shadow>): Cypress.Chainable => {

return cy.get(CommonUtils.resolveDataTestId(value), options);
});
Cypress.Commands.add(
"dataTestId",
(
value: string,
options?: Partial<
Cypress.Loggable &
Cypress.Timeoutable &
Cypress.Withinable &
Cypress.Shadow
>,
): Cypress.Chainable => cy.get(CommonUtils.resolveDataTestId(value), options),
);

/**
* Custom command to select DOM element by `data-componentid` attribute.
Expand All @@ -49,8 +55,15 @@ Cypress.Commands.add("dataTestId", (value: string, options?: Partial<Cypress.Log
* @param {string} options - Query options. i.e timeout etc.
* @returns {Cypress.CanReturnChainable}
*/
Cypress.Commands.add("dataComponentId", (value: string, options?: Partial<Cypress.Loggable & Cypress.Timeoutable
& Cypress.Withinable & Cypress.Shadow>): Cypress.Chainable => {

return cy.get(CommonUtils.resolveDataTestId(value), options);
});
Cypress.Commands.add(
"dataComponentId",
(
value: string,
options?: Partial<
Cypress.Loggable &
Cypress.Timeoutable &
Cypress.Withinable &
Cypress.Shadow
>,
): Cypress.Chainable => cy.get(CommonUtils.resolveDataTestId(value), options),
);
40 changes: 0 additions & 40 deletions src/ui/commands/user-onboard/commands.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/ui/commands/user-onboard/index.ts

This file was deleted.

0 comments on commit 77f12e1

Please sign in to comment.