-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(js sdk): Improve SSR stability TG-275 (#429)
- Loading branch information
Showing
31 changed files
with
11,887 additions
and
1,535 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
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,25 @@ | ||
context('Gatsby development', () => { | ||
beforeEach(() => { | ||
cy.visit('http://localhost:8104/'); | ||
}); | ||
|
||
it('Is translated in english', () => { | ||
cy.contains('Hello world!'); | ||
}); | ||
|
||
it('it switches language', () => { | ||
cy.contains('DE').click(); | ||
cy.contains('Hallo Welt!'); | ||
cy.contains('EN').click(); | ||
cy.contains('Hello world!'); | ||
}); | ||
|
||
it('it opens UI', () => { | ||
cy.contains('Hello world!') | ||
.trigger('keydown', { key: 'Alt' }) | ||
.trigger('mouseover') | ||
.click(); | ||
cy.contains('Translate text'); | ||
cy.contains('Save'); | ||
}); | ||
}); |
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,16 @@ | ||
context('Gatsby Production', () => { | ||
beforeEach(() => { | ||
cy.visit('http://localhost:8105/'); | ||
}); | ||
|
||
it('Is translated in english', () => { | ||
cy.contains('Hello world!'); | ||
}); | ||
|
||
it('it switches language', () => { | ||
cy.contains('DE').click(); | ||
cy.contains('Hallo Welt!'); | ||
cy.contains('EN').click(); | ||
cy.contains('Hello world!'); | ||
}); | ||
}); |
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,26 @@ | ||
context('Next development', () => { | ||
beforeEach(() => { | ||
cy.visit('http://localhost:8106/'); | ||
}); | ||
|
||
it('Is translated in english', () => { | ||
cy.contains('Hello world!'); | ||
}); | ||
|
||
it('it switches language', () => { | ||
cy.contains('Hello world!').should('be.visible'); | ||
cy.contains('de').click(); | ||
cy.contains('Hallo Welt!'); | ||
cy.contains('en').click(); | ||
cy.contains('Hello world!'); | ||
}); | ||
|
||
it('it opens UI', () => { | ||
cy.contains('Hello world!') | ||
.trigger('keydown', { key: 'Alt' }) | ||
.trigger('mouseover') | ||
.click(); | ||
cy.contains('Translate text'); | ||
cy.contains('Save'); | ||
}); | ||
}); |
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,17 @@ | ||
context('Next Production', () => { | ||
beforeEach(() => { | ||
cy.visit('http://localhost:8107/'); | ||
}); | ||
|
||
it('Is translated in english', () => { | ||
cy.contains('Hello world!'); | ||
}); | ||
|
||
it('it switches language', () => { | ||
cy.contains('Hello world!').should('be.visible'); | ||
cy.contains('de').click(); | ||
cy.contains('Hallo Welt!'); | ||
cy.contains('en').click(); | ||
cy.contains('Hello world!'); | ||
}); | ||
}); |
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
Oops, something went wrong.