Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable e2e tests on SauceLabs in IE11 for Gen3 and Gen2 #3669

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

denysoblohin-okta
Copy link
Contributor

Description:

PR Checklist

Issue:

Reviewers:

Screenshot/Video:

Downstream Monolith Build:

@@ -2,10 +2,16 @@
const path = require('path');
require('@okta/env').config();

// You can use Firefox for e2e testing locally if there is an issue with `chromedriver`
// You need to have `geckodriver` process running (https://github.com/mozilla/geckodriver/releases)
const USE_FIREFOX = !!process.env.USE_FIREFOX;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added Firefox support for local testing due to issues with chromedriver (drivers for Chrome 115+ moved to new URL so need to update wdio/* to support new Chtome locally)

@@ -39,9 +41,7 @@ export TARGET="CROSS_BROWSER"
export USE_MIN=1
if ! yarn test:e2e; then
echo "e2e saucelabs test failed! Exiting..."
exit ${TEST_FAILURE}
exit ${PUBLISH_TYPE_AND_RESULT_DIR_BUT_ALWAYS_FAIL}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To save screenshots on fail

});

After(async () => {
await browser.deleteCookies();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes more sense to move cookies deletion after logout

build only gen3

test only ie11

test 1 only

test - should fail on IE11

test signup flow

test all flows w/o ie.ensureCleanSession

fix?

revert clear session

test1

test2

test retry

test - no logout

reloadSession

remove retry

await saveScreenshot + catch

restore logout + secreenshot

test - only resetPassword

all flows

fix

remove reloadsession

enable safari and edge

fix iPad and timeouts

add browserName to creenshot name

enbale gen3 @ ipad

log screenshot error

reloadSession @ before

specFileRetries: 1,

clean
@denysoblohin-okta denysoblohin-okta force-pushed the od-e2e-gen3-ie11-OKTA-738533 branch 2 times, most recently from 7bc91ac to 5193295 Compare July 4, 2024 09:14
try timeouts

try driver version

test  avoidProxy: true

.
@@ -6,11 +6,13 @@ source $OKTA_HOME/$REPO/scripts/setup.sh
setup_service java 1.8.222
setup_service google-chrome-stable 89.0.4389.72-1

export RUN_SAUCE_TESTS=true
export RUN_SAUCE_TESTS=ie11,edge
Copy link
Contributor Author

@denysoblohin-okta denysoblohin-okta Jul 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RUN_SAUCE_TESTS can be list of ie11, edge, mobile separated with ,

mobile is not included here (and ine2e-saucelabs-v3 as well) because it's flaky (iPad can show "Let's browse!" message for localhost instead of rendering test app), and there is a separate Bacon test named e2e-saucelabs-mobile that runs tests specially for mobile platforms

Question: do we need edge? Since MS Edge is based on Chromium.

Revert "removed java and chrome for saucelab tests"

This reverts commit 10a0791.

removed chrome from saucelabs
@denysoblohin-okta denysoblohin-okta changed the title Enable e2e tests on SauceLabs in IE11 for Gen3 Enable e2e tests on SauceLabs in IE11 for Gen3 and Gen2 Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant