diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 6f3f33865..203bf903a 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -76,3 +76,4 @@ jobs: wait-on: http://0.0.0.0:8080 wait-on-timeout: 120 spec: cypress/e2e/${{ matrix.app }}.cy.ts + quiet: true diff --git a/e2e/README.md b/e2e/README.md index 12b51d46b..42cd909cd 100644 --- a/e2e/README.md +++ b/e2e/README.md @@ -17,13 +17,20 @@ enabled ASAP. Run `npm -i` or (`pnpm -i` if `pnpm` is installed). +### Run the test for all the apps + You can run all the e2e tests in parallel with: ```shell /e2e $ ./test-e2e ``` -Notice the exit status and the last message in order to check if and which test failed, and search the details in the output. +Notice: + +- The output of the parallel processes get mixed in the same log stream, however the test summaries are prefixed with the app name. +- The script will return a non-zero status if any of the test fail, and will print a brief feedback. + +### Run the test for a single app You can limit the e2e test to a specific APP: @@ -31,11 +38,16 @@ You can limit the e2e test to a specific APP: /e2e $ ./test-e2e repro ``` -You can also run the e2e test interactively (on one APP/file at the time) opening cypress UI: +### Run the test interactively + +You can also run the e2e test interactively (only one APP/file at the time) opening cypress UI: ```shell /e2e $ ./open-e2e demo ``` + +Notice: You can only run the spec file for the app that is running (e.g. `demo.cy.ts` in the example above) + --- See also [Ruby Test Environment](https://github.com/ddnexus/pagy/tree/master/test) diff --git a/e2e/cypress/e2e/calendar.cy.ts b/e2e/cypress/e2e/calendar.cy.ts index df04013dd..5bab9e4c9 100644 --- a/e2e/cypress/e2e/calendar.cy.ts +++ b/e2e/cypress/e2e/calendar.cy.ts @@ -1,14 +1,14 @@ import {snapIds} from "../support/test-helper.ts"; - +const app = "calendar"; const calIds = ["#year-nav", "#month-nav", "#day-nav", "#pagy-info"]; -describe(`Test helpers [calendar]`, () => { +describe(`[${app}] Test helpers`, () => { beforeEach(() => { cy.visit("/"); }); - it("Test #toggle", () => { + it(`[${app}] Test #toggle`, () => { snapIds(calIds); cy.get("#toggle").click(); snapIds(["#pages-nav"]); @@ -16,12 +16,12 @@ describe(`Test helpers [calendar]`, () => { snapIds(calIds); }); - it("Test #go-to-day", () => { + it(`[${app}] Test #go-to-day`, () => { cy.get("#go-to-day").click(); snapIds(calIds); }); - it("Test calendar navs", () => { + it(`[${app}] Test calendar navs`, () => { cy.get("#year-nav").contains("2022").click(); snapIds(calIds); cy.get("#month-nav").contains("Apr").click(); diff --git a/e2e/cypress/e2e/demo.cy.ts b/e2e/cypress/e2e/demo.cy.ts index ad856d55e..84802691f 100644 --- a/e2e/cypress/e2e/demo.cy.ts +++ b/e2e/cypress/e2e/demo.cy.ts @@ -1,5 +1,6 @@ import {testNav, testComboNav, testInfo, testItemsSelector} from "../support/test-helper.ts"; +const app = "demo"; const paths = [ "/pagy", "/bootstrap", @@ -7,18 +8,18 @@ const paths = [ ]; for (const path of paths) { - describe(`Test ${path} helpers [demo]`, () => { + describe(`[${app}] Test ${path} helpers`, () => { beforeEach(() => { cy.visit(path); }); - testNav("#nav", {path: path}); - testNav("#nav-js", {path: path}); - testNav("#nav-js-responsive", {path: path, rjs: true}); - testComboNav("#combo-nav-js"); - testInfo("#pagy-info", path); + testNav(app, "#nav", {path: path}); + testNav(app, "#nav-js", {path: path}); + testNav(app, "#nav-js-responsive", {path: path, rjs: true}); + testComboNav(app, "#combo-nav-js"); + testInfo(app, "#pagy-info", path); if (path === "/pagy") { - testItemsSelector("#items-selector-js", path, true); // trim true + testItemsSelector(app, "#items-selector-js", path, true); // trim true } }); } diff --git a/e2e/cypress/e2e/rails.cy.ts b/e2e/cypress/e2e/rails.cy.ts index aa36f2570..eba5b2182 100644 --- a/e2e/cypress/e2e/rails.cy.ts +++ b/e2e/cypress/e2e/rails.cy.ts @@ -1,14 +1,15 @@ import {testNav, testComboNav, testInfo, testItemsSelector} from "../support/test-helper.ts"; +const app = "rails"; -describe(`Test helpers [rails]`, () => { +describe(`[rails] Test helpers`, () => { beforeEach(() => { cy.visit("/"); }); - testNav("#nav", {pages: ["3"]}); - testNav("#nav-js", {pages: ["3"]}); - testComboNav("#combo-nav-js"); - testItemsSelector("#items-selector-js"); // no style, no trim - testInfo("#pagy-info"); + testNav(app, "#nav", {pages: ["3"]}); + testNav(app, "#nav-js", {pages: ["3"]}); + testComboNav(app, "#combo-nav-js"); + testItemsSelector(app, "#items-selector-js"); // no style, no trim + testInfo(app, "#pagy-info"); }); diff --git a/e2e/cypress/e2e/repro.cy.ts b/e2e/cypress/e2e/repro.cy.ts index 70dde4722..1a3cc987e 100644 --- a/e2e/cypress/e2e/repro.cy.ts +++ b/e2e/cypress/e2e/repro.cy.ts @@ -1,15 +1,15 @@ import {testNav, testComboNav, testInfo, testItemsSelector} from "../support/test-helper.ts"; - -describe(`Test helpers [repro]`, () => { +const app = "repro"; +describe(`[${app}] Test helpers`, () => { beforeEach(() => { cy.visit("/"); }); - testNav("#nav", {}); - testNav("#nav-js", {}); - testNav("#nav-js-responsive", {rjs: true}); - testComboNav("#combo-nav-js"); - testInfo("#pagy-info"); - testItemsSelector("#items-selector-js"); // no style, no trim + testNav(app, "#nav", {}); + testNav(app, "#nav-js", {}); + testNav(app, "#nav-js-responsive", {rjs: true}); + testComboNav(app, "#combo-nav-js"); + testInfo(app, "#pagy-info"); + testItemsSelector(app, "#items-selector-js"); // no style, no trim }); diff --git a/e2e/cypress/support/test-helper.ts b/e2e/cypress/support/test-helper.ts index ca9c41868..d64b38046 100644 --- a/e2e/cypress/support/test-helper.ts +++ b/e2e/cypress/support/test-helper.ts @@ -11,8 +11,8 @@ interface TestNavOpts { rjs?:boolean } -export function testNav(id:string, {path = "/", pages = ["3", "50"], rjs = false}:TestNavOpts) { - it(`Test ${id}`, () => { +export function testNav(app:string, id:string, {path = "/", pages = ["3", "50"], rjs = false}:TestNavOpts) { + it(`[${app}] Test ${id}`, () => { if (rjs) { const widths = [450, 700, 950, 1050]; for (const width of widths) { @@ -36,9 +36,9 @@ function checkNav(id:string, pages:string[]) { goCheckPrev(id); } -export function testComboNav(id:string) { +export function testComboNav(app:string, id:string) { const id_input = `${id} input`; - it(`Test ${id}`, () => { + it(`[${app}] Test ${id}`, () => { snapIds([id]); goCheckNext(id); const page = "3"; @@ -61,9 +61,9 @@ export function testComboNav(id:string) { }); } -export function testItemsSelector(id:string, path = "/", trim = false) { - it(`Test ${id}`, () => { - const pages = [1, 36, 50]; +export function testItemsSelector(app:string, id:string, path = "/", trim = false) { + it(`[${app}] Test ${id}`, () => { + const pages = [1, 36, 50]; const id_input = `${id} input`; for (const page of pages) { cy.visit(`${path}?page=${page}`); @@ -106,8 +106,8 @@ export function testItemsSelector(id:string, path = "/", trim = false) { }); } -export function testInfo(id:string, path = "/") { - it(`Test ${id}`, () => { +export function testInfo(app:string, id:string, path = "/") { + it(`[${app}] Test ${id}`, () => { const pages = [1, 36, 50]; for (const page of pages) { cy.visit(`${path}?page=${page}`); diff --git a/e2e/snapshots.js b/e2e/snapshots.js index 198a0f8ad..1ed2eeaf3 100644 --- a/e2e/snapshots.js +++ b/e2e/snapshots.js @@ -1,6 +1,6 @@ module.exports = { - "Test /pagy helpers [demo]": { - "Test #nav": { + "[demo] Test /pagy helpers": { + "[demo] Test #nav": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -12,7 +12,7 @@ module.exports = { "9": "

@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n

", "10": "" }, - "Test #nav-js": { + "[demo] Test #nav-js": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -24,7 +24,7 @@ module.exports = { "9": "

@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n

", "10": "" }, - "Test #nav-js-responsive": { + "[demo] Test #nav-js-responsive": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -66,7 +66,7 @@ module.exports = { "39": "

@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n

", "40": "" }, - "Test #combo-nav-js": { + "[demo] Test #combo-nav-js": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -80,7 +80,7 @@ module.exports = { "11": "

@records:\n 941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960\n

", "12": "" }, - "Test #pagy-info": { + "[demo] Test #pagy-info": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "Displaying items 1-20 of 1000 in total", "3": "

@records:\n 701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720\n

", @@ -88,7 +88,7 @@ module.exports = { "5": "

@records:\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n

", "6": "Displaying items 981-1000 of 1000 in total" }, - "Test #items-selector-js": { + "[demo] Test #items-selector-js": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records: 1,2,3,4,5,6,7,8,9,10

", @@ -133,8 +133,8 @@ module.exports = { "42": "" } }, - "Test /bootstrap helpers [demo]": { - "Test #nav": { + "[demo] Test /bootstrap helpers": { + "[demo] Test #nav": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -146,7 +146,7 @@ module.exports = { "9": "

@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n

", "10": "" }, - "Test #nav-js": { + "[demo] Test #nav-js": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -158,7 +158,7 @@ module.exports = { "9": "

@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n

", "10": "" }, - "Test #nav-js-responsive": { + "[demo] Test #nav-js-responsive": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -200,7 +200,7 @@ module.exports = { "39": "

@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n

", "40": "" }, - "Test #combo-nav-js": { + "[demo] Test #combo-nav-js": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -214,7 +214,7 @@ module.exports = { "11": "

@records:\n 941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960\n

", "12": "" }, - "Test #pagy-info": { + "[demo] Test #pagy-info": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "Displaying items 1-20 of 1000 in total", "3": "

@records:\n 701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720\n

", @@ -223,8 +223,8 @@ module.exports = { "6": "Displaying items 981-1000 of 1000 in total" } }, - "Test /bulma helpers [demo]": { - "Test #nav": { + "[demo] Test /bulma helpers": { + "[demo] Test #nav": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -236,7 +236,7 @@ module.exports = { "9": "

@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n

", "10": "" }, - "Test #nav-js": { + "[demo] Test #nav-js": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -248,7 +248,7 @@ module.exports = { "9": "

@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n

", "10": "" }, - "Test #nav-js-responsive": { + "[demo] Test #nav-js-responsive": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -290,7 +290,7 @@ module.exports = { "39": "

@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n

", "40": "" }, - "Test #combo-nav-js": { + "[demo] Test #combo-nav-js": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -304,7 +304,7 @@ module.exports = { "11": "

@records:\n 941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960\n

", "12": "" }, - "Test #pagy-info": { + "[demo] Test #pagy-info": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "Displaying items 1-20 of 1000 in total", "3": "

@records:\n 701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720\n

", @@ -314,8 +314,8 @@ module.exports = { } }, "__version": "13.8.1", - "Test helpers [repro]": { - "Test #nav": { + "[repro] Test helpers": { + "[repro] Test #nav": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -327,7 +327,7 @@ module.exports = { "9": "

@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n

", "10": "" }, - "Test #nav-js": { + "[repro] Test #nav-js": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -339,7 +339,7 @@ module.exports = { "9": "

@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n

", "10": "" }, - "Test #nav-js-responsive": { + "[repro] Test #nav-js-responsive": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -381,7 +381,7 @@ module.exports = { "39": "

@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n

", "40": "" }, - "Test #combo-nav-js": { + "[repro] Test #combo-nav-js": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40

", @@ -395,7 +395,7 @@ module.exports = { "11": "

@records:\n 941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960\n

", "12": "" }, - "Test #pagy-info": { + "[repro] Test #pagy-info": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "Displaying items 1-20 of 1000 in total", "3": "

@records:\n 701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720\n

", @@ -403,7 +403,7 @@ module.exports = { "5": "

@records:\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n

", "6": "Displaying items 981-1000 of 1000 in total" }, - "Test #items-selector-js": { + "[repro] Test #items-selector-js": { "1": "

@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

", "2": "", "3": "

@records: 1,2,3,4,5,6,7,8,9,10

", @@ -430,8 +430,8 @@ module.exports = { "24": "" } }, - "Test helpers [rails]": { - "Test #nav": { + "[rails] Test helpers": { + "[rails] Test #nav": { "1": "
\n

Comment 1 to Post 1

\n

Comment 2 to Post 1

\n

Comment 1 to Post 2

\n

Comment 2 to Post 2

\n

Comment 1 to Post 3

\n

Comment 2 to Post 3

\n

Comment 1 to Post 4

\n

Comment 2 to Post 4

\n

Comment 1 to Post 5

\n

Comment 2 to Post 5

\n
", "2": "", "3": "
\n

Comment 1 to Post 6

\n

Comment 2 to Post 6

\n

Comment 1 to Post 7

\n

Comment 2 to Post 7

\n

Comment 1 to Post 8

\n

Comment 2 to Post 8

\n

Comment 1 to Post 9

\n

Comment 2 to Post 9

\n

Comment 1 to Post 10

\n

Comment 2 to Post 10

\n
", @@ -441,7 +441,7 @@ module.exports = { "7": "
\n

Comment 1 to Post 6

\n

Comment 2 to Post 6

\n

Comment 1 to Post 7

\n

Comment 2 to Post 7

\n

Comment 1 to Post 8

\n

Comment 2 to Post 8

\n

Comment 1 to Post 9

\n

Comment 2 to Post 9

\n

Comment 1 to Post 10

\n

Comment 2 to Post 10

\n
", "8": "" }, - "Test #nav-js": { + "[rails] Test #nav-js": { "1": "
\n

Comment 1 to Post 1

\n

Comment 2 to Post 1

\n

Comment 1 to Post 2

\n

Comment 2 to Post 2

\n

Comment 1 to Post 3

\n

Comment 2 to Post 3

\n

Comment 1 to Post 4

\n

Comment 2 to Post 4

\n

Comment 1 to Post 5

\n

Comment 2 to Post 5

\n
", "2": "", "3": "
\n

Comment 1 to Post 6

\n

Comment 2 to Post 6

\n

Comment 1 to Post 7

\n

Comment 2 to Post 7

\n

Comment 1 to Post 8

\n

Comment 2 to Post 8

\n

Comment 1 to Post 9

\n

Comment 2 to Post 9

\n

Comment 1 to Post 10

\n

Comment 2 to Post 10

\n
", @@ -451,7 +451,7 @@ module.exports = { "7": "
\n

Comment 1 to Post 6

\n

Comment 2 to Post 6

\n

Comment 1 to Post 7

\n

Comment 2 to Post 7

\n

Comment 1 to Post 8

\n

Comment 2 to Post 8

\n

Comment 1 to Post 9

\n

Comment 2 to Post 9

\n

Comment 1 to Post 10

\n

Comment 2 to Post 10

\n
", "8": "" }, - "Test #combo-nav-js": { + "[rails] Test #combo-nav-js": { "1": "
\n

Comment 1 to Post 1

\n

Comment 2 to Post 1

\n

Comment 1 to Post 2

\n

Comment 2 to Post 2

\n

Comment 1 to Post 3

\n

Comment 2 to Post 3

\n

Comment 1 to Post 4

\n

Comment 2 to Post 4

\n

Comment 1 to Post 5

\n

Comment 2 to Post 5

\n
", "2": "", "3": "
\n

Comment 1 to Post 6

\n

Comment 2 to Post 6

\n

Comment 1 to Post 7

\n

Comment 2 to Post 7

\n

Comment 1 to Post 8

\n

Comment 2 to Post 8

\n

Comment 1 to Post 9

\n

Comment 2 to Post 9

\n

Comment 1 to Post 10

\n

Comment 2 to Post 10

\n
", @@ -465,7 +465,7 @@ module.exports = { "11": "
\n

Comment 1 to Post 1

\n

Comment 2 to Post 1

\n

Comment 1 to Post 2

\n

Comment 2 to Post 2

\n

Comment 1 to Post 3

\n

Comment 2 to Post 3

\n

Comment 1 to Post 4

\n

Comment 2 to Post 4

\n

Comment 1 to Post 5

\n

Comment 2 to Post 5

\n
", "12": "" }, - "Test #items-selector-js": { + "[rails] Test #items-selector-js": { "1": "
\n

Comment 1 to Post 1

\n

Comment 2 to Post 1

\n

Comment 1 to Post 2

\n

Comment 2 to Post 2

\n

Comment 1 to Post 3

\n

Comment 2 to Post 3

\n

Comment 1 to Post 4

\n

Comment 2 to Post 4

\n

Comment 1 to Post 5

\n

Comment 2 to Post 5

\n
", "2": "", "3": "
\n

Comment 1 to Post 1

\n

Comment 2 to Post 1

\n

Comment 1 to Post 2

\n

Comment 2 to Post 2

\n

Comment 1 to Post 3

\n

Comment 2 to Post 3

\n

Comment 1 to Post 4

\n

Comment 2 to Post 4

\n

Comment 1 to Post 5

\n

Comment 2 to Post 5

\n
", @@ -491,7 +491,7 @@ module.exports = { "23": "
\n

Comment 1 to Post 1

\n

Comment 2 to Post 1

\n

Comment 1 to Post 2

\n

Comment 2 to Post 2

\n

Comment 1 to Post 3

\n

Comment 2 to Post 3

\n

Comment 1 to Post 4

\n

Comment 2 to Post 4

\n

Comment 1 to Post 5

\n

Comment 2 to Post 5

\n

Comment 1 to Post 6

\n
", "24": "" }, - "Test #pagy-info": { + "[rails] Test #pagy-info": { "1": "
\n

Comment 1 to Post 1

\n

Comment 2 to Post 1

\n

Comment 1 to Post 2

\n

Comment 2 to Post 2

\n

Comment 1 to Post 3

\n

Comment 2 to Post 3

\n

Comment 1 to Post 4

\n

Comment 2 to Post 4

\n

Comment 1 to Post 5

\n

Comment 2 to Post 5

\n
", "2": "Displaying items 1-10 of 22 in total", "3": "
\n
", @@ -500,8 +500,8 @@ module.exports = { "6": "Displaying items 0-0 of 22 in total" } }, - "Test helpers [calendar]": { - "Test #toggle": { + "[calendar] Test helpers": { + "[calendar] Test #toggle": { "1": "
\n\n

2021-10-21 08:18:23 -0500

\n\n

2021-10-21 18:14:50 -0500

\n\n
", "2": "", "3": "", @@ -515,14 +515,14 @@ module.exports = { "11": "", "12": "Displaying 2 items" }, - "Test #go-to-day": { + "[calendar] Test #go-to-day": { "1": "
\n\n

2022-03-02 18:35:41 -0500

\n\n
", "2": "", "3": "", "4": "", "5": "Displaying 1 item" }, - "Test calendar navs": { + "[calendar] Test calendar navs": { "1": "
\n\n

2022-01-01 14:18:06 -0500

\n\n
", "2": "", "3": "", diff --git a/e2e/test-e2e b/e2e/test-e2e index 4efdf15a3..10271cafb 100755 --- a/e2e/test-e2e +++ b/e2e/test-e2e @@ -8,7 +8,9 @@ port=${2:-8080} cd -- "$(dirname "$0")" test () { - start-test "bundle exec pagy $app -p $port -q" http://0.0.0.0:$port "cypress run --quiet --config baseUrl=http://0.0.0.0:$port --spec cypress/e2e/$app.cy.ts" + NODE_NO_WARNINGS=1 \ + start-test "bundle exec pagy $app -p $port -q > /dev/null" http://0.0.0.0:$port \ + "cypress run --quiet --config baseUrl=http://0.0.0.0:$port --spec cypress/e2e/$app.cy.ts" } if [[ -z $app ]]