mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Ensure tests pass when pointing at a remote server
no issue This will need some work, since we are introducing a 500ms delay to wait for a network request to return. Ideally the tier expander should eventually populate itself.
This commit is contained in:
parent
47526bc175
commit
7bfe5db716
@ -138,7 +138,7 @@ const createTier = async (page, {name, monthlyPrice, yearlyPrice}) => {
|
||||
await page.locator('.gh-setting-group').filter({hasText: 'Membership'}).click();
|
||||
// Expand the premium tier list
|
||||
await page.getByRole('button', {name: 'Expand'}).nth(1).click({
|
||||
delay: 50 // TODO: Figure out how to prevent this from opening with an empty list without using delay
|
||||
delay: 500 // TODO: Figure out how to prevent this from opening with an empty list without using delay
|
||||
});
|
||||
|
||||
// Archive if already exists
|
||||
@ -147,6 +147,7 @@ const createTier = async (page, {name, monthlyPrice, yearlyPrice}) => {
|
||||
await tierCard.locator('.gh-tier-card-actions-button').click();
|
||||
await tierCard.getByRole('button', {name: 'Archive'}).click();
|
||||
await page.locator('.modal-content').getByRole('button', {name: 'Archive'}).click();
|
||||
await page.locator('.modal-content').waitFor({state: 'detached', timeout: 1000});
|
||||
}
|
||||
|
||||
await page.locator('.gh-btn-add-tier').click();
|
||||
|
Loading…
Reference in New Issue
Block a user