mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-04 05:46:55 +00:00
chore: upgrade pw
This commit is contained in:
@@ -25,7 +25,7 @@ test.describe('Attachment column', () => {
|
||||
});
|
||||
|
||||
for (let i = 12; i >= 8; i -= 2) {
|
||||
const filepath = [`${process.cwd()}/fixtures/sampleFiles/${i / 2}.json`];
|
||||
const filepath = [`${__dirname}/../../../fixtures/sampleFiles/${i / 2}.json`];
|
||||
await dashboard.grid.cell.attachment.addFile({
|
||||
index: i,
|
||||
columnHeader: 'testAttach',
|
||||
@@ -42,7 +42,7 @@ test.describe('Attachment column', () => {
|
||||
await dashboard.grid.cell.attachment.addFile({
|
||||
index: 4,
|
||||
columnHeader: 'testAttach',
|
||||
filePath: [`${process.cwd()}/fixtures/sampleFiles/sampleImage.jpeg`],
|
||||
filePath: [`${__dirname}/../../../fixtures/sampleFiles/sampleImage.jpeg`],
|
||||
});
|
||||
|
||||
await dashboard.rootPage.waitForTimeout(1000);
|
||||
@@ -77,7 +77,7 @@ test.describe('Attachment column', () => {
|
||||
await sharedForm.rootPage.waitForTimeout(500);
|
||||
await sharedForm.cell.attachment.addFile({
|
||||
columnHeader: 'testAttach',
|
||||
filePath: [`${process.cwd()}/fixtures/sampleFiles/1.json`],
|
||||
filePath: [`${__dirname}/../../../fixtures/sampleFiles/1.json`],
|
||||
skipElemClick: true,
|
||||
});
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ test.describe.skip('Expanded form files mode', () => {
|
||||
await dashboard.grid.cell.attachment.addFile({
|
||||
index: rowIndex,
|
||||
columnHeader: 'testAttach',
|
||||
filePath: filePathAppned.map(filePath => `${process.cwd()}/fixtures/sampleFiles/${filePath}`),
|
||||
filePath: filePathAppned.map(filePath => `${__dirname}/../../../fixtures/sampleFiles/${filePath}`),
|
||||
});
|
||||
|
||||
await dashboard.rootPage.waitForTimeout(500);
|
||||
|
||||
@@ -51,7 +51,7 @@ test.describe('Import', () => {
|
||||
|
||||
await dashboard.treeView.quickImport({ title: 'Microsoft Excel', baseTitle: context.base.title, context });
|
||||
await dashboard.importTemplate.import({
|
||||
file: `${process.cwd()}/fixtures/sampleFiles/simple.xlsx`,
|
||||
file: `${__dirname}/../../../fixtures/sampleFiles/simple.xlsx`,
|
||||
result: expected,
|
||||
});
|
||||
|
||||
|
||||
@@ -241,7 +241,7 @@ test.describe('Clipboard support', () => {
|
||||
await dashboard.grid.cell.attachment.addFile({
|
||||
index: 0,
|
||||
columnHeader: 'Attachment',
|
||||
filePath: [`${process.cwd()}/fixtures/sampleFiles/1.json`],
|
||||
filePath: [`${__dirname}/fixtures/sampleFiles/1.json`],
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -223,11 +223,11 @@ test.describe('Fill Handle', () => {
|
||||
test('Miscellaneous (Checkbox, attachment)', async () => {
|
||||
const fields = [
|
||||
{ title: 'Checkbox', value: 'true', type: 'checkbox' },
|
||||
{ title: 'Attachment', value: `${process.cwd()}/fixtures/sampleFiles/1.json`, type: 'attachment' },
|
||||
{ title: 'Attachment', value: `${__dirname}/../../../fixtures/sampleFiles/1.json`, type: 'attachment' },
|
||||
];
|
||||
|
||||
await p.dashboard.grid.cell.checkbox.click({ index: 0, columnHeader: 'Checkbox' });
|
||||
const filepath = [`${process.cwd()}/fixtures/sampleFiles/1.json`];
|
||||
const filepath = [`${__dirname}/../../../fixtures/sampleFiles/1.json`];
|
||||
await p.dashboard.grid.cell.attachment.addFile({
|
||||
index: 0,
|
||||
columnHeader: 'Attachment',
|
||||
|
||||
@@ -225,7 +225,7 @@ test.describe('Form view', () => {
|
||||
const sharedForm = new SharedFormPage(dashboard.rootPage);
|
||||
await sharedForm.cell.attachment.addFile({
|
||||
columnHeader: 'Attachment',
|
||||
filePath: [`${process.cwd()}/fixtures/sampleFiles/sampleImage.jpeg`],
|
||||
filePath: [`${__dirname}/../../../fixtures/sampleFiles/sampleImage.jpeg`],
|
||||
skipElemClick: true,
|
||||
});
|
||||
await sharedForm.cell.fillText({
|
||||
@@ -1356,7 +1356,7 @@ test.describe('Form view: field validation', () => {
|
||||
const sharedForm = new SharedFormPage(dashboard.rootPage);
|
||||
await sharedForm.cell.attachment.addFile({
|
||||
columnHeader: 'Attachment',
|
||||
filePath: [`${process.cwd()}/fixtures/sampleFiles/sampleImage.jpeg`],
|
||||
filePath: [`${__dirname}/../../../fixtures/sampleFiles/sampleImage.jpeg`],
|
||||
skipElemClick: true,
|
||||
});
|
||||
|
||||
@@ -1372,7 +1372,7 @@ test.describe('Form view: field validation', () => {
|
||||
|
||||
await sharedForm.cell.attachment.addFile({
|
||||
columnHeader: 'Attachment',
|
||||
filePath: [`${process.cwd()}/fixtures/sampleFiles/Image/2.png`],
|
||||
filePath: [`${__dirname}/../../../fixtures/sampleFiles/Image/2.png`],
|
||||
skipElemClick: true,
|
||||
});
|
||||
await attError.verify({ hasError: false });
|
||||
@@ -1405,7 +1405,7 @@ test.describe('Form view: field validation', () => {
|
||||
|
||||
await surveyForm.cell.attachment.addFile({
|
||||
columnHeader: 'Attachment',
|
||||
filePath: [`${process.cwd()}/fixtures/sampleFiles/sampleImage.jpeg`],
|
||||
filePath: [`${__dirname}/../../../fixtures/sampleFiles/sampleImage.jpeg`],
|
||||
skipElemClick: true,
|
||||
});
|
||||
|
||||
@@ -1421,7 +1421,7 @@ test.describe('Form view: field validation', () => {
|
||||
|
||||
await surveyForm.cell.attachment.addFile({
|
||||
columnHeader: 'Attachment',
|
||||
filePath: [`${process.cwd()}/fixtures/sampleFiles/Image/2.png`],
|
||||
filePath: [`${__dirname}/../../../fixtures/sampleFiles/Image/2.png`],
|
||||
skipElemClick: true,
|
||||
});
|
||||
await surveryAttError.verify({ hasError: false });
|
||||
|
||||
Reference in New Issue
Block a user