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": "
\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
", + "4": "", + "5": "
\n

Comment 1 to Post 11

\n

Comment 2 to Post 11

\n
", + "6": "", + "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": "" + }, + "[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
", + "4": "", + "5": "
\n

Comment 1 to Post 11

\n

Comment 2 to Post 11

\n
", + "6": "", + "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": "" + }, + "[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
", + "4": "", + "5": "
\n

Comment 1 to Post 11

\n

Comment 2 to Post 11

\n
", + "6": "", + "7": "
\n

Comment 1 to Post 11

\n

Comment 2 to Post 11

\n
", + "8": "", + "9": "
\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
", + "10": "", + "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": "" + }, + "[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
", + "4": "", + "5": "
\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
", + "6": "", + "7": "
\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
", + "8": "", + "9": "
\n
", + "10": "", + "11": "
\n
", + "12": "", + "13": "
\n
", + "14": "", + "15": "
\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
", + "16": "", + "17": "
\n
", + "18": "", + "19": "
\n
", + "20": "", + "21": "
\n
", + "22": "", + "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": "" + }, + "[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
", + "4": "Displaying items 0-0 of 22 in total", + "5": "
\n
", + "6": "Displaying items 0-0 of 22 in total" + } + }, + "[calendar] Test helpers": { + "[calendar] Test #toggle": { + "1": "
\n

Event #1 - 2021-10-21 13:18:23 UTC

\n

Event #2 - 2021-10-21 23:14:50 UTC

\n
", + "2": "", + "3": "", + "4": "", + "5": "Displaying 2 items", + "6": "
\n

Event #1 - 2021-10-21 13:18:23 UTC

\n

Event #2 - 2021-10-21 23:14:50 UTC

\n

Event #3 - 2021-10-23 01:06:02 UTC

\n

Event #4 - 2021-10-25 18:54:35 UTC

\n

Event #5 - 2021-10-26 02:22:17 UTC

\n

Event #6 - 2021-10-28 22:59:49 UTC

\n

Event #7 - 2021-10-30 15:02:25 UTC

\n

Event #8 - 2021-11-02 04:03:39 UTC

\n

Event #9 - 2021-11-04 22:41:23 UTC

\n

Event #10 - 2021-11-06 00:34:29 UTC

\n

Event #11 - 2021-11-06 23:56:16 UTC

\n

Event #12 - 2021-11-07 06:22:04 UTC

\n

Event #13 - 2021-11-07 19:46:08 UTC

\n

Event #14 - 2021-11-08 09:31:13 UTC

\n

Event #15 - 2021-11-09 17:22:03 UTC

\n

Event #16 - 2021-11-11 05:29:54 UTC

\n

Event #17 - 2021-11-13 09:41:04 UTC

\n

Event #18 - 2021-11-16 07:48:22 UTC

\n

Event #19 - 2021-11-16 12:43:44 UTC

\n

Event #20 - 2021-11-17 16:03:07 UTC

\n
", + "7": "", + "8": "
\n

Event #1 - 2021-10-21 13:18:23 UTC

\n

Event #2 - 2021-10-21 23:14:50 UTC

\n
", + "9": "", + "10": "", + "11": "", + "12": "Displaying 2 items" + }, + "[calendar] Test #go-to-day": { + "1": "
\n

Event #86 - 2022-03-02 23:35:41 UTC

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

Event #51 - 2022-01-01 19:18:06 UTC

\n
", + "2": "", + "3": "", + "4": "", + "5": "Displaying 1 item", + "6": "
\n

Event #106 - 2022-04-01 15:35:47 UTC

\n
", + "7": "", + "8": "", + "9": "", + "10": "Displaying 1 item", + "11": "
\n
", + "12": "", + "13": "", + "14": "", + "15": "No items found", + "16": "
\n

Event #110 - 2022-04-06 10:59:32 UTC

\n

Event #111 - 2022-04-07 01:33:53 UTC

\n
", + "17": "", + "18": "", + "19": "", + "20": "Displaying 2 items" + } + } }