Updated the credentials

This commit is contained in:
evrifaessa committed 2023-02-06 16:47:46 +03:00
1 parent 967d189c4c
commit cd295c7dcf
4 files changed
+7 -6

No files matched your search

+5 -4
View File
@@ -4,14 +4,15 @@ module.exports = defineConfig({
e2e: {
baseUrl: 'http://localhost',
experimentalStudio: true,
experimentalRunAllSpecs: true,
credentials: {
staff: {
email: "bb@bb.com",
password: "Bb123123+"
email: "admin@fossbilling.org",
password: "Admin123+"
},
client: {
email: "bb@bb.com",
password: "Bb123123+"
email: "client@fossbilling.org",
password: "Client123+"
}
}
},
+2 -2
View File
@@ -13,7 +13,7 @@ Cypress.Commands.add('staffLogin', (username, password) => {
cy.get('.btn').click();
cy.url().should('include', '/admin/index')
cy.url().should('eq', `${Cypress.config().baseUrl}/admin/index`)
},
{
validate: () => {
@@ -38,7 +38,7 @@ Cypress.Commands.add('clientLogin', (username, password) => {
cy.get('.btn').click();
cy.url().should('include', '/')
cy.url().should('eq', `${Cypress.config().baseUrl}/`)
},
{
validate: () => {