fixed tests

This commit is contained in:
tidusjar 2022-08-09 14:40:56 +01:00
commit 5dfa123dcb
3 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
{
"$schema": "https://on.cypress.io/cypress.schema.json",
"supportFile": "cypress/support/index.ts",
"baseUrl": "http://localhost:5000",
"baseUrl": "http://localhost:3577",
"integrationFolder": "cypress/tests",
"testFiles": "**/*.spec.ts*",
"watchForFileChanges": true,

View file

@ -12,8 +12,8 @@ const langs = [
];
langs.forEach((l) => {
it(`Change language to ${l.code}, UI should update`, () => {
cy.intercept('POST','/language').as('langSave');
it.only(`Change language to ${l.code}, UI should update`, () => {
cy.intercept('POST','**/language').as('langSave');
Page.visit();
Page.profile.languageSelectBox.click();

View file

@ -28,7 +28,7 @@ describe('User Management Page', () => {
// Setup the form
cy.get('#username').type(username);
cy.get('#alias').type("alias1");
cy.get('#emailAddress').type(username + "@emailaddress.com");
cy.get('#emailAddress').type(username + "@emailaddress.com", { force: true });
cy.get('#password').type("password");
cy.get('#confirmPass').type("password");
@ -54,7 +54,7 @@ describe('User Management Page', () => {
// Setup the form
cy.get('#username').type("user1");
cy.get('#alias').type("alias1");
cy.get('#emailAddress').type("user1@emailaddress.com");
cy.get('#emailAddress').type("user1@emailaddress.com", { force: true });
cy.get('#password').type("password");
cy.get('#confirmPass').type("password");
@ -72,7 +72,7 @@ describe('User Management Page', () => {
// Setup the form
cy.get('#username').type("user1");
cy.get('#alias').type("alias1");
cy.get('#emailAddress').type("user1@emailaddress.com");
cy.get('#emailAddress').type("user1@emailaddress.com", { force: true });
cy.get('#password').type("password");
cy.get('#confirmPass').type("pass22word");