Skip to content

Commit

Permalink
Merge pull request #769 from RockefellerArchiveCenter/development
Browse files Browse the repository at this point in the history
Debugging backstopjs implementation
  • Loading branch information
helrond authored Dec 5, 2024
2 parents df898db + c8a4e55 commit 91f1707
Show file tree
Hide file tree
Showing 26 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backstop.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"label": "Requesting Unavailable Modal",
"url": "http://host.docker.internal:3000/list",
"clickSelector": "#main > div.mylist__export-actions > button:nth-child(1)",
"onBeforeScript": "mock_request.js",
"delay": 1000,
"viewports": [
{
Expand Down Expand Up @@ -92,6 +93,7 @@
"label": "Remove All Items Modal",
"url": "http://host.docker.internal:3000/list",
"clickSelector": "#main > div.mylist__export-actions > button:nth-child(3)",
"onBeforeScript": "mock_request.js",
"delay": 1000,
"viewports": [
{
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions backstop_data/engine_scripts/mock_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ module.exports = async (page, scenario, vp, isReference) => {

await page.setRequestInterception(true);

page.evaluateOnNewDocument((valueToBeStoraged) => {
localStorage.setItem("DIMESMyList", valueToBeStoraged);
}, '["/objects/W9jBzNTBe4TuGzT8FTyoZQ","/objects/CkZSRtr48Es4MkLLNQ6s2y","/objects/GiKd8HrQCVvXsYLd5Lposp"]');

page.on("request", req => {
const fixturePath = createFilepath(scenario.label, req.url(), req.method())
if (req.method() === 'OPTIONS') {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"Rockefeller Foundation records, 1906-2017, 1924-1990; Rockefeller Archive Center; https://dimes.rockarch.org/objects/WY7fpswEV3oLhyjiArpHES"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"Rockefeller Foundation records, 1906-2017, 1924-1990; Rockefeller Archive Center; https://dimes.rockarch.org/objects/WY7fpswEV3oLhyjiArpHES"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"count":18,"next":"https://api.rockarch.org/collections/D2jqmNejBUu9hq9o4eGVoi/children?category=&limit=5&offset=5&query=banana","previous":null,"results":[{"title":"International - General (No Program), Subseries 100.GEN","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/ChqRRrDVPGqYiDftR4WszC","dates":"1913-1958","description":null,"group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":5},{"title":"International - Medical Science, Subseries 100.A","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/TYTtMKf4GvVrszLKuwrvm6","dates":"1913-1958","description":"Material, mostly 1913-1942, relating to projects originated by international organizations or involving more than one country. Included in this designation are organizations directly connected with the Rockefeller Foundation, such as the International Health Division (which was a part of the Foundation governed separately until 1951); organizations indirectly related to the Foundation, such as the Spelman Fund of New York and the China Medical Board, Inc.; and other, independent organizations which received support from the Foundation. Much of the material concerns the work of the International Health Division. There is a large section on the war relief of the Foundation (1914-1918). Additional items of interest are a progress report on nursing education (1928), an anthropological survey (1932-1933), and the files on international studies and international relations.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":149},{"title":"International - Nursing, Subseries 100.C","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/3NzKuBYuE5NVHeMNcuy2Ev","dates":"1913-1958","description":"Material, mostly 1913-1942, relating to projects originated by international organizations or involving more than one country. Included in this designation are organizations directly connected with the Rockefeller Foundation, such as the International Health Division (which was a part of the Foundation governed separately until 1951); organizations indirectly related to the Foundation, such as the Spelman Fund of New York and the China Medical Board, Inc.; and other, independent organizations which received support from the Foundation. Much of the material concerns the work of the International Health Division. There is a large section on the war relief of the Foundation (1914-1918). Additional items of interest are a progress report on nursing education (1928), an anthropological survey (1932-1933), and the files on international studies and international relations.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":154},{"title":"International - Natural Sciences and Agriculture, Subseries 100.D","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/aQFRnjgopYy3ygg7p8Zzsv","dates":"1913-1958","description":"Material, mostly 1913-1942, relating to projects originated by international organizations or involving more than one country. Included in this designation are organizations directly connected with the Rockefeller Foundation, such as the International Health Division (which was a part of the Foundation governed separately until 1951); organizations indirectly related to the Foundation, such as the Spelman Fund of New York and the China Medical Board, Inc.; and other, independent organizations which received support from the Foundation. Much of the material concerns the work of the International Health Division. There is a large section on the war relief of the Foundation (1914-1918). Additional items of interest are a progress report on nursing education (1928), an anthropological survey (1932-1933), and the files on international studies and international relations.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":163},{"title":"International - Public Health Fellowships, Scholarships, Training Awards, Subseries 100.EL","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/FP9Kg8UBDRyUJefsDGAYh7","dates":"1913-1958","description":"Material, mostly 1913-1942, relating to projects originated by international organizations or involving more than one country. Included in this designation are organizations directly connected with the Rockefeller Foundation, such as the International Health Division (which was a part of the Foundation governed separately until 1951); organizations indirectly related to the Foundation, such as the Spelman Fund of New York and the China Medical Board, Inc.; and other, independent organizations which received support from the Foundation. Much of the material concerns the work of the International Health Division. There is a large section on the war relief of the Foundation (1914-1918). Additional items of interest are a progress report on nursing education (1928), an anthropological survey (1932-1933), and the files on international studies and international relations.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":175}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"count":26,"next":"https://api.rockarch.org/collections/H7ZDcPjFivwzjBG7s7eiiB/children?category=&limit=5&offset=5&query=banana","previous":null,"results":[{"title":"Rockefeller Foundation records, Projects, SG 1.1","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/RBMzH847oGnxgmsMYztgWz","dates":"1906-1986, 1913-1942","description":"Project files including grant actions, reports, assessments, and associated administrative records.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":2},{"title":"Rockefeller Foundation records, Projects, SG 1.2","type":"collection","online":false,"hit_count":1,"online_hit_count":0,"uri":"/collections/cv4XchKSJ6qWjxamSjYWdr","dates":"1942-1970, 1902-1990","description":"Project files including grant actions, reports, assessments, and associated administrative records.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":8752},{"title":"Rockefeller Foundation records, projects, SG 1.3","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/aBfFghFB8AedAUUWXxHst2","dates":"1910-2000","description":"Types of records include: project files.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":21631},{"title":"Rockefeller Foundation records, Projects, International Relations, SG 1.3, Series 155","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/aAQbARU38XTjEMZTAX8Z33","dates":"1971-1989","description":"The bulk of this series is correspondence. Records also include minutes, evaluations, and supplementary material of a general nature about the Conflict in International Relations/International Relations program, as well as documentation of grants awarded and fellowship files. Many of the grant and fellowship files are enriched by supplementary material, which may be in the form of publications, papers, reports, agendas or minutes of conferences, books, or other printed material. The supplementary material often contains the fruit that has resulted from a grant or fellowship.\n\tThe material in this series primarily covers the period from 1972/73 - when the Conflict in International Relations program was first established - through 1986, when the International Relations program was terminated. Earliest dated material, however, dates from 1960 and latest is from 1994.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":24882},{"title":"Rockefeller Foundation records, projects, SG 1.3-SG 1.8 (A76-A82)","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/JueTxNcPK9PL6hzdFmG3H5","dates":"1944-2002, undated","description":null,"group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":26370}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"count":2,"next":null,"previous":null,"results":[{"title":"Rockefeller Foundation records, projects, SG 1.1, Series 100-257, International and United States","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/SSRNQLkpCyPbAWAKCMeHBE","dates":"1909-1982","description":"Types of records include: project files.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":3},{"title":"Rockefeller Foundation records, Projects, SG 1.1, Series 300-833, Latin America, Europe, Africa, Asia, Oceania","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/Fj6UhBbFzLxcAJGZfkyQc7","dates":"1906-1986","description":"Types of records include: project files.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":4592}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"count":40,"next":"https://api.rockarch.org/collections/SSRNQLkpCyPbAWAKCMeHBE/children?category=&limit=5&offset=5&query=banana","previous":null,"results":[{"title":"International, Series 100","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/D2jqmNejBUu9hq9o4eGVoi","dates":"1913-1958","description":"This material, mostly from 1913 to 1942, relates to funded projects originated by international organizations or involving more than one country. Included in this designation are organizations directly connected with the Rockefeller Foundation, such as the International Health Division (which was a part of the Foundation that was governed separately until 1951); organizations indirectly related to the Foundation, such as the Spelman Fund of New York and the China Medical Board, Inc.; and other, independent organizations that received support from the Foundation. Much of the material concerns the work of the International Health Division. There is a large section on the war relief of the Foundation (1914 to 1918). Additional items of interest are a progress report on nursing education (1928), an anthropological survey (1932 to 1933), and the files on international studies and international relations.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":4},{"title":"United States, Series 200","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/4T9R2xgUCtTgsNJirayV2y","dates":"1909-1974","description":"This series includes material for grants given to organizations that are national in scope but that fall outside the Foundation's established program divisions. Files are organized alphabetically. This series includes documentation of grants given as the result of the founder's designation and grants to such institutions as the American Baptist Home Mission Society, the American Council on Education, Biological Abstracts, a bird refuge in Louisiana, the Bureau of Municipal Research, the National Committee for Mental Hygiene, the National Research Council, and prominent universities such as Johns Hopkins, Harvard and Yale. Also included in this series are files on the Foundation's support of the Emergency Committee in Aid of Displaced Foreign Scholars and its support for Refugee Scholars during the 1930s and 1940s.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":634},{"title":"Alabama, Series 201","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/WUKUVEhHxpY5fB7VgN9pzN","dates":"1927-1955","description":"International Health Division Correspondence with the state board of health. Reports on tuberculosis, malaria, hookworm. Most material dates from the 1930's.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":3432},{"title":"Alaska, Series 202","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/2j6knNYYH66yKYny2gfCtV","dates":"1929-1958","description":null,"group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":3457},{"title":"California, Series 205","type":"collection","online":false,"hit_count":0,"online_hit_count":0,"uri":"/collections/nyvLkJJoSVYxZewKqLKSj2","dates":"1921-1971","description":"Mostly 1930's and 1940's, reflects general foundation program in this period. 205D (natural science) section particularly interesting.","group":{"identifier":"/collections/WY7fpswEV3oLhyjiArpHES","title":"Rockefeller Foundation records"},"index":3463}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"Alcoholism, 1913-1916; Rockefeller Foundation records; Rockefeller Foundation records, Projects (Grants), RG 1; Rockefeller Foundation records, Projects, SG 1.1; Rockefeller Foundation records, projects, SG 1.1, Series 100-257, International and United States; International, Series 100; International - General (No Program), Subseries 100.GEN; Rockefeller Archive Center; https://dimes.rockarch.org/objects/3htvHFf2iEoEPdDUyeofYG"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"title":"International Basic Economy Corporation (IBEC) records","items":[{"title":"Brazil - Food - Banana Flakes","uri":"/objects/W9jBzNTBe4TuGzT8FTyoZQ","dates":"1950","description":"Correspondence. Documents in this folder are in English.\n\n","extents":[{"type":"folder","value":"1"}],"notes":[{"source":"archivesspace","type":"scopecontent","title":"Scope and Contents note","subnotes":[{"type":"text","items":[],"content":["Correspondence. Documents in this folder are in English.\n\n"]}]}],"parent":"Projects and Proposals","parent_ref":"/collections/75oMESmwNbfaRs8zE8siZq","online":false,"archivesspace_uri":"/repositories/2/archival_objects/88980"}]},{"title":"Rockefeller Foundation records","items":[{"title":"RF 99005 - (INTEGRATED BANANA RESEARCH IN UGANDA) - ROLE OF PESTS AND PATHOGENS IN BANANA PRODUCTION","uri":"/objects/CkZSRtr48Es4MkLLNQ6s2y","dates":"1992-2001","description":null,"extents":[{"type":"box","value":"1"}],"notes":[],"parent":"Rockefeller Foundation (RF)","parent_ref":"/collections/ejQy45WGaEbNkyXrEtrXm7","online":false,"archivesspace_uri":"/repositories/2/archival_objects/769988"},{"title":"RF 98007ÿ#38 - KIGGUNDU, ANDREW - BANANA WEEVIL WITHIN EAST AFRICAN HIGHLAND BANANAS IN UGANDA","uri":"/objects/GiKd8HrQCVvXsYLd5Lposp","dates":"1998-2002","description":null,"extents":[{"type":"box","value":"1"}],"notes":[],"parent":"Rockefeller Foundation (RF)","parent_ref":"/collections/9AAhMWWZby9uXgfEBSFKbL","online":false,"archivesspace_uri":"/repositories/2/archival_objects/501630"}]}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pong":false}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"title":"International Basic Economy Corporation (IBEC) records","items":[{"title":"Brazil - Food - Banana Flakes","uri":"/objects/W9jBzNTBe4TuGzT8FTyoZQ","dates":"1950","description":"Correspondence. Documents in this folder are in English.\n\n","extents":[{"type":"folder","value":"1"}],"notes":[{"source":"archivesspace","type":"scopecontent","title":"Scope and Contents note","subnotes":[{"type":"text","items":[],"content":["Correspondence. Documents in this folder are in English.\n\n"]}]}],"parent":"Projects and Proposals","parent_ref":"/collections/75oMESmwNbfaRs8zE8siZq","online":false,"archivesspace_uri":"/repositories/2/archival_objects/88980"}]},{"title":"Rockefeller Foundation records","items":[{"title":"RF 99005 - (INTEGRATED BANANA RESEARCH IN UGANDA) - ROLE OF PESTS AND PATHOGENS IN BANANA PRODUCTION","uri":"/objects/CkZSRtr48Es4MkLLNQ6s2y","dates":"1992-2001","description":null,"extents":[{"type":"box","value":"1"}],"notes":[],"parent":"Rockefeller Foundation (RF)","parent_ref":"/collections/ejQy45WGaEbNkyXrEtrXm7","online":false,"archivesspace_uri":"/repositories/2/archival_objects/769988"},{"title":"RF 98007ÿ#38 - KIGGUNDU, ANDREW - BANANA WEEVIL WITHIN EAST AFRICAN HIGHLAND BANANAS IN UGANDA","uri":"/objects/GiKd8HrQCVvXsYLd5Lposp","dates":"1998-2002","description":null,"extents":[{"type":"box","value":"1"}],"notes":[],"parent":"Rockefeller Foundation (RF)","parent_ref":"/collections/9AAhMWWZby9uXgfEBSFKbL","online":false,"archivesspace_uri":"/repositories/2/archival_objects/501630"}]}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pong":false}

0 comments on commit 91f1707

Please sign in to comment.