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 2 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
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
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"author": "Widen",
"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