Skip to content

Commit dfe40fc

Browse files
Bump the github-actions-dependencies group with 3 updates (#70)
* Bump the github-actions-dependencies group with 3 updates Bumps the github-actions-dependencies group with 3 updates: [actions/upload-artifact](https://github.com/actions/upload-artifact), [actions/download-artifact](https://github.com/actions/download-artifact) and [cypress-io/github-action](https://github.com/cypress-io/github-action). Updates `actions/upload-artifact` from 5.0.0 to 6.0.0 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@330a01c...b7c566a) Updates `actions/download-artifact` from 6.0.0 to 7.0.0 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@018cc2c...37930b1) Updates `cypress-io/github-action` from 6.10.4 to 6.10.6 - [Release notes](https://github.com/cypress-io/github-action/releases) - [Changelog](https://github.com/cypress-io/github-action/blob/master/CHANGELOG.md) - [Commits](cypress-io/github-action@7ef72e2...d842ab1) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies - dependency-name: actions/download-artifact dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies - dependency-name: cypress-io/github-action dependency-version: 6.10.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * Update packages * Stub copy to clipboard in e2e tests --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Raymond Splinter <raymond.splinter@xebia.com>
1 parent 15ce713 commit dfe40fc

5 files changed

Lines changed: 33 additions & 58 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
7575
- name: Upload build artifacts
7676
id: artifact
77-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
77+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
7878
with:
7979
name: devtoolbox-artifacts
8080
path: dist/dev-tool-box/browser/
@@ -96,13 +96,13 @@ jobs:
9696
fetch-depth: 1
9797

9898
- name: Download build artifacts
99-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
99+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
100100
with:
101101
name: devtoolbox-artifacts
102102
path: dist/dev-tool-box/browser/
103103

104104
- name: Run E2E tests
105-
uses: cypress-io/github-action@7ef72e250a9e564efb4ed4c2433971ada4cc38b4 # v6.10.4
105+
uses: cypress-io/github-action@d842ab15a88774cf1311cc07f0e7112024c3dbd7 # v6.10.6
106106
with:
107107
start: npm run start
108108
wait-on: http://localhost:4200
@@ -111,7 +111,7 @@ jobs:
111111
spec: cypress/e2e/**/*.cy.ts
112112

113113
- name: Upload Cypress screenshots
114-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
114+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
115115
if: failure()
116116
with:
117117
name: cypress-screenshots-${{ matrix.browser }}
@@ -120,7 +120,7 @@ jobs:
120120
if-no-files-found: ignore
121121

122122
- name: Upload Cypress videos
123-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
123+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
124124
if: always()
125125
with:
126126
name: cypress-videos-${{ matrix.browser }}

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: npm run build:prod
4040

4141
- name: Upload build artifacts
42-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
42+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
4343
with:
4444
name: devtoolbox-artifacts
4545
path: dist/dev-tool-box/browser/
@@ -62,7 +62,7 @@ jobs:
6262
AWS_CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
6363
steps:
6464
- name: Download build artifacts
65-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
65+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
6666
with:
6767
name: devtoolbox-artifacts
6868
path: dist/dev-tool-box/browser/

cypress/e2e/tools/base64-encoder.cy.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,16 @@ describe("Base64 Encoder Page", () => {
6363
// Clipboard write/read is only available for Chromium-based browsers in Cypress tests.
6464
(Cypress.isBrowser('firefox') ? it.skip : it)("should be able to copy output to clipboard", () => {
6565
cy.visit("/tools/base64-encoder");
66-
cy.get("[data-testid='input-textarea']").should("exist").type("Test");
67-
cy.get("[data-testid='copy-btn']").should("exist").click();
66+
6867
cy.window().then((win: AUTWindow) => {
69-
win.navigator.clipboard.readText().then((text: string) => expect(text).to.eq('VGVzdA=='));
68+
const writeStub = cy.stub(win.navigator.clipboard, "writeText").resolves();
69+
cy.wrap(writeStub).as("clipboardWrite");
7070
});
71+
72+
cy.get("[data-testid='input-textarea']").should("exist").type("Test");
73+
cy.get("[data-testid='copy-btn']").should("exist").click();
74+
75+
cy.get("@clipboardWrite").should("have.been.calledOnceWithExactly", "VGVzdA==");
7176
});
7277

7378
it("should be able to clear input", () => {

package-lock.json

Lines changed: 15 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)