Skip to content

Commit

Permalink
fix: discord links
Browse files Browse the repository at this point in the history
  • Loading branch information
crookse committed Nov 4, 2023
1 parent d080707 commit c102971
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ Most tutorials will follow the format below:
test that your application is working.

If at any time you get confused and the documentation is not helping you, hit us
up in our [Discord server](https://discord.gg/RFsCSaHRWK) and we will be glad to
up in our [Discord server](https://discord.gg/UuYKTVMW) and we will be glad to
provide you with guidance!
4 changes: 2 additions & 2 deletions docs/sinco/v2.x/1_getting_started/1_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ Learn more about Sinco [here](about-sinco).

// Do any actions and assertions, in any order
await Sinco.assertUrlIs("https://drash.land/");
await Sinco.click('a[href="https://discord.gg/RFsCSaHRWK"]'); // This element will take the user to Sinco's documentation
await Sinco.click('a[href="https://discord.gg/UuYKTVMW"]'); // This element will take the user to Sinco's documentation
await Sinco.waitForPageChange();
await Sinco.assertUrlIs("https://discord.com/invite/RFsCSaHRWK");
await Sinco.assertUrlIs("https://discord.com/invite/UuYKTVMW");

// Once finished, close to clean up any processes
await Sinco.done();
Expand Down
6 changes: 3 additions & 3 deletions docs/sinco/v2.x/2_tutorials/2_click_elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ In this tutorial, you will:
Deno.test("My web app works as expected", async () => {
const Sinco = await buildFor("chrome");
await Sinco.goTo("https://drash.land");
await Sinco.click('a[href="https://discord.gg/RFsCSaHRWK"]');
await Sinco.click('a[href="https://discord.gg/UuYKTVMW"]');
await Sinco.waitForPageChange();
await Sinco.assertUrlIs("https://discord.com/invite/RFsCSaHRWK");
await Sinco.assertUrlIs("https://discord.com/invite/UuYKTVMW");
await Sinco.done();
});
```

Here you are going to create your headless browser instance, and navigate to
https://drash.land. Once the page has loaded, you will click an element matching
the `a[href="https://discord.gg/RFsCSaHRWK"]` selector, which will send you to a
the `a[href="https://discord.gg/UuYKTVMW"]` selector, which will send you to a
different page. To assert this, you are going to use `.assertUrlIs()` to assert
the page you are currently on, has now changed.

Expand Down
4 changes: 2 additions & 2 deletions docs/sinco/v2.x/2_tutorials/6_waiting.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ In this tutorial, you will:
const Sinco = await buildFor("chrome");
await Sinco.goTo("https://drash.land");
await Sinco.assertUrlIs("https://drash.land/");
await Sinco.click('a[href="https://discord.gg/RFsCSaHRWK"]');
await Sinco.click('a[href="https://discord.gg/UuYKTVMW"]');
await Sinco.waitForPageChange();
await Sinco.assertUrlIs("https://discord.com/invite/RFsCSaHRWK");
await Sinco.assertUrlIs("https://discord.com/invite/UuYKTVMW");
await Sinco.done();
});
```
Expand Down
8 changes: 4 additions & 4 deletions docs/sinco/v2.x/2_tutorials/8_using_within_docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,15 @@ container, and execute your test file.
Deno.test("My web app works as expected", async () => {
const Chrome = await buildFor("chrome");
await Chrome.goTo("https://drash.land");
await Chrome.click('a[href="https://discord.gg/RFsCSaHRWK"]');
await Chrome.click('a[href="https://discord.gg/UuYKTVMW"]');
await Chrome.waitForPageChange();
await Chrome.assertUrlIs("https://discord.com/invite/RFsCSaHRWK");
await Chrome.assertUrlIs("https://discord.com/invite/UuYKTVMW");
await Chrome.done();
const Firefox = await buildFor("chrome");
await Firefox.goTo("https://drash.land");
await Firefox.click('a[href="https://discord.gg/RFsCSaHRWK"]');
await Firefox.click('a[href="https://discord.gg/UuYKTVMW"]');
await Firefox.waitForPageChange();
await Firefox.assertUrlIs("https://discord.com/invite/RFsCSaHRWK");
await Firefox.assertUrlIs("https://discord.com/invite/UuYKTVMW");
await Firefox.done();
});
```
Expand Down
4 changes: 2 additions & 2 deletions docs/sinco/v3.x/1_getting_started/1_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ Learn more about Sinco [here](about-sinco).
throw e;
}
const element = await page.querySelector(
'a[href="https://discord.gg/RFsCSaHRWK"]',
'a[href="https://discord.gg/UuYKTVMW"]',
);
await element.click(); // This element will take the user to Sinco's documentation
await page.waitForPageChange();
const location = await page.location(); // Get all data before we close, then we can safely assert
// Once finished, close to clean up any processes
await Sinco.done();

assertEquals(location, "https://discord.com/invite/RFsCSaHRWK");
assertEquals(location, "https://discord.com/invite/UuYKTVMW");
});
```

Expand Down
4 changes: 2 additions & 2 deletions docs/sinco/v3.x/2_tutorials/3_page/5_waiting.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ In this tutorial, you will:
const Sinco = await buildFor("chrome");
const page = await Sinco.goTo("https://drash.land");
const element = await page.querySelector(
'a[href="https://discord.gg/RFsCSaHRWK"]',
'a[href="https://discord.gg/UuYKTVMW"]',
);
await element.click();
await page.waitForPageChange();
const location = await page.location();
await Sinco.done();
assertEquals(location, "https://discord.com/invite/RFsCSaHRWK");
assertEquals(location, "https://discord.com/invite/UuYKTVMW");
});
```

Expand Down
6 changes: 3 additions & 3 deletions docs/sinco/v3.x/2_tutorials/4_element/2_clicking.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ In this tutorial, you will:
const Sinco = await buildFor("chrome");
const page = await Sinco.goTo("https://drash.land");
const elem = await page.querySelector(
'a[href="https://discord.gg/RFsCSaHRWK"]',
'a[href="https://discord.gg/UuYKTVMW"]',
);
await elem.click();
await page.waitForPageChange();
const location = await page.location();
await Sinco.done();
assertEquals(location, "https://discord.com/invite/RFsCSaHRWK");
assertEquals(location, "https://discord.com/invite/UuYKTVMW");
});
```

Here you are going to create your headless browser instance, and navigate to
`https://drash.land`. Once the page has loaded, you will click an element
matching the `a[href="https://discord.gg/RFsCSaHRWK"]` selector, which will send
matching the `a[href="https://discord.gg/UuYKTVMW"]` selector, which will send
you to a different page.

## Verification
Expand Down
8 changes: 4 additions & 4 deletions docs/sinco/v3.x/2_tutorials/6_using_within_docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,23 +117,23 @@ container, and execute your test file.
const Chrome = await buildFor("chrome");
const chromePage = await Chrome.goTo("https://drash.land");
const chromePageElem = await chromePage.querySelector(
'a[href="https://discord.gg/RFsCSaHRWK"]',
'a[href="https://discord.gg/UuYKTVMW"]',
);
await chromePageElem.click();
await chromePage.waitForPageChange();
const chromePageLocation = await chromePage.location();
assertEquals(chromePageLocation, "https://discord.com/invite/RFsCSaHRWK");
assertEquals(chromePageLocation, "https://discord.com/invite/UuYKTVMW");
await Chrome.done();
const Firefox = await buildFor("firefox");
const firefoxPage = await Firefox.goTo("https://drash.land");
const firefoxPageElem = await firefoxPage.querySelector(
'a[href="https://discord.gg/RFsCSaHRWK"]',
'a[href="https://discord.gg/UuYKTVMW"]',
);
await firefoxePageElem.click();
await firefoxPage.waitForPageChange();
const firefoxPageLocation = await firefoxPage.location();
await Firefox.done();
assertEquals(firefoxPageLocation, "https://discord.com/invite/RFsCSaHRWK");
assertEquals(firefoxPageLocation, "https://discord.com/invite/UuYKTVMW");
});
```

Expand Down
4 changes: 2 additions & 2 deletions docs/sinco/v4.x/1_getting_started/1_introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Learn more about Sinco [here](about-sinco).
throw e;
}
const element = await page.querySelector(
'a[href="https://discord.gg/RFsCSaHRWK"]',
'a[href="https://discord.gg/UuYKTVMW"]',
);
await element.click({
waitFor: "navigation",
Expand All @@ -44,7 +44,7 @@ Learn more about Sinco [here](about-sinco).
// Once finished, close to clean up any processes
await browser.close();

assertEquals(location, "https://discord.com/invite/RFsCSaHRWK");
assertEquals(location, "https://discord.com/invite/UuYKTVMW");
});
```

Expand Down
6 changes: 3 additions & 3 deletions docs/sinco/v4.x/2_tutorials/4_element/2_clicking.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ In this tutorial, you will:

// Click an element that will change a pages location
const discordElem = await page.querySelector(
'a[href="https://discord.gg/RFsCSaHRWK"]',
'a[href="https://discord.gg/UuYKTVMW"]',
);
await discordElem.click({
waitFor: "navigation",
Expand All @@ -77,15 +77,15 @@ In this tutorial, you will:
page2Location,
"https://github.com/drashland",
);
assertEquals(page1Location, "https://discord.com/invite/RFsCSaHRWK");
assertEquals(page1Location, "https://discord.com/invite/UuYKTVMW");
});
```

Here you are going to create your headless browser instance, and navigate to
`https://drash.land`. Once the page has loaded, you will click an element
matching the `a` selector with middle mouse button. This will open a new tab
with the href and we will then attach to this new tab. We then click an element
on the first tab matching the `a[href="https://discord.gg/RFsCSaHRWK"]` selector
on the first tab matching the `a[href="https://discord.gg/UuYKTVMW"]` selector
and the flag to `waitForNavigation`, which will send your first tab to a
different page and wait for it to load completely.

Expand Down
4 changes: 2 additions & 2 deletions docs/sinco/v4.x/2_tutorials/6_using_within_docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ container, and execute your test file.
const { browser: chrome, page: chromePage } = await buildFor("chrome");
await chromePage.location("https://drash.land");
const chromePageElem = await chromePage.querySelector(
'a[href="https://discord.gg/RFsCSaHRWK"]',
'a[href="https://discord.gg/UuYKTVMW"]',
);
await chromePageElem.click({
waitFor: "navigation",
});
const chromePageLocation = await chromePage.location();
assertEquals(chromePageLocation, "https://discord.com/invite/RFsCSaHRWK");
assertEquals(chromePageLocation, "https://discord.com/invite/UuYKTVMW");
await chrome.close();
});
```
Expand Down
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ function Social() {
<GitHubIcon />
</a>
<a
href="https://discord.gg/RFsCSaHRWK"
href="https://discord.gg/UuYKTVMW"
target="_blank"
rel="noreferrer"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/snippets/AboutUs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function AboutUs() {
WebSockets? We&apos;ll show you the way. And if you ever get stuck,
just send us a message in our{" "}
<a
href="https://discord.gg/RFsCSaHRWK"
href="https://discord.gg/UuYKTVMW"
target="_BLANK"
rel="noreferrer"
>
Expand Down

1 comment on commit c102971

@vercel
Copy link

@vercel vercel bot commented on c102971 Nov 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.