From 28ce058f9cd7486769309f0b8a56715a9744e151 Mon Sep 17 00:00:00 2001 From: Chi-Hsuan Huang Date: Wed, 13 Nov 2024 15:12:14 +0800 Subject: [PATCH] CI: fix PHP and Core API tests (#52761) * Update test environment setup to install twentytwentytwo theme * Add changefile(s) from automation for the following project(s): woocommerce * Add targetHints to Data API tests for allowed methods * Fix tests * Fix tests * Fix tests --------- Co-authored-by: github-actions --- .../woocommerce/changelog/52761-fix-ci-jobs | 4 + .../tests/e2e-pw/bin/test-env-setup.sh | 3 +- .../tests/api-tests/data/data-crud.test.js | 164 ++++++++++++++++++ 3 files changed, 170 insertions(+), 1 deletion(-) create mode 100644 plugins/woocommerce/changelog/52761-fix-ci-jobs diff --git a/plugins/woocommerce/changelog/52761-fix-ci-jobs b/plugins/woocommerce/changelog/52761-fix-ci-jobs new file mode 100644 index 00000000000..1588001486d --- /dev/null +++ b/plugins/woocommerce/changelog/52761-fix-ci-jobs @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Fix PHP and Core API tests \ No newline at end of file diff --git a/plugins/woocommerce/tests/e2e-pw/bin/test-env-setup.sh b/plugins/woocommerce/tests/e2e-pw/bin/test-env-setup.sh index ec42b7fd684..5fb431f0197 100755 --- a/plugins/woocommerce/tests/e2e-pw/bin/test-env-setup.sh +++ b/plugins/woocommerce/tests/e2e-pw/bin/test-env-setup.sh @@ -3,8 +3,9 @@ echo -e 'Activate default theme \n' wp-env run tests-cli wp theme activate twentytwentythree -echo -e 'Install twentytwenty and storefront themes \n' +echo -e 'Install twentytwenty, twentytwentytwo and storefront themes \n' wp-env run tests-cli wp theme install twentytwenty +wp-env run tests-cli wp theme install twentytwentytwo wp-env run tests-cli wp theme install storefront echo -e 'Update URL structure \n' diff --git a/plugins/woocommerce/tests/e2e-pw/tests/api-tests/data/data-crud.test.js b/plugins/woocommerce/tests/e2e-pw/tests/api-tests/data/data-crud.test.js index 174cd80b1c7..9b795a0c136 100644 --- a/plugins/woocommerce/tests/e2e-pw/tests/api-tests/data/data-crud.test.js +++ b/plugins/woocommerce/tests/e2e-pw/tests/api-tests/data/data-crud.test.js @@ -3979,6 +3979,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( `/wp-json/wc/v3/data/countries/${ country }` ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4014,6 +4015,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/AED' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4039,6 +4041,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/AFN' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4064,6 +4067,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/ALL' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4089,6 +4093,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/AMD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4114,6 +4119,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/ANG' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4139,6 +4145,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/AOA' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4164,6 +4171,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/ARS' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4189,6 +4197,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/AUD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4214,6 +4223,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/AWG' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4239,6 +4249,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/AZN' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4264,6 +4275,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BAM' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4289,6 +4301,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BBD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4314,6 +4327,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BDT' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4339,6 +4353,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BGN' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4364,6 +4379,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BHD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4389,6 +4405,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BIF' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4414,6 +4431,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BMD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4439,6 +4457,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BND' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4464,6 +4483,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BOB' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4489,6 +4509,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BRL' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4514,6 +4535,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BSD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4539,6 +4561,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BTC' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4564,6 +4587,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BTN' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4589,6 +4613,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BWP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4614,6 +4639,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BYR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4639,6 +4665,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BYN' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4664,6 +4691,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/BZD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4689,6 +4717,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/CAD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4714,6 +4743,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/CDF' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4739,6 +4769,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/CHF' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4764,6 +4795,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/CLP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4789,6 +4821,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/CNY' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4814,6 +4847,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/COP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4839,6 +4873,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/CRC' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4864,6 +4899,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/CUC' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4889,6 +4925,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/CUP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4914,6 +4951,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/CVE' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4939,6 +4977,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/CZK' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4964,6 +5003,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/DJF' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -4989,6 +5029,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/DKK' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5014,6 +5055,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/DOP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5039,6 +5081,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/DZD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5064,6 +5107,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/EGP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5089,6 +5133,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/ERN' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5114,6 +5159,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/ETB' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5139,6 +5185,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/EUR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5164,6 +5211,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/FJD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5189,6 +5237,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/FKP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5214,6 +5263,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/GBP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5239,6 +5289,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/GEL' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5264,6 +5315,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/GGP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5289,6 +5341,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/GHS' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5314,6 +5367,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/GIP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5339,6 +5393,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/GMD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5364,6 +5419,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/GNF' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5389,6 +5445,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/GTQ' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5414,6 +5471,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/GYD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5439,6 +5497,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/HKD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5464,6 +5523,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/HNL' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5489,6 +5549,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/HRK' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5514,6 +5575,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/HTG' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5539,6 +5601,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/HUF' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5564,6 +5627,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/IDR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5589,6 +5653,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/ILS' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5614,6 +5679,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/IMP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5639,6 +5705,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/INR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5664,6 +5731,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/IQD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5689,6 +5757,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/IRR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5714,6 +5783,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/IRT' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5739,6 +5809,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/ISK' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5764,6 +5835,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/JEP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5789,6 +5861,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/JMD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5814,6 +5887,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/JOD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5839,6 +5913,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/JPY' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5864,6 +5939,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/KES' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5889,6 +5965,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/KGS' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5914,6 +5991,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/KHR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5939,6 +6017,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/KMF' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5964,6 +6043,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/KPW' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -5989,6 +6069,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/KRW' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6014,6 +6095,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/KWD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6039,6 +6121,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/KYD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6064,6 +6147,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/KZT' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6089,6 +6173,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/LAK' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6114,6 +6199,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/LBP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6139,6 +6225,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/LKR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6164,6 +6251,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/LRD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6189,6 +6277,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/LSL' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6215,6 +6304,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/LYD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6240,6 +6330,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MAD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6265,6 +6356,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MDL' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6290,6 +6382,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MGA' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6315,6 +6408,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MKD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6340,6 +6434,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MMK' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6365,6 +6460,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MNT' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6390,6 +6486,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MOP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6415,6 +6512,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MRU' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6440,6 +6538,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MUR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6465,6 +6564,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MVR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6490,6 +6590,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MWK' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6515,6 +6616,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MXN' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6540,6 +6642,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MYR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6565,6 +6668,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/MZN' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6590,6 +6694,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/NAD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6615,6 +6720,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/NGN' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6640,6 +6746,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/NIO' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6665,6 +6772,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/NOK' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6690,6 +6798,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/NPR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6715,6 +6824,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/NZD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6740,6 +6850,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/OMR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6765,6 +6876,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/PAB' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6790,6 +6902,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/PEN' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6815,6 +6928,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/PGK' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6840,6 +6954,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/PHP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6865,6 +6980,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/PKR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6890,6 +7006,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/PLN' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6915,6 +7032,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/PRB' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6940,6 +7058,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/PYG' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6965,6 +7084,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/QAR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -6990,6 +7110,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/RON' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7015,6 +7136,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/RSD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7040,6 +7162,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/RUB' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7065,6 +7188,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/RWF' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7090,6 +7214,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/SAR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7115,6 +7240,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/SBD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7140,6 +7266,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/SCR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7165,6 +7292,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/SDG' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7190,6 +7318,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/SEK' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7215,6 +7344,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/SGD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7240,6 +7370,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/SHP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7265,6 +7396,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/SLL' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7290,6 +7422,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/SOS' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7315,6 +7448,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/SRD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7340,6 +7474,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/SSP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7365,6 +7500,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/STN' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7390,6 +7526,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/SYP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7415,6 +7552,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/SZL' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7440,6 +7578,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/THB' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7465,6 +7604,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/TJS' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7490,6 +7630,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/TMT' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7515,6 +7656,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/TND' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7540,6 +7682,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/TOP' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7565,6 +7708,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/TRY' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7590,6 +7734,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/TTD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7615,6 +7760,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/TWD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7640,6 +7786,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/TZS' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7665,6 +7812,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/UAH' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7690,6 +7838,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/UGX' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7715,6 +7864,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/USD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7740,6 +7890,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/UYU' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7765,6 +7916,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/UZS' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7790,6 +7942,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/VEF' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7815,6 +7968,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/VES' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7840,6 +7994,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/VND' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7865,6 +8020,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/VUV' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7890,6 +8046,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/WST' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7915,6 +8072,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/XAF' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7940,6 +8098,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/XCD' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7965,6 +8124,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/XOF' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -7990,6 +8150,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/XPF' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -8015,6 +8176,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/YER' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -8040,6 +8202,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/ZAR' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [ @@ -8065,6 +8228,7 @@ test.describe( 'Data API tests', () => { href: expect.stringContaining( 'data/currencies/ZMW' ), + targetHints: { allow: [ 'GET' ] }, }, ], collection: [