Skip to content

Commit

Permalink
Update the path for the e2e examples (#10503)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbenl authored Apr 24, 2024
1 parent 432be20 commit 853232a
Show file tree
Hide file tree
Showing 21 changed files with 107 additions and 107 deletions.
144 changes: 72 additions & 72 deletions packages/e2e-tests/examples.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default defineConfig(({ command }) => {
react17: "../react17/assets/react17.js",
};

const base = command === "serve" ? "" : "/test/examples/rdt-react-versions/dist/";
const base = command === "serve" ? "" : "/recording/test/examples/rdt-react-versions/dist/";

return {
base,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import './index.css'
async function bootstrap() {
const baseUrl =
process.env.NODE_ENV === 'production'
? '/test/examples/redux-fundamentals/dist'
? '/recording/test/examples/redux-fundamentals/dist'
: ''
await worker.start({
waitUntilReady: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig(({ command, mode }) => {
const base =
command === 'serve' ? '' : '/test/examples/redux-fundamentals/dist/'
command === 'serve' ? '' : '/recording/test/examples/redux-fundamentals/dist/'
return {
base,
plugins: [react()],
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/scripts/save-examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ async function saveBrowserExamples() {
async function saveBrowserExample({ example }: TestRunCallbackArgs) {
console.log(`Recording example ${chalk.gray.bold(example.filename)}`);

const exampleUrl = `${config.devtoolsUrl}/test/examples/${example.filename}`;
const exampleUrl = `${config.devtoolsUrl}/recording/test/examples/${example.filename}`;
async function defaultPlaywrightScript(page: Page) {
await waitUntilMessage(page as Page, "ExampleFinished");
// add a little delay to ensure that the recording is complete, see [FE-2286] and [RUN-3258]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test("inspector-computed-02: Complex computed styles can be viewed", async ({
selector: ".parent",
value: "courier",
label: "shorthand_styles.css:1",
url: "http://localhost:8080/test/examples/shorthand_styles.css",
url: "http://localhost:8080/recording/test/examples/shorthand_styles.css",
overridden: false,
},
]);
Expand All @@ -39,7 +39,7 @@ test("inspector-computed-02: Complex computed styles can be viewed", async ({
selector: ".parent",
value: "courier",
label: "shorthand_styles.css:1",
url: "http://localhost:8080/test/examples/shorthand_styles.css",
url: "http://localhost:8080/recording/test/examples/shorthand_styles.css",
overridden: true,
},
]);
Expand All @@ -50,14 +50,14 @@ test("inspector-computed-02: Complex computed styles can be viewed", async ({
selector: ".child",
value: "sans-serif",
label: "shorthand_styles.css:6",
url: "http://localhost:8080/test/examples/shorthand_styles.css",
url: "http://localhost:8080/recording/test/examples/shorthand_styles.css",
overridden: false,
},
{
selector: ".parent",
value: "courier",
label: "shorthand_styles.css:1",
url: "http://localhost:8080/test/examples/shorthand_styles.css",
url: "http://localhost:8080/recording/test/examples/shorthand_styles.css",
overridden: true,
},
]);
Expand All @@ -69,15 +69,15 @@ test("inspector-computed-02: Complex computed styles can be viewed", async ({
selector: ".child",
value: "sans-serif",
label: "shorthand_styles.css:6",
url: "http://localhost:8080/test/examples/shorthand_styles.css",
url: "http://localhost:8080/recording/test/examples/shorthand_styles.css",
overridden: true,
},
{ selector: "DIV[1].style", value: "serif", label: "element", url: "#", overridden: true },
{
selector: ".parent",
value: "courier",
label: "shorthand_styles.css:1",
url: "http://localhost:8080/test/examples/shorthand_styles.css",
url: "http://localhost:8080/recording/test/examples/shorthand_styles.css",
overridden: true,
},
]);
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/tests/node_object_preview-01.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test("node_object_preview: Showing console objects in node", async ({
await verifyConsoleMessage(page, "WeakMap(20) {{…} → {…}, {…} → {…},");
await verifyConsoleMessage(page, "{a: 0, a0: 0, a1: 1, a2: 2, a3: 3,");
await verifyConsoleMessage(page, "/abc/gi");
await verifyConsoleMessage(page, "Tue Feb 13 2024");
await verifyConsoleMessage(page, "Wed Apr 24 2024");

await verifyConsoleMessage(page, "RangeError: foo");

Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-tests/tests/stepping-01.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ test("stepping-01: Test basic step-over/back functionality", async ({
await openDevToolsTab(page);

// Open doc_rr_basic.html
await clickSourceTreeNode(page, "test");
await clickSourceTreeNode(page, "examples");
await clickSourceTreeNode(page, "recording");
await clickSourceTreeNode(page, "test/examples");
await clickSourceTreeNode(page, exampleKey);

// Pause on line 20
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-tests/tests/stepping-02.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ test("stepping-02: Test fixes for some simple stepping bugs", async ({
await openDevToolsTab(page);

// Open doc_rr_basic.html
await clickSourceTreeNode(page, "test");
await clickSourceTreeNode(page, "examples");
await clickSourceTreeNode(page, "recording");
await clickSourceTreeNode(page, "test/examples");
await clickSourceTreeNode(page, exampleKey);

await addBreakpoint(page, { lineNumber: 21, url: exampleKey });
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-tests/tests/stepping-03.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ test(`stepping-03: Stepping past the beginning or end of a frame should act like
await openDevToolsTab(page);

// Open doc_rr_basic.html
await clickSourceTreeNode(page, "test");
await clickSourceTreeNode(page, "examples");
await clickSourceTreeNode(page, "recording");
await clickSourceTreeNode(page, "test/examples");
await clickSourceTreeNode(page, exampleKey);

await addBreakpoint(page, { lineNumber: 20, url: exampleKey });
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-tests/tests/stepping-04.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ test("stepping-04: Test stepping in a frame other than the top frame", async ({
await openDevToolsTab(page);

// Open doc_rr_basic.html
await clickSourceTreeNode(page, "test");
await clickSourceTreeNode(page, "examples");
await clickSourceTreeNode(page, "recording");
await clickSourceTreeNode(page, "test/examples");
await clickSourceTreeNode(page, exampleKey);

await addLogpoint(page, { lineNumber: 24, url: exampleKey, content: "'logpoint', number" });
Expand Down
Loading

0 comments on commit 853232a

Please sign in to comment.