mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-22 14:13:36 -07:00
fixed tests
This commit is contained in:
parent
87fbf2c193
commit
5dfa123dcb
3 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://on.cypress.io/cypress.schema.json",
|
"$schema": "https://on.cypress.io/cypress.schema.json",
|
||||||
"supportFile": "cypress/support/index.ts",
|
"supportFile": "cypress/support/index.ts",
|
||||||
"baseUrl": "http://localhost:5000",
|
"baseUrl": "http://localhost:3577",
|
||||||
"integrationFolder": "cypress/tests",
|
"integrationFolder": "cypress/tests",
|
||||||
"testFiles": "**/*.spec.ts*",
|
"testFiles": "**/*.spec.ts*",
|
||||||
"watchForFileChanges": true,
|
"watchForFileChanges": true,
|
||||||
|
|
|
@ -12,8 +12,8 @@ const langs = [
|
||||||
];
|
];
|
||||||
|
|
||||||
langs.forEach((l) => {
|
langs.forEach((l) => {
|
||||||
it(`Change language to ${l.code}, UI should update`, () => {
|
it.only(`Change language to ${l.code}, UI should update`, () => {
|
||||||
cy.intercept('POST','/language').as('langSave');
|
cy.intercept('POST','**/language').as('langSave');
|
||||||
Page.visit();
|
Page.visit();
|
||||||
|
|
||||||
Page.profile.languageSelectBox.click();
|
Page.profile.languageSelectBox.click();
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('User Management Page', () => {
|
||||||
// Setup the form
|
// Setup the form
|
||||||
cy.get('#username').type(username);
|
cy.get('#username').type(username);
|
||||||
cy.get('#alias').type("alias1");
|
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('#password').type("password");
|
||||||
cy.get('#confirmPass').type("password");
|
cy.get('#confirmPass').type("password");
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ describe('User Management Page', () => {
|
||||||
// Setup the form
|
// Setup the form
|
||||||
cy.get('#username').type("user1");
|
cy.get('#username').type("user1");
|
||||||
cy.get('#alias').type("alias1");
|
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('#password').type("password");
|
||||||
cy.get('#confirmPass').type("password");
|
cy.get('#confirmPass').type("password");
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ describe('User Management Page', () => {
|
||||||
// Setup the form
|
// Setup the form
|
||||||
cy.get('#username').type("user1");
|
cy.get('#username').type("user1");
|
||||||
cy.get('#alias').type("alias1");
|
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('#password').type("password");
|
||||||
cy.get('#confirmPass').type("pass22word");
|
cy.get('#confirmPass').type("pass22word");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue