mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Fixing flaky tests.
This commit is contained in:
parent
349c8acfdc
commit
07f5f86620
@ -29,6 +29,13 @@ describe('ActionLog', function() {
|
|||||||
await gu.dismissWelcomeTourIfNeeded();
|
await gu.dismissWelcomeTourIfNeeded();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
after(async function() {
|
||||||
|
// If were are debugging the browser won't be reloaded, so we need to close the right panel.
|
||||||
|
if (process.env.NO_CLEANUP) {
|
||||||
|
await driver.find(".test-right-tool-close").click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
it("should cross out undone actions", async function() {
|
it("should cross out undone actions", async function() {
|
||||||
// Open the action-log tab.
|
// Open the action-log tab.
|
||||||
await driver.findWait('.test-tools-log', 1000).click();
|
await driver.findWait('.test-tools-log', 1000).click();
|
||||||
|
@ -268,6 +268,8 @@ describe('CustomView', function() {
|
|||||||
const mainSession = await gu.session().teamSite.login();
|
const mainSession = await gu.session().teamSite.login();
|
||||||
await mainSession.tempDoc(cleanup, 'TypeEncoding.grist');
|
await mainSession.tempDoc(cleanup, 'TypeEncoding.grist');
|
||||||
await gu.toggleSidePanel('right', 'open');
|
await gu.toggleSidePanel('right', 'open');
|
||||||
|
await driver.find('.test-right-tab-pagewidget').click();
|
||||||
|
await gu.waitForServer();
|
||||||
await driver.find('.test-config-data').click();
|
await driver.find('.test-config-data').click();
|
||||||
|
|
||||||
// The test doc already has a Custom View widget. It just needs to
|
// The test doc already has a Custom View widget. It just needs to
|
||||||
|
@ -188,7 +188,9 @@ describe('CustomWidgets', function () {
|
|||||||
const reject = () => driver.find(".test-config-widget-access-reject").click();
|
const reject = () => driver.find(".test-config-widget-access-reject").click();
|
||||||
|
|
||||||
it('should show widgets in dropdown', async () => {
|
it('should show widgets in dropdown', async () => {
|
||||||
await gu.toggleSidePanel('right');
|
await gu.toggleSidePanel('right', 'open');
|
||||||
|
await driver.find('.test-right-tab-pagewidget').click();
|
||||||
|
await gu.waitForServer();
|
||||||
await driver.find('.test-config-widget').click();
|
await driver.find('.test-config-widget').click();
|
||||||
await gu.waitForServer(); // Wait for widgets to load.
|
await gu.waitForServer(); // Wait for widgets to load.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user