diff --git a/e2e/cy/reconcile b/e2e/cy/reconcile index 71c939a79..fba5941da 100755 --- a/e2e/cy/reconcile +++ b/e2e/cy/reconcile @@ -2,10 +2,23 @@ set -e +port=${2:-8080} + root="$(git rev-parse --show-toplevel)" . "$root/scripts/cd-and-back.sh" cd "$root/e2e" echo "Reconciling the test snapshots..." echo > snapshots.js -./cy-test + +test () { + 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" +} + +for app in demo repro rails calendar +do + port=$((port+1)) + test +done diff --git a/e2e/snapshots.js b/e2e/snapshots.js index 6a45bd52b..5818454f8 100644 --- a/e2e/snapshots.js +++ b/e2e/snapshots.js @@ -313,5 +313,236 @@ module.exports = { "6": "Displaying items 981-1000 of 1000 in total" } }, - "__version": "13.12.0" + "__version": "13.12.0", + "[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
", + "4": "", + "5": "@records:\n 41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60
", + "6": "", + "7": "@records:\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
", + "8": "", + "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": "" + }, + "[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
", + "4": "", + "5": "@records:\n 41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60
", + "6": "", + "7": "@records:\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
", + "8": "", + "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": "" + }, + "[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
", + "4": "", + "5": "@records:\n 41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60
", + "6": "", + "7": "@records:\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
", + "8": "", + "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": "", + "11": "@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
", + "12": "", + "13": "@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40
", + "14": "", + "15": "@records:\n 41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60
", + "16": "", + "17": "@records:\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
", + "18": "", + "19": "@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n
", + "20": "", + "21": "@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
", + "22": "", + "23": "@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40
", + "24": "", + "25": "@records:\n 41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60
", + "26": "", + "27": "@records:\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
", + "28": "", + "29": "@records:\n 961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980\n
", + "30": "", + "31": "@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
", + "32": "", + "33": "@records:\n 21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40
", + "34": "", + "35": "@records:\n 41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60
", + "36": "", + "37": "@records:\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
", + "38": "", + "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": "" + }, + "[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
", + "4": "", + "5": "@records:\n 41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60
", + "6": "", + "7": "@records:\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
", + "8": "", + "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": "", + "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": "" + }, + "[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
", + "4": "Displaying items 701-720 of 1000 in total", + "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" + }, + "[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
", + "4": "", + "5": "@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17
", + "6": "", + "7": "@records: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18
", + "8": "", + "9": "@records:\n 701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720\n
", + "10": "", + "11": "@records: 701,702,703,704,705,706,707,708,709,710
", + "12": "", + "13": "@records:\n 698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714
", + "14": "", + "15": "@records:\n 685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702
", + "16": "", + "17": "@records:\n 981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000\n
", + "18": "", + "19": "@records: 981,982,983,984,985,986,987,988,989,990
", + "20": "", + "21": "@records:\n 970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986
", + "22": "", + "23": "@records:\n 955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972
", + "24": "" + } + }, + "[rails] Test helpers": { + "[rails] Test #nav": { + "1": "Comment 1 to Post 1
\nComment 2 to Post 1
\nComment 1 to Post 2
\nComment 2 to Post 2
\nComment 1 to Post 3
\nComment 2 to Post 3
\nComment 1 to Post 4
\nComment 2 to Post 4
\nComment 1 to Post 5
\nComment 2 to Post 5
\nComment 1 to Post 6
\nComment 2 to Post 6
\nComment 1 to Post 7
\nComment 2 to Post 7
\nComment 1 to Post 8
\nComment 2 to Post 8
\nComment 1 to Post 9
\nComment 2 to Post 9
\nComment 1 to Post 10
\nComment 2 to Post 10
\nComment 1 to Post 11
\nComment 2 to Post 11
\nComment 1 to Post 6
\nComment 2 to Post 6
\nComment 1 to Post 7
\nComment 2 to Post 7
\nComment 1 to Post 8
\nComment 2 to Post 8
\nComment 1 to Post 9
\nComment 2 to Post 9
\nComment 1 to Post 10
\nComment 2 to Post 10
\nComment 1 to Post 1
\nComment 2 to Post 1
\nComment 1 to Post 2
\nComment 2 to Post 2
\nComment 1 to Post 3
\nComment 2 to Post 3
\nComment 1 to Post 4
\nComment 2 to Post 4
\nComment 1 to Post 5
\nComment 2 to Post 5
\nComment 1 to Post 6
\nComment 2 to Post 6
\nComment 1 to Post 7
\nComment 2 to Post 7
\nComment 1 to Post 8
\nComment 2 to Post 8
\nComment 1 to Post 9
\nComment 2 to Post 9
\nComment 1 to Post 10
\nComment 2 to Post 10
\nComment 1 to Post 11
\nComment 2 to Post 11
\nComment 1 to Post 6
\nComment 2 to Post 6
\nComment 1 to Post 7
\nComment 2 to Post 7
\nComment 1 to Post 8
\nComment 2 to Post 8
\nComment 1 to Post 9
\nComment 2 to Post 9
\nComment 1 to Post 10
\nComment 2 to Post 10
\nComment 1 to Post 1
\nComment 2 to Post 1
\nComment 1 to Post 2
\nComment 2 to Post 2
\nComment 1 to Post 3
\nComment 2 to Post 3
\nComment 1 to Post 4
\nComment 2 to Post 4
\nComment 1 to Post 5
\nComment 2 to Post 5
\nComment 1 to Post 6
\nComment 2 to Post 6
\nComment 1 to Post 7
\nComment 2 to Post 7
\nComment 1 to Post 8
\nComment 2 to Post 8
\nComment 1 to Post 9
\nComment 2 to Post 9
\nComment 1 to Post 10
\nComment 2 to Post 10
\nComment 1 to Post 11
\nComment 2 to Post 11
\nComment 1 to Post 11
\nComment 2 to Post 11
\nComment 1 to Post 6
\nComment 2 to Post 6
\nComment 1 to Post 7
\nComment 2 to Post 7
\nComment 1 to Post 8
\nComment 2 to Post 8
\nComment 1 to Post 9
\nComment 2 to Post 9
\nComment 1 to Post 10
\nComment 2 to Post 10
\nComment 1 to Post 1
\nComment 2 to Post 1
\nComment 1 to Post 2
\nComment 2 to Post 2
\nComment 1 to Post 3
\nComment 2 to Post 3
\nComment 1 to Post 4
\nComment 2 to Post 4
\nComment 1 to Post 5
\nComment 2 to Post 5
\nComment 1 to Post 1
\nComment 2 to Post 1
\nComment 1 to Post 2
\nComment 2 to Post 2
\nComment 1 to Post 3
\nComment 2 to Post 3
\nComment 1 to Post 4
\nComment 2 to Post 4
\nComment 1 to Post 5
\nComment 2 to Post 5
\nComment 1 to Post 1
\nComment 2 to Post 1
\nComment 1 to Post 2
\nComment 2 to Post 2
\nComment 1 to Post 3
\nComment 2 to Post 3
\nComment 1 to Post 4
\nComment 2 to Post 4
\nComment 1 to Post 5
\nComment 2 to Post 5
\nComment 1 to Post 1
\nComment 2 to Post 1
\nComment 1 to Post 2
\nComment 2 to Post 2
\nComment 1 to Post 3
\nComment 2 to Post 3
\nComment 1 to Post 4
\nComment 2 to Post 4
\nComment 1 to Post 5
\nComment 2 to Post 5
\nComment 1 to Post 1
\nComment 2 to Post 1
\nComment 1 to Post 2
\nComment 2 to Post 2
\nComment 1 to Post 3
\nComment 2 to Post 3
\nComment 1 to Post 4
\nComment 2 to Post 4
\nComment 1 to Post 5
\nComment 2 to Post 5
\nComment 1 to Post 6
\nComment 1 to Post 1
\nComment 2 to Post 1
\nComment 1 to Post 2
\nComment 2 to Post 2
\nComment 1 to Post 3
\nComment 2 to Post 3
\nComment 1 to Post 4
\nComment 2 to Post 4
\nComment 1 to Post 5
\nComment 2 to Post 5
\nComment 1 to Post 6
\nComment 1 to Post 1
\nComment 2 to Post 1
\nComment 1 to Post 2
\nComment 2 to Post 2
\nComment 1 to Post 3
\nComment 2 to Post 3
\nComment 1 to Post 4
\nComment 2 to Post 4
\nComment 1 to Post 5
\nComment 2 to Post 5
\nComment 1 to Post 6
\nComment 1 to Post 1
\nComment 2 to Post 1
\nComment 1 to Post 2
\nComment 2 to Post 2
\nComment 1 to Post 3
\nComment 2 to Post 3
\nComment 1 to Post 4
\nComment 2 to Post 4
\nComment 1 to Post 5
\nComment 2 to Post 5
\nEvent #1 - 2021-10-21 13:18:23 UTC
\nEvent #2 - 2021-10-21 23:14:50 UTC
\nEvent #1 - 2021-10-21 13:18:23 UTC
\nEvent #2 - 2021-10-21 23:14:50 UTC
\nEvent #3 - 2021-10-23 01:06:02 UTC
\nEvent #4 - 2021-10-25 18:54:35 UTC
\nEvent #5 - 2021-10-26 02:22:17 UTC
\nEvent #6 - 2021-10-28 22:59:49 UTC
\nEvent #7 - 2021-10-30 15:02:25 UTC
\nEvent #8 - 2021-11-02 04:03:39 UTC
\nEvent #9 - 2021-11-04 22:41:23 UTC
\nEvent #10 - 2021-11-06 00:34:29 UTC
\nEvent #11 - 2021-11-06 23:56:16 UTC
\nEvent #12 - 2021-11-07 06:22:04 UTC
\nEvent #13 - 2021-11-07 19:46:08 UTC
\nEvent #14 - 2021-11-08 09:31:13 UTC
\nEvent #15 - 2021-11-09 17:22:03 UTC
\nEvent #16 - 2021-11-11 05:29:54 UTC
\nEvent #17 - 2021-11-13 09:41:04 UTC
\nEvent #18 - 2021-11-16 07:48:22 UTC
\nEvent #19 - 2021-11-16 12:43:44 UTC
\nEvent #20 - 2021-11-17 16:03:07 UTC
\nEvent #1 - 2021-10-21 13:18:23 UTC
\nEvent #2 - 2021-10-21 23:14:50 UTC
\nEvent #86 - 2022-03-02 23:35:41 UTC
\nEvent #51 - 2022-01-01 19:18:06 UTC
\nEvent #106 - 2022-04-01 15:35:47 UTC
\nEvent #110 - 2022-04-06 10:59:32 UTC
\nEvent #111 - 2022-04-07 01:33:53 UTC
\n