Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@empiricalrun/playwright-utils
Advanced tools
Playwright utils for test code repos of our customers
locator.query
APIThis dynamically generates a random email address that can be used for the test (e.g. invite a new user).
import { EmailClient } from "@empiricalrun/playwright-utils";
const client = new EmailClient();
const address = client.getAddress();
// Input the `address` in the application
// that sends the email.
// Get email received on the `address`
const email = await client.waitForEmail();
This uses a known (static) email that can be used to login into an application.
This needs an email id (e.g. test-login-user
). The email id
is appended with the domain (managed internally) to get the full
email address.
import { EmailClient } from "@empiricalrun/playwright-utils";
const emailId = `test-login-user`;
const client = new EmailClient({ emailId });
const address = client.getAddress(); // Returns full address with domain
// Get email received on the `address`
const email = await client.waitForEmail();
// Get login OTP
const loginCode = email.codes[0];
To use the custom HTML reporter, add the following to your Playwright config:
import { defineConfig } from "@playwright/test";
import { baseConfig } from "@empiricalrun/playwright-utils";
export default defineConfig({
...baseConfig,
...
});
FAQs
Playwright utils for test code repos of our customers
The npm package @empiricalrun/playwright-utils receives a total of 1,790 weekly downloads. As such, @empiricalrun/playwright-utils popularity was classified as popular.
We found that @empiricalrun/playwright-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.