Merge pull request #1116 from appwrite/fix-e2e-flaky-locator

tests: fix flaky locator
This commit is contained in:
Torsten Dittmann authored and GitHub committed 2024-05-31 15:02:40 +02:00
commit 8b62bb6c80
3 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -14,7 +14,9 @@ jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
+1 -1
View File
@@ -10,7 +10,7 @@ test('upgrade - free tier', async ({ page }) => {
await page.getByRole('link', { name: 'upgrade' }).click();
await page.waitForURL('/console/organization-**/change-plan');
await page.locator('input[value="tier-1"]').click();
await page.getByRole('button', { name: ' Add', exact: true }).click();
await page.getByRole('button', { name: 'add' }).first().click();
await enterCreditCard(page);
// skip members
await page.getByRole('button', { name: 'change plan' }).click();
+1 -1
View File
@@ -24,7 +24,7 @@ export async function createProProject(page: Page): Promise<Metadata> {
await page.locator('id=plan').selectOption('tier-1');
await page.getByRole('button', { name: 'get started' }).click();
await page.waitForURL('/console/create-organization**');
await page.getByRole('button', { name: 'Add', exact: true }).click();
await page.getByRole('button', { name: 'Add' }).first().click();
await enterCreditCard(page);
// skip members
await page.getByRole('button', { name: 'create organization' }).click();