Skip to content

Commit

Permalink
Millie fix window size (#156)
Browse files Browse the repository at this point in the history
* cy.viewport set

* cy.viewport set

* Add viewport to new tests

* update shas and screenshots

---------

Co-authored-by: James Houghton <james.p.houghton@gmail.com>
  • Loading branch information
gumillie222 and JamesPHoughton authored Nov 15, 2023
1 parent 97be025 commit 45e64dc
Show file tree
Hide file tree
Showing 43 changed files with 23 additions and 2 deletions.
Binary file modified cypress/screenshots/labeledRangeTest/afterClick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cypress/screenshots/labeledRangeTest/beforeClick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion surveys/SVI/SVI.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("SubjectiveValueInventory", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<SVI onComplete={dummy.set} />);
cy.viewport("macbook-11");

// Instrumental Outcome
cy.get('[data-name="Instrumental Outcome 1"] input[value="5"]').click({
Expand All @@ -18,7 +19,7 @@ describe("SubjectiveValueInventory", () => {
cy.get('[data-name="Instrumental Outcome 2"] input[value="6"]').click({
force: true,
});

cy.get('[data-name="Instrumental Outcome 3"] input[value="2"]').click({
force: true,
});
Expand Down
Binary file modified surveys/SVI/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions surveys/TIPI/TIPI.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("TIPI", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<TIPI onComplete={dummy.set} />);
cy.viewport("macbook-11");

// extroversion
cy.get('[data-name="extroversion"] input[value="1"]').click({
Expand Down
Binary file modified surveys/TIPI/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions surveys/attitudeAttributes/attitudeAttributes.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("AttitudeAttributes", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<AttitudeAttributes onComplete={dummy.set} />);
cy.viewport("macbook-11");

cy.get('[data-name="importance"] input[value="2"]').click({
force: true,
Expand Down
Binary file modified surveys/attitudeAttributes/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion surveys/attitudeAttributes/sha.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"survey":"e5eb9cc1419d3fdfebd275ee75db00b692654d42","score":"0640c560a25956d2a876373a1c634e5d969b15e6"}
{"survey":"f6b92c1f3e19a2f052edae3e4a1bd67496f287d1","score":"0640c560a25956d2a876373a1c634e5d969b15e6"}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("AutonomyNeedSatisfaction", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<AutonomyNeedSatisfaction onComplete={dummy.set} />);
cy.viewport('macbook-11');

cy.get('[data-name="chooseDirection"] input[value="2"]').click({
force: true,
Expand Down
Binary file modified surveys/autonomyNeedSatisfaction/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("AwarenessMonitoringGrowth", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<AwarenessMonitoringGrowth onComplete={dummy.set} />);
cy.viewport("macbook-11");

// awareness
cy.get('[data-name="innermostThoughts"] input[value="6"]').click({
Expand Down
Binary file modified surveys/awarenessMonitoringGrowth/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions surveys/conflictAndViability/conflictAndViability.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("ConflictAndViability", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<ConflictAndViability onComplete={dummy.set} />);
cy.viewport("macbook-11");

cy.get('[data-name="heated"] input[value="6"]').click({
force: true,
Expand Down
Binary file modified surveys/conflictAndViability/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("ConstructiveListeningBehaviors", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<ConstructiveListeningBehaviors onComplete={dummy.set} />);
cy.viewport('macbook-11');

cy.get('[data-name="tryToUnderstand"] input[value="3"]').click({
force: true,
Expand Down
Binary file modified surveys/constructiveListeningBehaviors/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("ConstructiveListeningBehaviors", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<ConstructiveListeningBehaviorsSelf onComplete={dummy.set} />);
cy.viewport('macbook-11');

cy.get('[data-name="tryToUnderstand"] input[value="3"]').click({
force: true,
Expand Down
1 change: 1 addition & 0 deletions surveys/demographics/demographics.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("Demographics", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<Demographics onComplete={dummy.set} />);
cy.viewport('macbook-11');

cy.get(`[data-name="birth_year"] input`).click().type("1985");

Expand Down
Binary file modified surveys/demographics/screenshotGeneral.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified surveys/demographics/screenshotUSA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ describe("Demographics", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<DiscussionQualityControl onComplete={dummy.set} />);
cy.viewport('macbook-11');

cy.get('[data-name="participateAgain"] input[value="no"]').click({
force: true,
Expand Down
Binary file modified surveys/discussionQualityControl/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions surveys/discussionSelfInsight/discussionSelfInsight.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("DiscussionSelfInsight", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<DiscussionSelfInsight onComplete={dummy.set} />);
cy.viewport('macbook-11');

cy.get('[data-name="understandSelf"] input[value="4"]').click({
force: true,
Expand Down
1 change: 1 addition & 0 deletions surveys/exampleSurvey/exampleSurvey.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe("ExampleSurvey", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<ExampleSurvey onComplete={dummy.set} />);
cy.viewport('macbook-11');

cy.get(`[data-name="nps_score"] input[value="1"]`)
.next()
Expand Down
Binary file modified surveys/exampleSurvey/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions surveys/lonelinessSingleItem/lonelinessSingleItem.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("Demographics", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<LonelinessSingleItem onComplete={dummy.set} />);
cy.viewport('macbook-11');

cy.get(`[data-name="loneliness"] input[value="2"]`).click({ force: true });

Expand Down
Binary file modified surveys/lonelinessSingleItem/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("PartisanFeelingThermometerUS", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<PartisanFeelingThermometerUS onComplete={dummy.set} />);
cy.viewport('macbook-11');

cy.get("input[type=range]")
.invoke("val", 25)
Expand Down
1 change: 1 addition & 0 deletions surveys/perceptionOfOthers/perceptionOfOthers.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("PerceptionOfOthers", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<PerceptionOfOthers onComplete={dummy.set} />);
cy.viewport("macbook-11");

cy.get('[data-name="liking"] input[value="6"]').click({
force: true,
Expand Down
Binary file modified surveys/perceptionOfOthers/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions surveys/persuasionAndLearning/persuasionAndLearning.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("PersuasionAndLearning", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<PersuasionAndLearning onComplete={dummy.set} />);
cy.viewport("macbook-11");

// learning questions
cy.get('[data-name="learning"] input[value="6"]').click({
Expand Down
Binary file modified surveys/persuasionAndLearning/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified surveys/politicalPartyUS/page1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified surveys/politicalPartyUS/page2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions surveys/politicalPartyUS/politicalPartyUS.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("PoliticaPartyUS", () => {
it("completesRepublican", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<PoliticalPartyUS onComplete={dummy.set} />);
cy.viewport('macbook-11');

cy.get('[data-name="party"] input[value="Republican"]').click({
force: true,
Expand Down
1 change: 1 addition & 0 deletions surveys/psychologicalSafety/psychologicalSafety.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("PsychologicalSafety", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<PsychologicalSafety onComplete={dummy.set} />);
cy.viewport('macbook-11');

cy.get('[data-name="holdMistake"] input[value="6"]').click({
force: true,
Expand Down
Binary file modified surveys/psychologicalSafety/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("RelatenessNeedSatisfaction", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<RelatednessNeedSatisfaction onComplete={dummy.set} />);
cy.viewport('macbook-11');

cy.get('[data-name="closeness"] input[value="2"]').click({
force: true,
Expand Down
Binary file modified surveys/relatednessNeedSatisfaction/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified surveys/teamViability/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions surveys/teamViability/teamViability.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe("TeamViability", () => {
it("completes", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<TeamViability onComplete={dummy.set} />);
cy.viewport('macbook-11');

cy.get('[data-name="capableUnit"] input[value="2"]').click({
force: true,
Expand Down
1 change: 1 addition & 0 deletions test/labeledRangeTest/labeledRangeTest.cy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ describe("LabeledRangeTest", () => {
it("is styled properly", () => {
cy.spy(dummy, "set").as("callback");
cy.mount(<LabeledRangeTest onComplete={dummy.set} />);
cy.viewport('macbook-11');

/* test if thumb invisible before click moz
//it("test thumb visibility before click moz", { browser: "firefox" }), () => {
Expand Down

0 comments on commit 45e64dc

Please sign in to comment.