Browse Source

Updated fixed files

Signed-off-by: roman-rezinkin <roman.rezinkin@hotmail.com>
pull/632/head
roman-rezinkin 3 years ago
parent
commit
9a2eddb197
  1. 4
      cypress/support/commands.js
  2. 2
      cypress/support/page_objects/mainPage.js
  3. 4
      cypress/support/page_objects/navigation.js
  4. 2
      packages/nocodb/src/lib/public/index.html

4
cypress/support/commands.js

@ -52,13 +52,13 @@ Cypress.Commands.add('signinOrSignup', (_args) => {
cy.wait(8000); cy.wait(8000);
cy.get('body').trigger('mousemove'); cy.get('body').trigger('mousemove');
cy.contains('Let\'s Begin').click(); cy.contains('Let\'s Begin').click();
cy.get('input[type="text"]', { timeout: 12000 }).type(args.username); cy.get('input[type="email"]', { timeout: 12000 }).type(args.username);
cy.get('input[type="password"]').type(args.password); cy.get('input[type="password"]').type(args.password);
cy.get('button:contains("SIGN UP")').click() cy.get('button:contains("SIGN UP")').click()
// handle signin // handle signin
} else { } else {
cy.get('input[type="text"]', { timeout: 12000 }).type(args.username); cy.get('input[type="email"]', { timeout: 12000 }).type(args.username);
cy.get('input[type="password"]').type(args.password); cy.get('input[type="password"]').type(args.password);
cy.get('button:contains("SIGN IN")').click() cy.get('button:contains("SIGN IN")').click()
} }

2
cypress/support/page_objects/mainPage.js

@ -71,7 +71,7 @@ export class _mainPage {
// Redirected to new URL, feed details // Redirected to new URL, feed details
// //
cy.get('input[type="text"]').type(userCred.username) cy.get('input[type="email"]').type(userCred.username)
cy.get('input[type="password"]').type(userCred.password) cy.get('input[type="password"]').type(userCred.password)
cy.get('button:contains("SIGN UP")').click() cy.get('button:contains("SIGN UP")').click()

4
cypress/support/page_objects/navigation.js

@ -26,7 +26,7 @@ export class _loginPage {
signIn(userCredentials) { signIn(userCredentials) {
this.go(urlPool.ncUrlSignIn) this.go(urlPool.ncUrlSignIn)
cy.get('input[type="text"]', {timeout: 6000}).type(userCredentials.username) cy.get('input[type="email"]', {timeout: 6000}).type(userCredentials.username)
cy.get('input[type="password"]').type(userCredentials.password) cy.get('input[type="password"]').type(userCredentials.password)
cy.get('button:contains("SIGN IN")').click() cy.get('button:contains("SIGN IN")').click()
@ -38,7 +38,7 @@ export class _loginPage {
signUp(userCredentials) { signUp(userCredentials) {
this.go(urlPool.ncUrlSignUp) this.go(urlPool.ncUrlSignUp)
cy.get('input[type="text"]', {timeout: 6000}).type(userCredentials.username) cy.get('input[type="email"]', {timeout: 6000}).type(userCredentials.username)
cy.get('input[type="password"]').type(userCredentials.password) cy.get('input[type="password"]').type(userCredentials.password)
cy.get('button:contains("SIGN UP")').click() cy.get('button:contains("SIGN UP")').click()

2
packages/nocodb/src/lib/public/index.html

@ -371,7 +371,7 @@
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true"> <div style="position: absolute; left: -5000px;" aria-hidden="true">
<input <input
type="text" type="email"
name="b_34a5d2680bab8825d485af859_f04c6c8b8d" name="b_34a5d2680bab8825d485af859_f04c6c8b8d"
tabindex="-1" value=""></div> tabindex="-1" value=""></div>

Loading…
Cancel
Save