-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '10.0-release' into lmiller1990/saved-state-graphql
- Loading branch information
Showing
94 changed files
with
7,507 additions
and
1,986 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Shadow DOM Button test</title> | ||
</head> | ||
|
||
<body> | ||
<cy-test-element id='element'>Click me!</cy-test-element> | ||
<script> | ||
class CyTestElement extends HTMLElement { | ||
constructor() { | ||
super(); | ||
|
||
this.attachShadow({ mode: 'open' }); | ||
const button = document.createElement('button'); | ||
const slot = document.createElement('slot'); | ||
|
||
button.setAttribute('data-test-id', 'my-button') | ||
|
||
button.appendChild(slot); | ||
|
||
button.addEventListener('click', () => { | ||
const div = document.createElement('div'); | ||
div.textContent = 'Clicked' | ||
|
||
this.shadowRoot.appendChild(div); | ||
}); | ||
|
||
this.shadowRoot.appendChild( | ||
button | ||
); | ||
} | ||
} | ||
|
||
customElements.define('cy-test-element', CyTestElement); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/driver/cypress/integration/e2e/testConfigOverrides-describe-only_spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const shouldNotExecute = () => { | ||
throw new Error('Test Override validation should have failed & it block should not have executed.') | ||
} | ||
|
||
it('first should not run', () => { | ||
shouldNotExecute() | ||
}) | ||
|
||
describe('second should not run', () => { | ||
it('test', () => { | ||
shouldNotExecute() | ||
}) | ||
}) | ||
|
||
describe('correctly applies overrides ', { retries: 1 }, () => { | ||
// eslint-disable-next-line mocha/no-exclusive-tests | ||
describe.only('when valid configuration', () => { | ||
it('for describe.only', { baseUrl: null }, () => { | ||
const config = Cypress.config() | ||
|
||
expect(config.testConfigList).to.be.undefined | ||
expect(config.unverifiedTestConfig).to.be.undefined | ||
expect(config.baseUrl).to.be.null | ||
expect(config.retries).to.eq(1) | ||
}) | ||
}) | ||
}) |
Oops, something went wrong.