Skip to content

Commit

Permalink
Stabilize klarna e2e test driver
Browse files Browse the repository at this point in the history
ISSUE: ADPM-34
  • Loading branch information
goran-stamenkovski-logeecom committed Oct 11, 2023
1 parent 877368b commit d100336
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extension/test/e2e/pageObjects/KlarnaAuthenticationPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ export default class KlarnaAuthenticationPage {
await klarnaIframe.waitForSelector('#otp_field')
await klarnaIframe.type('#otp_field', '123456')

// Sleep before final searching for iban field because klarna uses some effects for rendering.
// We just need to wait for effect to finish.
await this.page.waitForTimeout(1_000)
await klarnaIframe.waitForSelector('[data-testid="pick-plan"]')
await klarnaIframe.click('#directdebit\\.0-ui button[role="option"]')
await klarnaIframe.click('[data-testid="pick-plan"]')
Expand Down

0 comments on commit d100336

Please sign in to comment.