test: rewrite executions tests with playwright (#1207)

This commit is contained in:
Rıdvan Akca
2023-08-11 20:37:29 +03:00
committed by Rıdvan Akca
parent 8f7785e9d2
commit a5b31da3cc
5 changed files with 79 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
// @ts-check
const { test, expect } = require('../../fixtures/index');
test.describe('Executions page', () => {
test.beforeEach(async ({ page, executionsPage }) => {
await executionsPage.login();
await page.getByTestId('executions-page-drawer-link').click();
});
test('displays executions', async ({ page, executionsPage }) => {
await page.getByTestId('executions-loader').waitFor({
state: 'detached',
});
await expect(page.getByTestId('execution-row').first()).toBeVisible();
await executionsPage.screenshot({ path: 'Executions.png' });
});
});