Skip to content

Commit

Permalink
Merge pull request #18567 from timvandermeij/integration-test-otherpages
Browse files Browse the repository at this point in the history
Remove obsolete `otherPages` variable from the scripting integration tests
  • Loading branch information
timvandermeij authored Aug 6, 2024
2 parents 1828481 + b7b0735 commit af012c7
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions test/integration/scripting_spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2198,20 +2198,13 @@ describe("Interaction", () => {

describe("Textfield with a Blur callback", () => {
let pages;
let otherPages;

beforeAll(async () => {
otherPages = await Promise.all(
global.integrationSessions.map(async session =>
session.browser.newPage()
)
);
pages = await loadAndWait("bug1863910.pdf", getSelector("25R"));
});

afterAll(async () => {
await closePages(pages);
await Promise.all(otherPages.map(page => page.close()));
});

it("must check that blur callback is called", async () => {
Expand All @@ -2237,20 +2230,13 @@ describe("Interaction", () => {

describe("Radio button without T value", () => {
let pages;
let otherPages;

beforeAll(async () => {
otherPages = await Promise.all(
global.integrationSessions.map(async session =>
session.browser.newPage()
)
);
pages = await loadAndWait("bug1860602.pdf", getSelector("22R"));
});

afterAll(async () => {
await closePages(pages);
await Promise.all(otherPages.map(page => page.close()));
});

it("must check that only one radio is selected", async () => {
Expand Down Expand Up @@ -2301,20 +2287,13 @@ describe("Interaction", () => {

describe("Textfield with a number and some decimals", () => {
let pages;
let otherPages;

beforeAll(async () => {
otherPages = await Promise.all(
global.integrationSessions.map(async session =>
session.browser.newPage()
)
);
pages = await loadAndWait("issue17540.pdf", getSelector("15R"));
});

afterAll(async () => {
await closePages(pages);
await Promise.all(otherPages.map(page => page.close()));
});

it("must check the number has the correct number of decimals", async () => {
Expand All @@ -2341,20 +2320,13 @@ describe("Interaction", () => {

describe("Textfield with a zip code starting with 0", () => {
let pages;
let otherPages;

beforeAll(async () => {
otherPages = await Promise.all(
global.integrationSessions.map(async session =>
session.browser.newPage()
)
);
pages = await loadAndWait("bug1889122.pdf", getSelector("24R"));
});

afterAll(async () => {
await closePages(pages);
await Promise.all(otherPages.map(page => page.close()));
});

it("must check the zip code is correctly formatted", async () => {
Expand All @@ -2376,20 +2348,13 @@ describe("Interaction", () => {

describe("Value of event.change when a choice list is modified", () => {
let pages;
let otherPages;

beforeAll(async () => {
otherPages = await Promise.all(
global.integrationSessions.map(async session =>
session.browser.newPage()
)
);
pages = await loadAndWait("issue17998.pdf", getSelector("7R"));
});

afterAll(async () => {
await closePages(pages);
await Promise.all(otherPages.map(page => page.close()));
});

it("must check the properties of the event", async () => {
Expand Down Expand Up @@ -2417,20 +2382,13 @@ describe("Interaction", () => {

describe("PageOpen and PageClose actions in fields", () => {
let pages;
let otherPages;

beforeAll(async () => {
otherPages = await Promise.all(
global.integrationSessions.map(async session =>
session.browser.newPage()
)
);
pages = await loadAndWait("issue18305.pdf", getSelector("7R"));
});

afterAll(async () => {
await closePages(pages);
await Promise.all(otherPages.map(page => page.close()));
});

it("must check that PageOpen/PageClose actions are correctly executed", async () => {
Expand Down Expand Up @@ -2469,20 +2427,13 @@ describe("Interaction", () => {

describe("Compute product of different fields", () => {
let pages;
let otherPages;

beforeAll(async () => {
otherPages = await Promise.all(
global.integrationSessions.map(async session =>
session.browser.newPage()
)
);
pages = await loadAndWait("issue18536.pdf", getSelector("34R"));
});

afterAll(async () => {
await closePages(pages);
await Promise.all(otherPages.map(page => page.close()));
});

it("must check that the product are null", async () => {
Expand Down

0 comments on commit af012c7

Please sign in to comment.