-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1431 correct flakey tests, increase fetch upcoming invoices wait tim…
…e (to give time for invoices to be created at stripes end
- Loading branch information
1 parent
afbb2ae
commit 8dfb48e
Showing
5 changed files
with
52 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ var admin_login = async function (page) { | |
await page.fill('#email', '[email protected]'); | ||
await page.fill('#password', 'password'); | ||
await page.click('#login'); | ||
await page.goto(process.env['PLAYWRIGHT_HOST'] + '/admin/dashboard'); | ||
} | ||
|
||
|
||
|
5 changes: 3 additions & 2 deletions
5
tests/browser-automated-tests-playwright/e2e/features/fetch_upcomming_invoices.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
var fetch_upcomming_invoices = async function (page) { | ||
// Go to upcoming payments and ensure plan is attached to upcoming invoice | ||
await page.goto('/admin/upcoming-invoices'); | ||
await new Promise(x => setTimeout(x, 25000)); | ||
await new Promise(x => setTimeout(x, 35000)); | ||
await page.click('#fetch_upcoming_invoices'); | ||
await new Promise(x => setTimeout(x, 20000)); | ||
await new Promise(x => setTimeout(x, 30000)); | ||
await page.reload(); | ||
} | ||
|
||
module.exports.fetch_upcomming_invoices = fetch_upcomming_invoices; |