Fixing flaky tests.

This commit is contained in:
Jarosław Sadziński 2022-12-09 20:15:08 +01:00
parent 349c8acfdc
commit 07f5f86620
3 changed files with 12 additions and 1 deletions

View File

@ -29,6 +29,13 @@ describe('ActionLog', function() {
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() {
// Open the action-log tab.
await driver.findWait('.test-tools-log', 1000).click();

View File

@ -268,6 +268,8 @@ describe('CustomView', function() {
const mainSession = await gu.session().teamSite.login();
await mainSession.tempDoc(cleanup, 'TypeEncoding.grist');
await gu.toggleSidePanel('right', 'open');
await driver.find('.test-right-tab-pagewidget').click();
await gu.waitForServer();
await driver.find('.test-config-data').click();
// The test doc already has a Custom View widget. It just needs to

View File

@ -188,7 +188,9 @@ describe('CustomWidgets', function () {
const reject = () => driver.find(".test-config-widget-access-reject").click();
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 gu.waitForServer(); // Wait for widgets to load.