Rebrand to Syncfuse

This commit is contained in:
DinuraSellapperuma 2026-02-12 14:09:22 +05:30
parent 0a09df5470
commit 92025c9dba
144 changed files with 1796 additions and 1977 deletions

View file

@ -1,36 +1,34 @@
describe('Login tests', () => {
describe("Login tests", () => {
beforeEach(() => {
cy.visit('/login');
cy.visit("/login");
});
it(
'logs user in with correct credentials and logs user out',
"logs user in with correct credentials and logs user out",
{
defaultCommandTimeout: 10000,
},
() => {
cy.getDataTest('input-username').find('input').as('inputUsername').click();
cy.get('@inputUsername').type(Cypress.env('umami_user'), { delay: 0 });
cy.get('@inputUsername').click();
cy.getDataTest('input-password')
.find('input')
.type(Cypress.env('umami_password'), { delay: 0 });
cy.getDataTest('button-submit').click();
cy.url().should('eq', Cypress.config().baseUrl + '/dashboard');
cy.getDataTest("input-username").find("input").as("inputUsername").click();
cy.get("@inputUsername").type(Cypress.env("syncfuse_user"), { delay: 0 });
cy.get("@inputUsername").click();
cy.getDataTest("input-password").find("input").type(Cypress.env("syncfuse_password"), { delay: 0 });
cy.getDataTest("button-submit").click();
cy.url().should("eq", Cypress.config().baseUrl + "/dashboard");
cy.logout();
},
);
it('login with blank inputs or incorrect credentials', () => {
cy.getDataTest('button-submit').click();
cy.contains(/Required/i).should('be.visible');
it("login with blank inputs or incorrect credentials", () => {
cy.getDataTest("button-submit").click();
cy.contains(/Required/i).should("be.visible");
cy.getDataTest('input-username').find('input').as('inputUsername');
cy.get('@inputUsername').click();
cy.get('@inputUsername').type(Cypress.env('umami_user'), { delay: 0 });
cy.get('@inputUsername').click();
cy.getDataTest('input-password').find('input').type('wrongpassword', { delay: 0 });
cy.getDataTest('button-submit').click();
cy.contains(/Incorrect username and\/or password./i).should('be.visible');
cy.getDataTest("input-username").find("input").as("inputUsername");
cy.get("@inputUsername").click();
cy.get("@inputUsername").type(Cypress.env("syncfuse_user"), { delay: 0 });
cy.get("@inputUsername").click();
cy.getDataTest("input-password").find("input").type("wrongpassword", { delay: 0 });
cy.getDataTest("button-submit").click();
cy.contains(/Incorrect username and\/or password./i).should("be.visible");
});
});