-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into julien/fix-multilanguage
- Loading branch information
Showing
21 changed files
with
117 additions
and
98 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 |
---|---|---|
|
@@ -9,3 +9,4 @@ tmp/ | |
|
||
# Ignore certain project files | ||
docs/assets/js/ | ||
apps/dsp-app/cypress/ |
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 |
---|---|---|
|
@@ -59,4 +59,4 @@ Thumbs.db | |
|
||
#E2E | ||
/.nx | ||
apps/dsp-app-e2e/cypress/screenshots | ||
apps/dsp-app/cypress/screenshots |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,15 @@ | ||
describe('Visual Check for Projects on Home Page', () => { | ||
it.skip('should load clickable projects on the home page', () => { | ||
cy.visit('/'); | ||
|
||
cy.get('[data-cy=accept-cookies]').click(); | ||
|
||
const projectTileSelector = '[data-cy=tile]'; | ||
|
||
cy.get(projectTileSelector).should('be.visible').should('have.length.greaterThan', 0); | ||
|
||
cy.get(projectTileSelector).first().find('[data-cy=navigate-to-project-button]').click(); | ||
|
||
cy.url().should('include', '/project'); // Update with the expected URL | ||
}); | ||
}); |
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,15 @@ | ||
const MY_TOKEN = ''; | ||
localStorage.setItem('ACCESS_TOKEN', MY_TOKEN); | ||
|
||
describe('ADMIN TEST', () => { | ||
it('should load clickable projects on the home page', () => { | ||
cy.visit('/'); | ||
const projectTileSelector = '[data-cy=tile]'; | ||
|
||
cy.get(projectTileSelector).should('be.visible').should('have.length.greaterThan', 0); | ||
|
||
cy.get(projectTileSelector).first().find('[data-cy=navigate-to-project-button]').click(); | ||
|
||
cy.url().should('include', '/project'); // Update with the expected URL | ||
}); | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
import { User } from '../../models/user-profiles'; | ||
|
||
Cypress.Commands.add('login', (user: User) => { | ||
cy.session( | ||
user, | ||
() => { | ||
cy.request({ | ||
method: 'POST', | ||
url: `${Cypress.env('apiUrl')}/v2/authentication`, | ||
body: { | ||
username: user.username, | ||
password: user.password, | ||
}, | ||
}).then(response => { | ||
localStorage.setItem('cookieBanner', 'false'); | ||
localStorage.setItem('ACCESS_TOKEN', response.body.token); | ||
}); | ||
}, | ||
{ | ||
validate: () => { | ||
expect(localStorage.getItem('ACCESS_TOKEN')).to.exist; | ||
}, | ||
} | ||
); | ||
}); |
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,13 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"include": [ | ||
"**/*.ts" | ||
], | ||
"exclude": [], | ||
"compilerOptions": { | ||
"sourceMap": false, | ||
"types": [ | ||
"cypress" | ||
] | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { defineConfig } from "cypress"; | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
setupNodeEvents(on, config) { | ||
// implement node event listeners here | ||
}, | ||
}, | ||
}); |
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