Skip to content

Commit

Permalink
Correction after feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
wg102 committed Jun 10, 2024
1 parent 6f1be95 commit e87d46d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
6 changes: 1 addition & 5 deletions components/centraldashboard/cypress/e2e/landing-page.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('Landing Page', () => {
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable > div > #namespaceDisplay').find('span').should('exist').and('have.text', 'user-name');
});

it('should email keep number', ()=>{
it('Email number should stay in namespace', ()=>{
cy.intercept('GET', `/api/workgroup/exists`, {
"hasAuth":true,
"user":"[email protected]",
Expand All @@ -36,10 +36,6 @@ describe('Landing Page', () => {
cy.visit('/');

cy.wait(['@mockWorkgroupRequest', '@mockDashboardLinksRequest']);
cy.get('main-page').shadow().find('blocked-user-view').should('not.be.visible');
cy.get('main-page').shadow().find('landing-page').should('exist');
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable > h2').should('have.text', 'Welcome');
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable > p').find('a').should('exist').and('have.prop', 'href', 'https://zone.pages.cloud.statcan.ca/docs/en/');
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable > div > #emailDisplay').find('span').should('exist').and('have.text', '[email protected]');
cy.get('main-page').shadow().find('landing-page').shadow().find('#MainCard > neon-animatable > div > #namespaceDisplay').find('span').should('exist').and('have.text', 'user-name1');
});
Expand Down
2 changes: 0 additions & 2 deletions components/centraldashboard/public/assets/i18n/languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"landingPage.errCreateNS": "An error occured while creating the workspace.",
"landingPage.errGetNS": "An error occured while trying to retrieve the workspace",
"landingPage.errCreateDefaultNotebook": "An error occured while trying to create the default notebook",
"landingPage.errGeneral": "An unexpected error occured, details available in English:",
"blockedUserPage.text": "The dev environment is only accessible to developers.",
"notebookDefaultCard.goto": "Go to Notebooks",
"notebookDefaultCard.create": "Create",
Expand Down Expand Up @@ -222,7 +221,6 @@
"landingPage.errCreateNS": "Une erreur s'est produite lors de la création de l'espace de travail.",
"landingPage.errGetNS": "Une erreur s'est produite lors de la tentative de récupération de l'espace de travail",
"landingPage.errCreateDefaultNotebook": "Une erreur s'est produite lors de la tentative de création du notebook par défaut",
"landingPage.errGeneral": "Une erreur inattendue s'est produite, détails disponibles en anglais :",
"blockedUserPage.text": "L'environment Dev est seulement pour les développeurs.",
"registrationPage.btnNext": "Suivant",
"registrationPage.btnStartSetup": "Commencer",
Expand Down
3 changes: 0 additions & 3 deletions components/centraldashboard/public/components/landing-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export class LandingPage extends mixinBehaviors([AppLocalizeBehavior], utilities
emailAddress: {type: String, observer: '_onEmailAddress'},
namespaceName: String,
errorText: {type: String, value: ''},
errorDetail: {type: String, value: ''},
flowComplete: {type: Boolean, value: false},
loading: {type: Boolean, value: false},
isStatcanEmail: {type: Boolean, value: false},
Expand Down Expand Up @@ -117,12 +116,10 @@ export class LandingPage extends mixinBehaviors([AppLocalizeBehavior], utilities
showError(err) {
this.loading = false;
this.errorText = err;
this.errorDetail = '';
}

closeError() {
this.errorText = '';
this.errorDetail = '';
}

_onCreateNamespaceError() {
Expand Down

0 comments on commit e87d46d

Please sign in to comment.