Skip to content

Commit

Permalink
Update dependencies, fixes #562
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen Akkerman committed Sep 26, 2023
1 parent d9ab397 commit 35587a9
Show file tree
Hide file tree
Showing 5 changed files with 413 additions and 654 deletions.
1 change: 1 addition & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export default defineConfig({
excludeSpecPattern: [
'**/*.html',
],
video: true,
},
});
12 changes: 8 additions & 4 deletions cypress/e2e/2-url-prompt/url-prompt.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ describe('URL prompts', () => {

cy.window().then(($win) => {
const stub = cy.stub($win, 'prompt');
cy.get('button.link').click().then(() => {
cy.get('button.link').click();
cy.get('button.link').then(() => {
expect(stub).to.be.calledWith('URL for the link:', 'https://');
});
});
Expand All @@ -23,7 +24,8 @@ describe('URL prompts', () => {

cy.window().then(($win) => {
const stub = cy.stub($win, 'prompt');
cy.get('button.image').click().then(() => {
cy.get('button.image').click();
cy.get('button.image').then(() => {
expect(stub).to.be.calledWith('URL of the image:', 'https://');
});
});
Expand Down Expand Up @@ -52,7 +54,8 @@ describe('URL prompts', () => {
cy.window().then(($win) => {
const stub = cy.stub($win, 'prompt');
stub.returns('https://example.com');
cy.get('button.link').click().then(() => {
cy.get('button.link').click();
cy.get('button.link').then(() => {
expect(stub).to.be.calledWith('URL for the link:', 'https://');
stub.restore();
});
Expand All @@ -63,7 +66,8 @@ describe('URL prompts', () => {
cy.window().then(($win) => {
const stub = cy.stub($win, 'prompt');
stub.returns('https://example.eu');
cy.get('button.link').click().then(() => {
cy.get('button.link').click();
cy.get('button.link').then(() => {
expect(stub).to.be.calledWith('URL for the link:', 'https://');
stub.restore();
});
Expand Down

0 comments on commit 35587a9

Please sign in to comment.