Skip to content

Commit

Permalink
Attempt to fix flaky tests logging into SFDC
Browse files Browse the repository at this point in the history
  • Loading branch information
paustint committed Nov 20, 2024
1 parent 2dffe90 commit 70d60a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/jetstream-e2e/src/pageObjectModels/OrganizationsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export class OrganizationsPage {

const salesforcePage = await salesforcePagePromise;

// Sometimes SFDC clears the values from the form if they are typed in too quickly
// eslint-disable-next-line playwright/no-wait-for-timeout
await salesforcePage.waitForTimeout(1000);

await salesforcePage.getByLabel('Username').click();
await salesforcePage.getByLabel('Username').fill(username);

Expand Down

0 comments on commit 70d60a5

Please sign in to comment.