Shopware 6 /.env:
APP_URL=https://127.0.0.1
shopware/ATS is using:
static async createApiRequestContext(options) {
const extraHTTPHeaders = {
"Accept": "application/json",
"Content-Type": "application/json"
};
if (options.access_token && options.access_token.length) {
extraHTTPHeaders["Authorization"] = "Bearer " + options.access_token;
}
return await request.newContext({
baseURL: `${options.app_url}api/`,
ignoreHTTPSErrors: options.ignoreHTTPSErrors,
extraHTTPHeaders
});
}
So you're creating the baseURL as "https://127.0.0.1api/" – The default is to NOT add a trailing slash in the shopware 6 .env file.
Also you're ignoring the Playwright BaseURL.
Something's very strange here.
Shopware 6 /.env:
APP_URL=https://127.0.0.1
shopware/ATS is using:
So you're creating the baseURL as "https://127.0.0.1api/" – The default is to NOT add a trailing slash in the shopware 6 .env file.
Also you're ignoring the Playwright BaseURL.
Something's very strange here.