New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sap_oss/wdio-qmate-service

Package Overview
Dependencies
Maintainers
26
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap_oss/wdio-qmate-service - npm Package Compare versions

Comparing version 2.9.6 to 2.9.7

13

lib/reuse/modules/ui5/navigation.js

@@ -36,4 +36,4 @@ "use strict";

// Check if intent has query params and extract them from the intent
queryParams = queryParams.concat(this._extractQueryParams(intent));
// Check if baseUrl has query params and extract them from the baseUrl
const intentQueryParams = this._extractQueryParams(intent);
// Check if baseUrl has query params, extract them from the baseUrl and merge them with the existing params
queryParams = queryParams.concat(this._extractQueryParams(browser.config.baseUrl));

@@ -44,7 +44,12 @@ // Add prevent popup url params if not already present

}
// Construct the url with the intent and query params
// Construct the url params
let constructedParams = this._constructUrlParams(queryParams);
if (constructedParams !== "")
constructedParams = `?${constructedParams}`;
const urlWithParams = `${baseUrlNormalized}${constructedParams}#${intentNormalized}`;
// Construct the intent params
let constructedIntentParams = this._constructUrlParams(intentQueryParams);
if (constructedIntentParams !== "")
constructedIntentParams = `?${constructedIntentParams}`;
// Construct the final url
const urlWithParams = `${baseUrlNormalized}${constructedParams}#${intentNormalized}${constructedIntentParams}`;
vl.log(`Url with params: ${urlWithParams}`);

@@ -51,0 +56,0 @@ try {

{
"name": "@sap_oss/wdio-qmate-service",
"version": "2.9.6",
"version": "2.9.7",
"author": "SAP SE",

@@ -5,0 +5,0 @@ "types": "./@types/index.d.ts",

@@ -13,3 +13,4 @@ "use strict";

const INTENT = "Shell-home";
const DUMMY_QUERY_PARAM = "dummyQueryParam=dummyValue";
const DUMMY_QUERY_PARAM_1 = "dummyQueryParam1=dummyValue1";
const DUMMY_QUERY_PARAM_2 = "dummyQueryParam2=dummyValue2";
const PREVENT_POPUP_QUERY_PARAMS = "help-readCatalog=false&help-stateUACP=PRODUCTION";

@@ -64,3 +65,3 @@

it("Preparation", async function () {
browser.config.baseUrl = `${BASE_URL}?${DUMMY_QUERY_PARAM}`;
browser.config.baseUrl = `${BASE_URL}?${DUMMY_QUERY_PARAM_1}`;
});

@@ -73,3 +74,3 @@

it("Verification", async function () {
const urlExp = `${BASE_URL}?${DUMMY_QUERY_PARAM}#Shell-home`;
const urlExp = `${BASE_URL}?${DUMMY_QUERY_PARAM_1}#Shell-home`;
await common.assertion.expectUrlToBe(urlExp);

@@ -79,4 +80,19 @@ });

describe("navigation - navigateToApplication - intent with dummy query parameters", function () {
describe("navigation - navigateToApplication - intent and baseUrl with query parameters", function () {
it("Preparation", async function () {
browser.config.baseUrl = `${BASE_URL}?${DUMMY_QUERY_PARAM_1}`;
});
it("Execution", async function () {
await ui5.navigation.navigateToApplication(`${INTENT}?${DUMMY_QUERY_PARAM_2}`, false);
});
it("Verification", async function () {
const urlExp = `${BASE_URL}?${DUMMY_QUERY_PARAM_1}#Shell-home?${DUMMY_QUERY_PARAM_2}`;
await common.assertion.expectUrlToBe(urlExp);
});
});
describe("navigation - navigateToApplication - intent with multiple query parameters", function () {
it("Preparation", async function () {
browser.config.baseUrl = BASE_URL;

@@ -86,7 +102,7 @@ });

it("Execution", async function () {
await ui5.navigation.navigateToApplication(`${INTENT}?${DUMMY_QUERY_PARAM}`, false);
await ui5.navigation.navigateToApplication(`${INTENT}?${DUMMY_QUERY_PARAM_1}&${DUMMY_QUERY_PARAM_2}`, false);
});
it("Verification", async function () {
const urlExp = `${BASE_URL}?${DUMMY_QUERY_PARAM}#Shell-home`;
const urlExp = `${BASE_URL}#Shell-home?${DUMMY_QUERY_PARAM_1}&${DUMMY_QUERY_PARAM_2}`;
await common.assertion.expectUrlToBe(urlExp);

@@ -98,3 +114,3 @@ });

it("Preparation", async function () {
browser.config.baseUrl = `${BASE_URL}?${DUMMY_QUERY_PARAM}&${PREVENT_POPUP_QUERY_PARAMS}`;
browser.config.baseUrl = `${BASE_URL}?${DUMMY_QUERY_PARAM_1}&${PREVENT_POPUP_QUERY_PARAMS}`;
});

@@ -107,3 +123,3 @@

it("Verification", async function () {
const urlExp = `${BASE_URL}?${DUMMY_QUERY_PARAM}&${PREVENT_POPUP_QUERY_PARAMS}#Shell-home`;
const urlExp = `${BASE_URL}?${DUMMY_QUERY_PARAM_1}&${PREVENT_POPUP_QUERY_PARAMS}#Shell-home`;
await common.assertion.expectUrlToBe(urlExp);

@@ -110,0 +126,0 @@ });

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