mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
wait for text to appear
This commit is contained in:
parent
ae781ff0d4
commit
632a2b00c5
@ -16,9 +16,12 @@ describe('Boot', function() {
|
|||||||
afterEach(() => gu.checkForErrors());
|
afterEach(() => gu.checkForErrors());
|
||||||
|
|
||||||
async function hasPrompt() {
|
async function hasPrompt() {
|
||||||
assert.include(
|
// There is some glitchiness to when the text appears.
|
||||||
await driver.findContentWait('pre', /GRIST_BOOT_KEY/, 2000).getText(),
|
gu.waitToPass(async () => {
|
||||||
'GRIST_BOOT_KEY=secret');
|
assert.include(
|
||||||
|
await driver.findContentWait('pre', /GRIST_BOOT_KEY/, 2000).getText(),
|
||||||
|
'GRIST_BOOT_KEY=secret');
|
||||||
|
}, 3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
it('tells user about /admin', async function() {
|
it('tells user about /admin', async function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user