Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switches client code from JS to TS #3803

Open
wants to merge 81 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
2336488
Replaces JS with TS in client
walmazacn Jul 3, 2024
cdb8c01
Improves docu script
walmazacn Jul 3, 2024
895ce38
Adds missing code
walmazacn Jul 3, 2024
5f59289
Fixes Luigi Element
walmazacn Jul 3, 2024
57cc82a
Fixes mockengine test
walmazacn Jul 4, 2024
179f205
Fixes mockengine test
walmazacn Jul 4, 2024
f7f08a9
Fixes integration test
walmazacn Jul 4, 2024
2735487
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
walmazacn Jul 4, 2024
6575f75
Fixes integration test
walmazacn Jul 5, 2024
c462a37
Bumps Cypress version
walmazacn Jul 5, 2024
7d01146
Improves bash script
walmazacn Jul 5, 2024
f318aba
Fixes TS error
walmazacn Jul 5, 2024
2ceba11
Fixes spec errors
walmazacn Jul 5, 2024
39a2c8e
Resolves conflict
walmazacn Jul 5, 2024
5a0b331
Fixes TS formatting
walmazacn Jul 5, 2024
5b2fae8
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
ndricimrr Jul 9, 2024
0fe127d
Resolves conflict
walmazacn Jul 15, 2024
3fdc54b
Resolves conflict
walmazacn Jul 15, 2024
7e5322c
Fixes code review issues
walmazacn Jul 15, 2024
a51ea9f
Fixes prettier issues
walmazacn Jul 15, 2024
1860dec
Fixes build issues
walmazacn Jul 15, 2024
5d8fe54
Resolves conflicts
walmazacn Jul 16, 2024
4f090ec
Fixes code review issues
walmazacn Jul 16, 2024
269b9ae
Fixes code review issues
walmazacn Jul 16, 2024
6429cad
Fixes failing tests
walmazacn Jul 16, 2024
10c83ec
Adds missing docs
walmazacn Jul 16, 2024
2c64560
Resolves conflict
walmazacn Jul 17, 2024
dea4ebd
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
walmazacn Jul 22, 2024
5e414d7
Fixes bundle file issues
walmazacn Jul 22, 2024
98f07ad
Fixes prettier issue
walmazacn Jul 22, 2024
ad791a6
Merge branch '3791-switch-client-code-from-js-to-ts' of https://githu…
walmazacn Jul 22, 2024
5e6b17f
Reverts TS changes in test
walmazacn Jul 22, 2024
6059dde
Fixes docu issue
walmazacn Jul 22, 2024
145bfd8
Fixes link manager issues
walmazacn Jul 24, 2024
7ac0169
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
walmazacn Jul 24, 2024
aa95f68
Fixes broken spec
walmazacn Jul 24, 2024
0124981
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
walmazacn Jul 24, 2024
5661b5f
Resolves conflict
walmazacn Jul 25, 2024
0507d53
Fixes docu issue
walmazacn Jul 26, 2024
00568f4
Resolves conflicts
walmazacn Jul 29, 2024
ad5881e
Merge branch 'main' of https://github.com/SAP/luigi into 3791-switch-…
walmazacn Jul 30, 2024
878fc0a
Minor adjustments
walmazacn Aug 1, 2024
179a470
Formatting fixes
walmazacn Aug 1, 2024
0e876ed
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
walmazacn Aug 1, 2024
3988306
Docu fixes
walmazacn Aug 1, 2024
b99172a
Merge branch '3791-switch-client-code-from-js-to-ts' of https://githu…
walmazacn Aug 1, 2024
0f36c50
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
walmazacn Aug 1, 2024
a5553a1
Naming adjustments
walmazacn Aug 1, 2024
f13c561
Fixes bundle issues
walmazacn Aug 2, 2024
3e10360
Fixes docu issue
walmazacn Aug 2, 2024
0afade4
Fixes bundle issue
walmazacn Aug 6, 2024
c75b7c2
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
walmazacn Aug 6, 2024
137d727
Fixes broken spec
walmazacn Aug 6, 2024
dde0031
Merge branch '3791-switch-client-code-from-js-to-ts' of https://githu…
walmazacn Aug 6, 2024
c017409
Fixes bundle issue
walmazacn Aug 6, 2024
02f8f90
Removes old file
walmazacn Aug 6, 2024
fe88774
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
walmazacn Aug 9, 2024
1204308
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
JohannesDoberer Aug 14, 2024
1b6ed61
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
walmazacn Aug 20, 2024
540f9ca
Fixes docu script
walmazacn Aug 20, 2024
e798434
Fixes docu script
walmazacn Aug 20, 2024
86238c5
Generated docu file for client
walmazacn Aug 20, 2024
eb3eb15
Fixes docu file for client
walmazacn Aug 21, 2024
8eee3ca
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
ndricimrr Aug 21, 2024
b08aff3
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
walmazacn Aug 22, 2024
548520a
Fixes docu file for client
walmazacn Aug 22, 2024
325c09d
Merge branch '3791-switch-client-code-from-js-to-ts' of https://githu…
walmazacn Aug 22, 2024
0d55553
Resolves conflict
walmazacn Aug 28, 2024
49d5e6a
Prettier fixes
walmazacn Aug 28, 2024
8b16204
Fixes docu annotations
walmazacn Aug 29, 2024
34d0872
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
walmazacn Aug 29, 2024
3ebef4a
Resolves conflicts
walmazacn Sep 13, 2024
00d6d87
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
walmazacn Sep 26, 2024
32d1fbc
Resolves conflicts
walmazacn Oct 4, 2024
87a0e15
Resolves conflicts
walmazacn Oct 8, 2024
0d4efbe
Resolves conflicts
walmazacn Oct 11, 2024
ee1b03f
Fixes docu issue
walmazacn Oct 15, 2024
673f397
Merge branch 'main' into 3791-switch-client-code-from-js-to-ts
walmazacn Oct 15, 2024
06a2d59
Fixes split view issue
walmazacn Oct 15, 2024
dc2d656
Fixes docu order
walmazacn Oct 15, 2024
466f88d
Resolves conflict
walmazacn Oct 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,41 +1,42 @@
let uxManager, linkManager;
const containerSelector = '[id^="luigi-debug-vis-cnt"]';

describe('Luigi Mock Engine', () => {
before(() => {
cy.visit('http://localhost:8181/');
});

/**
* Testing Luigi Client UX Manager features
*/
describe('Test Luigi Client UX Manager functionality', () => {
it('Check LuigiClient.uxManager().alert', () => {
cy.get('[id^=uxbutton1]').click();

cy.get('[id^="luigi-debug-vis-cnt"]')
cy.get(containerSelector)
.children()
.contains('"msg":"luigi.ux.alert.show"');
});

it('Check LuigiClient.uxManager().confirmModal', () => {
cy.get('[id^=uxbutton2]').click();

cy.get('[id^="luigi-debug-vis-cnt"]')
cy.get(containerSelector)
.children()
.contains('"msg":"luigi.ux.confirmationModal.show"');
});

it('Check LuigiClient.uxManager().loadIndicator', () => {
cy.get('[id^=uxbutton3]').click();

cy.get('[id^="luigi-debug-vis-cnt"]')
cy.get(containerSelector)
.children()
.contains('"msg":"luigi.show-loading-indicator"');
});

it('Check LuigiClient.uxManager().setCurrentLocale', () => {
cy.get('[id^=uxbutton4]').click();

cy.get('[id^="luigi-debug-vis-cnt"]')
cy.get(containerSelector)
.children()
.contains('"msg":"luigi.current-locale-changed"');
});
Expand All @@ -48,27 +49,27 @@ describe('Luigi Mock Engine', () => {
it('Check LuigiClient.linkManager().openAsModal', () => {
cy.get('[id^=button1]').click();

cy.get('[id^="luigi-debug-vis-cnt"]')
cy.get(containerSelector)
.children()
.contains('"msg":"luigi.navigate.ok"');
});

it('Check LuigiClient.linkManager().split', () => {
cy.get('[id^=button2]').click();

cy.get('[id^="luigi-debug-vis-cnt"]').contains('"msg":"luigi.navigate.ok"');
cy.get(containerSelector).contains('"msg":"luigi.navigate.ok"');
});

it('Check LuigiClient.linkManager().drawer', () => {
cy.get('[id^=button3]').click();

cy.get('[id^="luigi-debug-vis-cnt"]').contains('"msg":"luigi.navigate.ok"');
cy.get(containerSelector).contains('"msg":"luigi.navigate.ok"');
});

it('Check LuigiClient.linkManager().pathExists', () => {
cy.get('[id^=button4]').click();

cy.get('[id^="luigi-debug-vis-cnt"]').contains('"msg":"luigi.navigation.pathExists.answer"');
cy.get(containerSelector).contains('"msg":"luigi.navigation.pathExists.answer"');
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h3 class="fd-title fd-title--h3">
</body>
</html>
<script type="module">
import { LuigiMockEngine } from './node_modules/@luigi-project/testing-utilities/dist/index.js';
import { LuigiMockEngine } from './node_modules/@luigi-project/testing-utilities/luigi-mock-engine.js';

let initPostMessageMthd = await Promise.resolve(LuigiMockEngine.initPostMessageHook());
let buttonArray = [
Expand Down
Loading