From 8f98dfea433f5f3ee5c82f2bae3877549cec0f6d Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 14 Apr 2022 13:40:15 -0400 Subject: [PATCH 1/3] feat(specs): adds cypress workflows --- specs/cypress/open-cypress-default.yaml | 8 ++++++++ specs/cypress/open-cypress-mobile.yaml | 15 +++++++++++++++ specs/cypress/run-cypress-default.yaml | 8 ++++++++ specs/cypress/run-cypress-mobile.yaml | 15 +++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 specs/cypress/open-cypress-default.yaml create mode 100644 specs/cypress/open-cypress-mobile.yaml create mode 100644 specs/cypress/run-cypress-default.yaml create mode 100644 specs/cypress/run-cypress-mobile.yaml diff --git a/specs/cypress/open-cypress-default.yaml b/specs/cypress/open-cypress-default.yaml new file mode 100644 index 0000000..b2c6e2b --- /dev/null +++ b/specs/cypress/open-cypress-default.yaml @@ -0,0 +1,8 @@ +name: Open Cypress +command: "npx cypress open" +tags: + - cypress +description: "Open the Cypress Test Runner." +source_url: "https://docs.cypress.io/guides/getting-started/installing-cypress#Opening-Cypress" +author: cypress-dx +shells: [] \ No newline at end of file diff --git a/specs/cypress/open-cypress-mobile.yaml b/specs/cypress/open-cypress-mobile.yaml new file mode 100644 index 0000000..45c479b --- /dev/null +++ b/specs/cypress/open-cypress-mobile.yaml @@ -0,0 +1,15 @@ +name: Open Cypress on Mobile +command: "npx cypress open --config viewportWidth={{width}},viewportHeight={{height}}" +tags: + - cypress +description: "Open the Cypress Test Runner with a Mobile Viewport." +arguments: + - name: width + description: The width of the viewport in pixels + default_value: 375 + - name: height + description: The height of the viewport in pixels + default_value: 667 +source_url: "https://docs.cypress.io/guides/getting-started/installing-cypress#Opening-Cypress" +author: cypress-dx +shells: [] \ No newline at end of file diff --git a/specs/cypress/run-cypress-default.yaml b/specs/cypress/run-cypress-default.yaml new file mode 100644 index 0000000..e8e56cb --- /dev/null +++ b/specs/cypress/run-cypress-default.yaml @@ -0,0 +1,8 @@ +name: Run Cypress Headless +command: "npx cypress run" +tags: + - cypress +description: "Run Cypress in Headless Mode" +source_url: "https://docs.cypress.io/guides/guides/command-line#cypress-run" +author: cypress-dx +shells: [] \ No newline at end of file diff --git a/specs/cypress/run-cypress-mobile.yaml b/specs/cypress/run-cypress-mobile.yaml new file mode 100644 index 0000000..d4620f3 --- /dev/null +++ b/specs/cypress/run-cypress-mobile.yaml @@ -0,0 +1,15 @@ +name: Run Cypress Headless on Mobile +command: "npx cypress run --config viewportWidth={{width}},viewportHeight={{height}}" +tags: + - cypress +description: "Run the Cypress Test Runner with a Mobile Viewport in Headless Mode" +arguments: + - name: width + description: The width of the viewport in pixels + default_value: 375 + - name: height + description: The height of the viewport in pixels + default_value: 667 +source_url: "https://docs.cypress.io/guides/getting-started/installing-cypress#Opening-Cypress" +author: cypress-dx +shells: [] \ No newline at end of file From 982f6ee25cba047335f933bee60dcabd937eac4c Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 18 Apr 2022 12:35:19 -0400 Subject: [PATCH 2/3] chore(specs): change mobile to mobile viewport --- ...en-cypress-mobile.yaml => open-cypress-mobile-viewport.yaml} | 2 +- ...run-cypress-mobile.yaml => run-cypress-mobile-viewport.yaml} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename specs/cypress/{open-cypress-mobile.yaml => open-cypress-mobile-viewport.yaml} (92%) rename specs/cypress/{run-cypress-mobile.yaml => run-cypress-mobile-viewport.yaml} (91%) diff --git a/specs/cypress/open-cypress-mobile.yaml b/specs/cypress/open-cypress-mobile-viewport.yaml similarity index 92% rename from specs/cypress/open-cypress-mobile.yaml rename to specs/cypress/open-cypress-mobile-viewport.yaml index 45c479b..bf412e1 100644 --- a/specs/cypress/open-cypress-mobile.yaml +++ b/specs/cypress/open-cypress-mobile-viewport.yaml @@ -1,4 +1,4 @@ -name: Open Cypress on Mobile +name: Open Cypress With A Mobile Viewport command: "npx cypress open --config viewportWidth={{width}},viewportHeight={{height}}" tags: - cypress diff --git a/specs/cypress/run-cypress-mobile.yaml b/specs/cypress/run-cypress-mobile-viewport.yaml similarity index 91% rename from specs/cypress/run-cypress-mobile.yaml rename to specs/cypress/run-cypress-mobile-viewport.yaml index d4620f3..2b9e589 100644 --- a/specs/cypress/run-cypress-mobile.yaml +++ b/specs/cypress/run-cypress-mobile-viewport.yaml @@ -1,4 +1,4 @@ -name: Run Cypress Headless on Mobile +name: Run Cypress Headless With A Mobile Viewport command: "npx cypress run --config viewportWidth={{width}},viewportHeight={{height}}" tags: - cypress From cb5ec62817f7e865bcf75f33b54c8791d0d5b7de Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 18 Apr 2022 12:57:16 -0400 Subject: [PATCH 3/3] fix(specs): make A lowercase a --- specs/cypress/open-cypress-mobile-viewport.yaml | 2 +- specs/cypress/run-cypress-mobile-viewport.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/cypress/open-cypress-mobile-viewport.yaml b/specs/cypress/open-cypress-mobile-viewport.yaml index bf412e1..47c515c 100644 --- a/specs/cypress/open-cypress-mobile-viewport.yaml +++ b/specs/cypress/open-cypress-mobile-viewport.yaml @@ -1,4 +1,4 @@ -name: Open Cypress With A Mobile Viewport +name: Open Cypress With a Mobile Viewport command: "npx cypress open --config viewportWidth={{width}},viewportHeight={{height}}" tags: - cypress diff --git a/specs/cypress/run-cypress-mobile-viewport.yaml b/specs/cypress/run-cypress-mobile-viewport.yaml index 2b9e589..6bd9276 100644 --- a/specs/cypress/run-cypress-mobile-viewport.yaml +++ b/specs/cypress/run-cypress-mobile-viewport.yaml @@ -1,4 +1,4 @@ -name: Run Cypress Headless With A Mobile Viewport +name: Run Cypress Headless With a Mobile Viewport command: "npx cypress run --config viewportWidth={{width}},viewportHeight={{height}}" tags: - cypress