-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #555 from appuio/492-display-name-as-title
Use display name as title
- Loading branch information
Showing
30 changed files
with
190 additions
and
102 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,6 @@ export default defineConfig({ | |
printLogsToConsole: 'always', | ||
}); | ||
}, | ||
experimentalRunAllSpecs: true, | ||
}, | ||
}); |
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 |
---|---|---|
|
@@ -21,8 +21,8 @@ describe('Test billing entity list', () => { | |
cy.visit('/billingentities'); | ||
cy.get('#billingentities-title').should('contain.text', 'Billing'); | ||
cy.get('#addButton').should('contain.text', 'Add new Billing'); | ||
cy.get(':nth-child(2) > .flex-row > .text-3xl').should('contain.text', 'be-2345'); | ||
cy.get(':nth-child(3) > .flex-row > .text-3xl').should('contain.text', 'be-2347'); | ||
cy.get(':nth-child(2) > .flex-row > .text-3xl').should('contain.text', '➡️ Engineering GmbH'); | ||
cy.get(':nth-child(3) > .flex-row > .text-3xl').should('contain.text', '👁️ AG'); | ||
}); | ||
|
||
it('empty list', () => { | ||
|
@@ -54,8 +54,8 @@ describe('Test billing entity list', () => { | |
cy.visit('/billingentities'); | ||
|
||
cy.get('#billingentities-title').should('contain.text', 'Billing'); | ||
cy.get(':nth-child(2) > .flex-row > .text-3xl').should('contain.text', 'be-2345'); | ||
cy.get(':nth-child(3) > .flex-row > .text-3xl').should('contain.text', 'be-2347'); | ||
cy.get(':nth-child(2) > .flex-row > .text-3xl').should('contain.text', '➡️ Engineering GmbH'); | ||
cy.get(':nth-child(3) > .flex-row > .text-3xl').should('contain.text', '👁️ AG'); | ||
}); | ||
}); | ||
|
||
|
@@ -132,10 +132,11 @@ describe('Test billing entity details', () => { | |
}); | ||
cy.visit('/billingentities/be-2345'); | ||
cy.get('.flex-wrap > .text-900').eq(0).should('contain.text', '➡️ Engineering GmbH'); | ||
cy.get('.flex-wrap > .text-900').eq(1).should('contain.text', '[email protected]'); | ||
cy.get('.flex-wrap > .text-900').eq(2).should('contain.text', '☎️'); | ||
cy.get('.flex-wrap > .text-900').eq(3).should('contain.text', '📃📋🏤 🏙️Switzerland'); | ||
cy.get('.flex-wrap > .text-900').eq(4).should('contain.text', 'mig [email protected]'); | ||
cy.get('.flex-wrap > .text-900').eq(5).should('contain.text', '🇩🇪'); | ||
cy.get('.flex-wrap > .text-900').eq(1).should('contain.text', 'be-2345'); | ||
cy.get('.flex-wrap > .text-900').eq(2).should('contain.text', '[email protected]'); | ||
cy.get('.flex-wrap > .text-900').eq(3).should('contain.text', '☎️'); | ||
cy.get('.flex-wrap > .text-900').eq(4).should('contain.text', '📃📋🏤 🏙️Switzerland'); | ||
cy.get('.flex-wrap > .text-900').eq(5).should('contain.text', 'mig [email protected]'); | ||
cy.get('.flex-wrap > .text-900').eq(6).should('contain.text', '🇩🇪'); | ||
}); | ||
}); |
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 |
---|---|---|
|
@@ -245,12 +245,13 @@ describe('Test billing entity create', () => { | |
cy.url().should('include', '/billingentities/be-2345').should('not.include', '?edit=y'); | ||
cy.get('.flex-wrap > .text-900').eq(0).should('contain.text', '➡️ Engineering GmbH'); | ||
|
||
cy.get('#title').should('contain.text', 'be-2345'); | ||
cy.get('.flex-wrap > .text-900').eq(1).should('contain.text', '[email protected]'); | ||
cy.get('.flex-wrap > .text-900').eq(2).should('contain.text', '☎️'); | ||
cy.get('.flex-wrap > .text-900').eq(3).should('contain.text', '📃📋🏤 🏙️Switzerland'); | ||
cy.get('.flex-wrap > .text-900').eq(4).should('contain.text', 'mig [email protected]'); | ||
cy.get('.flex-wrap > .text-900').eq(5).should('contain.text', '🇩🇪'); | ||
cy.get('#title').should('contain.text', '➡️ Engineering GmbH'); | ||
cy.get('.flex-wrap > .text-900').eq(1).should('contain.text', 'be-2345'); | ||
cy.get('.flex-wrap > .text-900').eq(2).should('contain.text', '[email protected]'); | ||
cy.get('.flex-wrap > .text-900').eq(3).should('contain.text', '☎️'); | ||
cy.get('.flex-wrap > .text-900').eq(4).should('contain.text', '📃📋🏤 🏙️Switzerland'); | ||
cy.get('.flex-wrap > .text-900').eq(5).should('contain.text', 'mig [email protected]'); | ||
cy.get('.flex-wrap > .text-900').eq(6).should('contain.text', '🇩🇪'); | ||
}); | ||
|
||
it('should forward to organizations if first time', () => { | ||
|
@@ -315,7 +316,7 @@ describe('Test billing entity edit', () => { | |
}).as('updateBillingEntity'); | ||
|
||
cy.visit('/billingentities/be-2345'); | ||
cy.get('#title').should('contain.text', 'be-2345'); | ||
cy.get('#title').should('contain.text', '➡️ Engineering GmbH'); | ||
|
||
cy.get('svg[class*="fa-pen-to-square"]').click(); | ||
|
||
|
@@ -364,19 +365,20 @@ describe('Test billing entity edit', () => { | |
cy.get('p-toast').should('contain.text', 'Successfully saved'); | ||
cy.url().should('include', '/billingentities/be-2345').should('not.include', '?edit=y'); | ||
// check values | ||
cy.get('#title').should('contain.text', 'be-2345'); | ||
cy.get('#title').should('contain.text', 'nxt Engineering'); | ||
cy.get('.flex-wrap > .text-900').eq(0).should('contain.text', 'nxt Engineering'); | ||
cy.get('.flex-wrap > .text-900').eq(1).should('contain.text', 'be-2345'); | ||
cy.get('.flex-wrap > .text-900') | ||
.eq(1) | ||
.eq(2) | ||
.should('contain.text', '[email protected]') | ||
.should('contain.text', '[email protected]'); | ||
cy.get('.flex-wrap > .text-900').eq(2).should('contain.text', '1234'); | ||
cy.get('.flex-wrap > .text-900').eq(3).should('contain.text', '1234'); | ||
cy.get('.flex-wrap > .text-900') | ||
.eq(3) | ||
.eq(4) | ||
.should('contain.text', 'line1') | ||
.should('contain.text', '4321 Berlin') | ||
.should('contain.text', 'Germany'); | ||
cy.get('.flex-wrap > .text-900').eq(4).should('contain.text', 'crc [email protected]'); | ||
cy.get('.flex-wrap > .text-900').eq(5).should('contain.text', '🇩🇪'); | ||
cy.get('.flex-wrap > .text-900').eq(5).should('contain.text', 'crc [email protected]'); | ||
cy.get('.flex-wrap > .text-900').eq(6).should('contain.text', '🇩🇪'); | ||
}); | ||
}); |
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
Oops, something went wrong.