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

Update docs #48

Merged
merged 3 commits into from
Dec 4, 2023
Merged
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
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @Widen/frontend
* @mskelton @avo @joephela
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ISC License

Copyright (c) 2022, Widen Enterprises, Inc.
Copyright (c) 2023, Lariat Team

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,37 @@
# Lariat
# Lariat for Playwright

[![Build](https://github.com/Widen/lariat/actions/workflows/build.yml/badge.svg)](https://github.com/Widen/lariat/actions/workflows/build.yml)
[![Build](https://github.com/lariat-js/playwright/actions/workflows/build.yml/badge.svg)](https://github.com/lariat-js/playwright/actions/workflows/build.yml)
[![npm](https://img.shields.io/npm/v/lariat)](https://www.npmjs.com/package/lariat)
[![changesets](https://img.shields.io/badge/maintained%20with-changesets-blue)](https://github.com/atlassian/changesets)

Page object framework for end-to-end testing in Playwright.
Page object framework for [Playwright](https://playwright.dev).

## Installation

### npm
npm

```sh
npm install lariat
```

### Yarn
Yarn

```sh
yarn add lariat
```

pnpm

```sh
pnpm add lariat
```

Bun

```sh
bun add lariat
```

## Basic Usage

At the core of Lariat is the `Collection` class. This class is used to represent
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "lariat",
"version": "2.0.1",
"description": "Page object framework for end-to-end testing in Playwright.",
"author": "Widen",
"author": "Lariat Team",
"license": "ISC",
"packageManager": "yarn@3.2.1",
"repository": "github:Widen/lariat",
"homepage": "https://github.com/Widen/lariat#readme",
"repository": "github:lariat-js/playwright",
"homepage": "https://github.com/lariat-js/playwright#readme",
"bugs": {
"url": "https://github.com/Widen/lariat/issues"
"url": "https://github.com/lariat-js/playwright/issues"
},
"keywords": [
"lariat",
Expand Down
4 changes: 2 additions & 2 deletions test/frame-locators.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ test.describe.parallel('Frame locators', () => {
await page.setContent(`
<iframe src="https://example.com" class="my-frame"></iframe>
<iframe src="https://playwright.dev" class="my-frame"></iframe>
<iframe src="https://overreacted.io" class="my-frame"></iframe>
<iframe src="https://react.dev/learn" class="my-frame"></iframe>
`)
const examplePage = new ExamplePage(page)
const frame = examplePage.inner

await expect(frame.first().header).toHaveText('Example Domain')
await expect(frame.nth(1).header).toContainText('Playwright')
await expect(frame.last().header).toHaveText('Overreacted')
await expect(frame.last().header).toHaveText('Quick Start')
})
})
})
Loading