Skip to content

Commit c622259

Browse files
committed
TEST
1 parent f907d59 commit c622259

File tree

3 files changed

+12
-22
lines changed

3 files changed

+12
-22
lines changed

test/integration/jasmine-boot.js

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,7 @@ async function runTests(results) {
2525
jasmine.loadConfig({
2626
random: true,
2727
spec_dir: "integration",
28-
spec_files: [
29-
"accessibility_spec.mjs",
30-
"annotation_spec.mjs",
31-
"autolinker_spec.mjs",
32-
"caret_browsing_spec.mjs",
33-
"copy_paste_spec.mjs",
34-
"document_properties_spec.mjs",
35-
"find_spec.mjs",
36-
"freetext_editor_spec.mjs",
37-
"highlight_editor_spec.mjs",
38-
"ink_editor_spec.mjs",
39-
"scripting_spec.mjs",
40-
"signature_editor_spec.mjs",
41-
"stamp_editor_spec.mjs",
42-
"text_field_spec.mjs",
43-
"text_layer_spec.mjs",
44-
"thumbnail_view_spec.mjs",
45-
"viewer_spec.mjs",
46-
],
28+
spec_files: ["scripting_spec.mjs"],
4729
});
4830

4931
jasmine.addReporter({

test/integration/scripting_spec.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {
1717
awaitPromise,
1818
clearInput,
1919
closePages,
20-
closeSinglePage,
2120
getAnnotationStorage,
2221
getComputedStyleSelector,
2322
getFirstSerialized,
@@ -427,6 +426,10 @@ describe("Interaction", () => {
427426
});
428427
});
429428

429+
afterEach(async () => {
430+
await closePages(pages);
431+
});
432+
430433
it("must execute WillPrint and DidPrint actions", async () => {
431434
await Promise.all(
432435
pages.map(async ([browserName, page]) => {
@@ -450,7 +453,6 @@ describe("Interaction", () => {
450453
await page.waitForFunction(
451454
`${getQuerySelector("50R")}.value === "DidPrint"`
452455
);
453-
await closeSinglePage(page);
454456
})
455457
);
456458
});

test/test.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,12 @@ async function startBrowser({
963963
"browser.topsites.contile.enabled": false,
964964
// Disable logging for remote settings.
965965
"services.settings.loglevel": "off",
966+
// Disable AI/ML functionality.
967+
"browser.ml.enable": false,
968+
"browser.ml.chat.enabled": false,
969+
"browser.ml.linkPreview.enabled": false,
970+
"browser.tabs.groups.smart.enabled": false,
971+
"browser.tabs.groups.smart.userEnabled": false,
966972
...extraPrefsFirefox,
967973
};
968974
}
@@ -984,7 +990,7 @@ async function startBrowsers({ baseUrl, initializeSession }) {
984990
// prevent the disk from filling up over time.
985991
await puppeteer.trimCache();
986992

987-
const browserNames = ["firefox", "chrome"];
993+
const browserNames = ["firefox"];
988994
if (options.noChrome) {
989995
browserNames.splice(1, 1);
990996
}

0 commit comments

Comments
 (0)