-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for i18n demo (and document how to peer into shadowDOM
- Loading branch information
1 parent
b0c6abd
commit 72056e3
Showing
4 changed files
with
60 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
describe('external-fore.html', () => { | ||
beforeEach(() => { | ||
cy.visit('external-fore.html'); | ||
}); | ||
|
||
it('can load the external fore component', () => { | ||
cy.get('#output').shadow().contains('middle'); | ||
cy.get('h2 > fx-output').shadow().contains('left') | ||
}); | ||
}) |
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,22 @@ | ||
describe('template spec', () => { | ||
beforeEach(()=>{ | ||
cy.visit('i18n/i18n.html'); | ||
}); | ||
|
||
it('can toggle the language', function() { | ||
cy.get('[data-cy="EN"]').click(); | ||
cy | ||
.get('fx-output') | ||
.shadow() | ||
.find('#value') | ||
.should('contain', 'Description of object'); | ||
cy | ||
.get('[data-cy="DE"]') | ||
.click(); | ||
cy | ||
.get('fx-output') | ||
.shadow() | ||
.find('#value') | ||
.should('contain', 'Objektbeschreibung'); | ||
}); | ||
}) |
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