Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-organize test files and modify test scenarios for common cases #946

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as assert from "assert";
import { Given, When, Then } from "../utils/world";
import type { Permission } from "../utils/credentials";
import { TOKEN_PERMISSIONS } from "../utils/credentials";
import { generateCsvRow } from "../utils/helper";
import { QueryBuilder } from "../utils/queryBuilder";
import { Given, When, Then } from "../../utils/world";
import type { Permission } from "../../utils/credentials";
import { TOKEN_PERMISSIONS } from "../../utils/credentials";
import { generateCsvRow } from "../../utils/helper";
import { QueryBuilder } from "../../utils/queryBuilder";

Given(
"Load environment variable {string} as {string}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as assert from "assert";
import { Then } from "../utils/world";
import { Then } from "../../utils/world";

Then("The app {string} should have no records", function (appKey) {
const recordNumbers = this.getRecordNumbersByAppKey(appKey);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as assert from "assert";
import { Given, Then } from "../utils/world";
import { Given, Then } from "../../utils/world";
import fs from "fs";
import path from "path";
import iconv from "iconv-lite";
import {
compareBuffers,
generateCsvRow,
validateRequireColumnsInTable,
} from "../utils/helper";
} from "../../utils/helper";

Given("I have a directory {string}", function (directory: string) {
fs.mkdirSync(path.join(this.workingDir, directory));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as assert from "assert";
import { Given, Then } from "../utils/world";
import { Given, Then } from "../../utils/world";
import fs from "fs";
import type { SupportedEncoding } from "../utils/helper";
import { SUPPORTED_ENCODING, generateCsvRow } from "../utils/helper";
import type { SupportedEncoding } from "../../utils/helper";
import { SUPPORTED_ENCODING, generateCsvRow } from "../../utils/helper";
import path from "path";
import { QueryBuilder } from "../utils/queryBuilder";
import { QueryBuilder } from "../../utils/queryBuilder";

Given(
"The CSV file {string} with content as below:",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as assert from "assert";
import { Then } from "../utils/world";
import { Then } from "../../utils/world";

Then(
"I should get the version formatted in {string}",
Expand Down
Loading