Skip to content

Commit

Permalink
test-bos-loader-fix1
Browse files Browse the repository at this point in the history
  • Loading branch information
Eren-Yeaager committed May 18, 2024
1 parent 716e7ed commit ab0d127
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions playwright-tests/tests/bosloaderenvironment.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ test("should find bos loader configuration in localstorage", async ({
await page.evaluate(() => {
localStorage.setItem(
"flags",
JSON.stringify({ bosLoaderUrl: "http://127.0.0.1:8000/api/loader" })
JSON.stringify({ bosLoaderUrl: "http://127.0.0.1:8080/api/loader" })
);
});

const localStoreFlags = await page.evaluate(() =>
localStorage.getItem("flags")
);
expect(localStoreFlags).toEqual(
JSON.stringify({ bosLoaderUrl: "http://127.0.0.1:8000/api/loader" })
JSON.stringify({ bosLoaderUrl: "http://127.0.0.1:8080/api/loader" })
);
});

Expand Down
24 changes: 12 additions & 12 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ export default defineConfig({
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: "http://localhost:8000",
baseURL: "http://localhost:3000",

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
storageState: {
cookies: [],
origins: [
{
origin: "http://localhost:8000",
origin: "http://localhost:8080",
localStorage: [
{
name: "flags",
value: JSON.stringify({
bosLoaderUrl: "http://127.0.0.1:8000/api/loader",
bosLoaderUrl: "http://127.0.0.1:8080/api/loader",
}),
},
],
Expand All @@ -55,10 +55,10 @@ export default defineConfig({

/* Configure projects for major browsers */
projects: [
//{
// name: "chromium",
// use: { ...devices["Desktop Chrome"] },
// },
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},

/*{
name: 'firefox',
Expand All @@ -85,10 +85,10 @@ export default defineConfig({
// name: 'Microsoft Edge',
// use: { channel: 'msedge' },
// },
{
name: "Google Chrome",
use: { channel: "chrome" },
},
// {
// name: 'Google Chrome',
// use: { channel: 'chrome' },
// },
],

/* Folder for test artifacts such as screenshots, videos, traces, etc. */
Expand All @@ -97,7 +97,7 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
command: "npm run dev",
port: 8000,
port: 3000,
reuseExistingServer: !process.env.CI,
},
});

0 comments on commit ab0d127

Please sign in to comment.