Skip to content

Commit

Permalink
test fixes for 7.21.2 (#3700)
Browse files Browse the repository at this point in the history
OKTA-796074 chore(test): quarantine flaky tests
  • Loading branch information
lesterchoi-okta authored Aug 23, 2024
1 parent 9e37069 commit 9eea0c5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions test/testcafe/spec/DeviceChallengePollView_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,9 @@ test
})).eql(1);
});

test
.requestHooks(loopbackPollTimeoutLogger, loopbackPollTimeoutMock).skip('new poll does not starts until last one is ended', async t => {
// FIXME quarantined test OKTA-796308
test.skip
.requestHooks(loopbackPollTimeoutLogger, loopbackPollTimeoutMock)('new poll does not starts until last one is ended', async t => {
await setup(t);
await checkA11y(t);
// This test verify if new /poll calls are made only if the previous one was finished instead of polling with fixed interval.
Expand All @@ -532,7 +533,9 @@ test
)).eql(2);
});

test

// FIXME quarantined test OKTA-796307
test.skip
.requestHooks(loopbackChallengeErrorLogger, loopbackChallengeErrorMock)('in loopback server approach, will cancel polling when challenge errors out', async t => {
const deviceChallengePollPageObject = await setup(t);
await checkA11y(t);
Expand Down Expand Up @@ -571,7 +574,8 @@ test
await t.expect(loopbackChallengeErrorLogger.contains(record => record.request.url.match(/6512|6513/))).eql(false);
});

test
// FIXME quarantined test OKTA-796315
test.skip
.requestHooks(loopbackChallengeWrongProfileLogger, loopbackChallengeWrongProfileMock)('in loopback server approach, will cancel polling when challenge errors out with non-503 status', async t => {
const deviceChallengePollPageObject = await setup(t);
await checkA11y(t);
Expand Down Expand Up @@ -611,7 +615,8 @@ test
)).eql(1);
});

test
// FIXME quarantined test OKTA-796324
test.skip
.requestHooks(loopbackSuccessButNotAssignedLogger, loopbackSuccessButNotAssignedAppMock)('loopback succeeds but user is not assigned to app, then clicks cancel link', async t => {
const deviceChallengePollPageObject = await setup(t);
await checkA11y(t);
Expand Down

0 comments on commit 9eea0c5

Please sign in to comment.