Clicking Okta input type 'submit' doesn't trigger authentication when Native Automation is enabled #8296
Labels
STATE: Need clarification
An issue lacks information for further research.
STATE: Need simple sample
A simple sample is required to examine the issue.
TYPE: bug
The described behavior is considered as wrong (bug).
What is your Scenario?
I am automating an internal website that uses an Okta login screen for authentication.
What is the Current behavior?
When Native Automation is enabled (by default for TestCafe), clicking the Sign In button doesn't trigger the authentication to log in and navigate to the home page of the site.
I had to set 'disableNativeAutomation' to false in my config file to be able to log into the site.
What is the Expected behavior?
Clicking the Sign In element of an Okta page triggers the authentication check and logs the user in while Native Automation is enabled for TestCafe.
What is the public URL of the test page? (attach your complete example)
Since this is an internal website and requires VPN access, as well as being an Okta sign in page, I cannot provide you the URL. Here is the form that contains all of the elements needed to sign into the site.
Sign in to EPI
What is your TestCafe test code?
test('Login', async t => {
await t
.typeText('#okta-signin-username', 'asdf')
.typeText('#okta-signin-password', 'asdf')
.click('#okta-signin-submit')
})
Your complete configuration file
module.exports = {
src: "tests/test.js",
browsers: ["chrome"],
selectorTimeout: "5000",
assertionTimeout: "5000",
pageLoadTimeout: "30000",
preserveUrl: true,
disableNativeAutomation: true
}
Your complete test report
Running tests in:
Getting Started
× Login
AssertionError: expected false to be truthy
Browser: Chrome 129.0.0.0 / Windows 11
13 |
14 |
15 | let welcomeUser = Selector('.welcome-container').find('span').withText('Welcome, asdf')
16 |
17 | await t
Screenshots
No response
Steps to Reproduce
Expected: Authentication is triggered and user is logged in
Actual: Authentication is not triggered and user is not logged in
Workaround: Disabling Native Automation for testcafe and running the login method triggers authentication and the user is logged in.
TestCafe version
3.6.2
Node.js version
v20.18.0
Command-line arguments
testcafe
Browser name(s) and version(s)
Chrome 129.0.0.0
Platform(s) and version(s)
WIndows 11
Other
No response
The text was updated successfully, but these errors were encountered: