You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m facing an issue while trying to use cy.origin() in combination with otplib for 2-factor authentication in my Cypress tests. Despite enabling the experimentalOriginDependencies flag, I'm encountering errors related to process is not defined and challenges with passing dependencies correctly.
for above problem create a question for cypress discussion channel
Sure! Here's a draft of a question you can post on the Cypress discussion channel:
Title: Issue with cy.origin() and otplib Integration in Cypress Tests
Body:
Hello Cypress Community,
I’m facing an issue while trying to use cy.origin() in combination with otplib for 2-factor authentication in my Cypress tests. Despite enabling the experimentalOriginDependencies flag, I'm encountering errors related to process is not defined and challenges with passing dependencies correctly.
Here's the relevant part of my code:
javascript
import data from "../../fixtures/user.json";
I've made sure that:
The experimentalOriginDependencies flag is enabled in cypress.json.
Cypress.require() is used inside the cy.origin() callback.
Despite these efforts, the process is not defined error persists. Any insights or suggestions on properly passing dependencies and handling this issue within the cy.origin() block would be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello Cypress Community,
I’m facing an issue while trying to use cy.origin() in combination with otplib for 2-factor authentication in my Cypress tests. Despite enabling the experimentalOriginDependencies flag, I'm encountering errors related to process is not defined and challenges with passing dependencies correctly.
Here's the relevant part of my code:
import data from "../../fixtures/user.json";
class LoginPage {
webLocators = {
username: '#awsui-input-0',
password: '#awsui-input-1',
nextbtn: '.awsui-button',
submitbtn: 'button[type="submit"]',
Authenticatorbtn: "input[value='TOTP']",
Pointer: "a[class='pointer']",
secretkeylink: "span[class='secret-key awsui-util-mr-s']",
Inputsecter: 'input[type="text"]'
}
}
export default new LoginPage();
for above problem create a question for cypress discussion channel
Sure! Here's a draft of a question you can post on the Cypress discussion channel:
Title: Issue with cy.origin() and otplib Integration in Cypress Tests
Body:
Hello Cypress Community,
I’m facing an issue while trying to use cy.origin() in combination with otplib for 2-factor authentication in my Cypress tests. Despite enabling the experimentalOriginDependencies flag, I'm encountering errors related to process is not defined and challenges with passing dependencies correctly.
Here's the relevant part of my code:
javascript
import data from "../../fixtures/user.json";
class LoginPage {
webLocators = {
username: '#awsui-input-0',
password: '#awsui-input-1',
nextbtn: '.awsui-button',
submitbtn: 'button[type="submit"]',
Authenticatorbtn: "input[value='TOTP']",
Pointer: "a[class='pointer']",
secretkeylink: "span[class='secret-key awsui-util-mr-s']",
Inputsecter: 'input[type="text"]'
}
}
export default new LoginPage();
I've made sure that:
The experimentalOriginDependencies flag is enabled in cypress.json.
Cypress.require() is used inside the cy.origin() callback.
Despite these efforts, the process is not defined error persists. Any insights or suggestions on properly passing dependencies and handling this issue within the cy.origin() block would be greatly appreciated.
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions