Skip to content

Commit

Permalink
more extensive logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Büßemeyer authored and Michael Büßemeyer committed Dec 17, 2024
1 parent b3d194e commit bb4cf59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,13 @@ test.before("Retrieve dataset ids", async () => {
async () => {
const options = getDefaultRequestOptions(URL);
const url = `${URL}/api/datasets/disambiguate/sample_organization/${datasetName}/toId`;
console.error(`Requesting dataset ID for ${datasetName} from ${url}`);
const response = await fetch(url, options);
const optionsWithoutToken = {
...options,
headers: { ...options.headers, "X-Auth-Token": "" },
};
console.error(`with options: ${JSON.stringify(optionsWithoutToken)}`);
const text = await response.text();
console.error(`Dataset ID for ${datasetName}: ${text}`);
const { id } = JSON.parse(text);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ export function setupBeforeEachAndAfterEach() {
name: t.title, // add test name to BrowserStack session
"browserstack.username": process.env.BROWSERSTACK_USERNAME,
"browserstack.accessKey": process.env.BROWSERSTACK_ACCESS_KEY,
"browserstack.networkLogs": true,
};
const browser = await puppeteer.connect({
browserWSEndpoint: `ws://cdp.browserstack.com/puppeteer?caps=${encodeURIComponent(
Expand Down

0 comments on commit bb4cf59

Please sign in to comment.