@bigbinary/neeto-playwright-commons 1.22.33 → 1.22.34
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.
- package/index.cjs.js +2892 -2660
- package/index.cjs.js.map +1 -1
- package/index.d.ts +18 -42
- package/index.js +2892 -2660
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1979,7 +1979,13 @@ type RedirectUrl = string | RegExp | ((url: URL) => boolean);
|
|
|
1979
1979
|
type PartialInterceptMultipleResponsesParams = Partial<InterceptMultipleResponsesParams>;
|
|
1980
1980
|
type UpdateConfigureSlackChannelParams = {
|
|
1981
1981
|
newSlackChannel: string;
|
|
1982
|
+
/**
|
|
1983
|
+
* @deprecated This option is no longer used.
|
|
1984
|
+
*/
|
|
1982
1985
|
interceptMultipleResponsesParams?: PartialInterceptMultipleResponsesParams;
|
|
1986
|
+
/**
|
|
1987
|
+
* @deprecated This option is no longer used.
|
|
1988
|
+
*/
|
|
1983
1989
|
refreshInterceptMultipleResponsesParams?: PartialInterceptMultipleResponsesParams;
|
|
1984
1990
|
refreshChannelList?: boolean;
|
|
1985
1991
|
};
|
|
@@ -2048,10 +2054,6 @@ declare class SlackPage extends IntegrationBase {
|
|
|
2048
2054
|
*
|
|
2049
2055
|
* newSlackChannel: The name of the slack channel to which the update will be applied.
|
|
2050
2056
|
*
|
|
2051
|
-
* interceptMultipleResponsesParams (optional): Parameters for intercepting multiple responses.
|
|
2052
|
-
*
|
|
2053
|
-
* refreshInterceptMultipleResponsesParams (optional): Parameters for refreshing intercepting multiple responses.
|
|
2054
|
-
*
|
|
2055
2057
|
* refreshChannelList (optional): Whether to refresh the channel list.
|
|
2056
2058
|
*
|
|
2057
2059
|
* @example
|
|
@@ -2060,23 +2062,6 @@ declare class SlackPage extends IntegrationBase {
|
|
|
2060
2062
|
* newSlackChannel: "example-channel",
|
|
2061
2063
|
* refreshChannelList: true
|
|
2062
2064
|
* });
|
|
2063
|
-
* //or
|
|
2064
|
-
* await slackPage.updateConfigureSlackChannel({
|
|
2065
|
-
* newSlackChannel: "example-channel",
|
|
2066
|
-
* refreshChannelList: true,
|
|
2067
|
-
* refreshInterceptMultipleResponsesParams:{
|
|
2068
|
-
* responseUrl: "/auth";
|
|
2069
|
-
* times:1;
|
|
2070
|
-
* baseUrl: "https://www.zoom.com";
|
|
2071
|
-
* responseStatus: 200;
|
|
2072
|
-
* },
|
|
2073
|
-
* interceptMultipleResponsesParams:{
|
|
2074
|
-
* responseUrl: "/auth";
|
|
2075
|
-
* times:1;
|
|
2076
|
-
* baseUrl: "https://www.zoom.com";
|
|
2077
|
-
* responseStatus: 200;
|
|
2078
|
-
* }
|
|
2079
|
-
* });
|
|
2080
2065
|
* @endexample
|
|
2081
2066
|
*/
|
|
2082
2067
|
updateConfigureSlackChannel: ({
|
|
@@ -2885,13 +2870,10 @@ declare class TeamMembers {
|
|
|
2885
2870
|
*
|
|
2886
2871
|
* email (required): The email of the member to be searched.
|
|
2887
2872
|
*
|
|
2888
|
-
* interceptOptions (optional): The options to be passed to the waitForMultipleResponse command.
|
|
2889
|
-
*
|
|
2890
2873
|
* @example
|
|
2891
2874
|
*
|
|
2892
2875
|
* await teamMembers.searchAndVerifyMemberByEmail({
|
|
2893
2876
|
* email: "sam@example.com",
|
|
2894
|
-
* interceptOptions: { timeout: 10000, requestCount: 1 },
|
|
2895
2877
|
* });
|
|
2896
2878
|
* @endexample
|
|
2897
2879
|
*/
|
|
@@ -2900,6 +2882,9 @@ declare class TeamMembers {
|
|
|
2900
2882
|
interceptOptions
|
|
2901
2883
|
}: {
|
|
2902
2884
|
email: string;
|
|
2885
|
+
/**
|
|
2886
|
+
* @deprecated This option is no longer used.
|
|
2887
|
+
*/
|
|
2903
2888
|
interceptOptions?: Partial<Omit<InterceptMultipleResponsesParams, "responseUrl">>;
|
|
2904
2889
|
}) => Promise<void>;
|
|
2905
2890
|
/**
|
|
@@ -3978,7 +3963,6 @@ declare class TagsPage {
|
|
|
3978
3963
|
* await tagsPage.addTagViaUI({
|
|
3979
3964
|
* tagName: "tagName",
|
|
3980
3965
|
* addTagsLabel: "Add new tag",
|
|
3981
|
-
* tagsResponseUrl: API_ROUTES.tags.index,
|
|
3982
3966
|
* });
|
|
3983
3967
|
* @endexample
|
|
3984
3968
|
*/
|
|
@@ -3989,6 +3973,9 @@ declare class TagsPage {
|
|
|
3989
3973
|
}: {
|
|
3990
3974
|
tagName: string;
|
|
3991
3975
|
addTagsLabel: string;
|
|
3976
|
+
/**
|
|
3977
|
+
* @deprecated This option is no longer used.
|
|
3978
|
+
*/
|
|
3992
3979
|
tagsResponseUrl?: string;
|
|
3993
3980
|
}) => Promise<void>;
|
|
3994
3981
|
/**
|
|
@@ -6957,6 +6944,9 @@ declare const initializeTestData: (product: NeetoProducts) => {
|
|
|
6957
6944
|
};
|
|
6958
6945
|
interface LoginProps {
|
|
6959
6946
|
page: Page;
|
|
6947
|
+
/**
|
|
6948
|
+
* @deprecated This option is no longer used.
|
|
6949
|
+
*/
|
|
6960
6950
|
neetoPlaywrightUtilities: CustomCommands;
|
|
6961
6951
|
loginPath?: string;
|
|
6962
6952
|
}
|
|
@@ -6968,17 +6958,11 @@ interface LoginProps {
|
|
|
6968
6958
|
*
|
|
6969
6959
|
* page: A page object
|
|
6970
6960
|
*
|
|
6971
|
-
* neetoPlaywrightUtilities: An object of type NeetoPlaywrightUtilities
|
|
6972
|
-
*
|
|
6973
6961
|
* @example
|
|
6974
6962
|
*
|
|
6975
6963
|
* import { loginWithoutSSO } from "@bigbinary/neeto-playwright-commons"
|
|
6976
6964
|
*
|
|
6977
|
-
* await loginWithoutSSO({
|
|
6978
|
-
* page,
|
|
6979
|
-
* neetoPlaywrightUtilities,
|
|
6980
|
-
* loginPath:"/home"
|
|
6981
|
-
* })
|
|
6965
|
+
* await loginWithoutSSO({ page, loginPath:"/home" })
|
|
6982
6966
|
* @endexample
|
|
6983
6967
|
*/
|
|
6984
6968
|
declare const loginWithoutSSO: ({
|
|
@@ -6988,25 +6972,17 @@ declare const loginWithoutSSO: ({
|
|
|
6988
6972
|
}: LoginProps) => Promise<void>;
|
|
6989
6973
|
/**
|
|
6990
6974
|
*
|
|
6991
|
-
* Used to Login to App
|
|
6992
|
-
*
|
|
6993
|
-
* Only works in staging environment. It takes the following parameters:
|
|
6975
|
+
* Used to Login to App. Only works in staging environment. It takes the following parameters:
|
|
6994
6976
|
*
|
|
6995
6977
|
* loginPath (optional): The path to which the user should be redirected for login. Default is /
|
|
6996
6978
|
*
|
|
6997
6979
|
* page: A page object
|
|
6998
6980
|
*
|
|
6999
|
-
* neetoPlaywrightUtilities: An object of type NeetoPlaywrightUtilities
|
|
7000
|
-
*
|
|
7001
6981
|
* @example
|
|
7002
6982
|
*
|
|
7003
6983
|
* import { login } from "@bigbinary/neeto-playwright-commons"
|
|
7004
6984
|
*
|
|
7005
|
-
* login({
|
|
7006
|
-
* page,
|
|
7007
|
-
* neetoPlaywrightUtilities,
|
|
7008
|
-
* loginPath:"/home"
|
|
7009
|
-
* })
|
|
6985
|
+
* await login({ page, loginPath:"/home" })
|
|
7010
6986
|
* @endexample
|
|
7011
6987
|
*/
|
|
7012
6988
|
declare const login: ({
|