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

Month 13/step 1 #1

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
801308b
initial commit
c1ty-cat May 21, 2022
acff86c
initial layout
c1ty-cat May 21, 2022
4308418
finished string algorithm
c1ty-cat May 22, 2022
2e88eb9
Update string.tsx
c1ty-cat May 23, 2022
e98373a
done fib, styling remains
c1ty-cat May 23, 2022
3ae1aef
finished creating fibo layout
c1ty-cat May 23, 2022
722b70c
created layout for input in sorting component
c1ty-cat May 23, 2022
bfaa27c
step 1
c1ty-cat May 25, 2022
38e875f
step 2
c1ty-cat May 25, 2022
d85dcce
selection sort done
c1ty-cat May 26, 2022
40272d0
finished sorting
c1ty-cat May 26, 2022
d774b31
stack done
c1ty-cat May 27, 2022
eb4fcdf
began queue
c1ty-cat May 27, 2022
c6e7295
finished queue
c1ty-cat May 27, 2022
630ab9f
layout for list almost done
c1ty-cat May 28, 2022
8a4ec19
50% done - list
c1ty-cat May 29, 2022
252ee0a
done
c1ty-cat May 29, 2022
231c3b8
easy fixes
c1ty-cat May 30, 2022
19e22f7
moved algos to utils
c1ty-cat May 30, 2022
ab00c7f
I hate classes
c1ty-cat May 30, 2022
b8d97a0
began transition to classes
c1ty-cat May 30, 2022
951ed11
final fixes
c1ty-cat May 31, 2022
d843f27
Update README.md
c1ty-cat May 31, 2022
697b3dc
pain with fibo and string
c1ty-cat May 31, 2022
4c24d45
Merge branch 'month-12/step-1' of https://github.com/Wailingray/algos…
c1ty-cat May 31, 2022
d497b8c
more pain with sort
c1ty-cat Jun 1, 2022
b15b587
even more pain with sorting
c1ty-cat Jun 1, 2022
9751f79
pain with stack
c1ty-cat Jun 2, 2022
70f6218
pain with queue
c1ty-cat Jun 2, 2022
e9446b8
LinkedList 1st step
c1ty-cat Jun 3, 2022
cafe488
done
c1ty-cat Jun 4, 2022
076d3bd
cleaning
c1ty-cat Jun 5, 2022
441e8c6
Merge pull request #1 from Wailingray/month-12/step-1
c1ty-cat Jun 5, 2022
965e916
added packeges
c1ty-cat Jun 17, 2022
daa77cd
Package inconsistency and button tests
c1ty-cat Jun 18, 2022
34ee44f
circle done
c1ty-cat Jun 18, 2022
757ca6e
finished button and circle
c1ty-cat Jun 18, 2022
393abfe
Create string.test.js
c1ty-cat Jun 19, 2022
9c08b43
Create sorting.test.js
c1ty-cat Jun 19, 2022
2cac7fe
Update sorting.test.js
c1ty-cat Jun 19, 2022
95386f8
added cy routing tests
c1ty-cat Jun 22, 2022
b316e13
Create string-tests.cy.js
c1ty-cat Jun 22, 2022
300499f
Update string-tests.cy.js
c1ty-cat Jun 23, 2022
d407754
Create fibo-tests.cy.js
c1ty-cat Jun 23, 2022
04f70c8
Create stack-tests.cy.js
c1ty-cat Jun 23, 2022
18675b0
Create queue-tests.cy.js
c1ty-cat Jun 26, 2022
5af87d7
created list tests
c1ty-cat Jun 26, 2022
c48b57f
done
c1ty-cat Jun 26, 2022
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
45 changes: 45 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# http://editorconfig.org


# A special property that should be specified at the top of the file outside of

# any sections. Set to true to stop .editor config file search on current file

root = true

[*]
# Indentation style

# Possible values - tab, space

indent_style = space

# Indentation size in single-spaced characters

# Possible values - an integer, tab

indent_size = 2

# Line ending file format

# Possible values - lf, crlf, cr

end_of_line = lf

# File character encoding

# Possible values - latin1, utf-8, utf-16be, utf-16le

charset = utf-8

# Denotes whether to trim whitespace at the end of lines

# Possible values - true, false

trim_trailing_whitespace = true

# Denotes whether file should end with a newline

# Possible values - true, false

insert_final_newline = true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.env.development.local
.env.test.local
.env.production.local
.editorconfig

npm-debug.log*
yarn-debug.log*
Expand Down
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cSpell.enabled": true,
"cSpell.language": "en,ru"
}
323 changes: 12 additions & 311 deletions README.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from "cypress";

export default defineConfig({
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
},
});
4 changes: 4 additions & 0 deletions cypress/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"plugins": ["cypress"],
"extends": ["plugin:cypress/recommended"]
}
70 changes: 70 additions & 0 deletions cypress/e2e/fibo-tests.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
describe("Тесты страницы вывода последовательности Фибоначчи", () => {
beforeEach(function () {
cy.visit("http://localhost:3000/fibonacci");
});

describe("Проверка состояния кнопки", function () {
it("Кнопка верно меняет значение атрибута disabled", function () {
cy.contains("Развернуть").as("button");
cy.get("@button").should("be.disabled");
cy.get("input").type("123");
cy.get("@button").should("not.be.disabled");
cy.get("input").clear();
cy.get("@button").should("be.disabled");
});
});

describe("Проверка работы анимации алгоритма", function () {
it("Корректно выводит последовательность Фибоначчи", function () {
cy.get("input").type("4");
cy.contains("Развернуть").click();
cy.get("[class*=circle_circle]")
.should("have.length", 1)
.each(($el, index) => {
if (index === 0) expect($el).to.contain("1");
});

cy.wait(500);

cy.get("[class*=circle_circle]")
.should("have.length", 2)
.each(($el, index) => {
if (index === 0) expect($el).to.contain("1");
if (index === 1) expect($el).to.contain("1");
});

cy.wait(500);

cy.get("[class*=circle_circle]")
.should("have.length", 3)
.each(($el, index) => {
if (index === 0) expect($el).to.contain("1");
if (index === 1) expect($el).to.contain("1");
if (index === 2) expect($el).to.contain("2");
});

cy.wait(500);

cy.get("[class*=circle_circle]")
.should("have.length", 4)
.each(($el, index) => {
if (index === 0) expect($el).to.contain("1");
if (index === 1) expect($el).to.contain("1");
if (index === 2) expect($el).to.contain("2");
if (index === 3) expect($el).to.contain("3");
});

cy.wait(500);

cy.get("[class*=circle_circle]")
.should("have.length", 5)
.each(($el, index) => {
if (index === 0) expect($el).to.contain("1");
if (index === 1) expect($el).to.contain("1");
if (index === 2) expect($el).to.contain("2");
if (index === 3) expect($el).to.contain("3");
if (index === 4) expect($el).to.contain("5");
});
});
});
});
5 changes: 5 additions & 0 deletions cypress/e2e/is-available.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
describe('приложение запущено', function() {
it('приложение доступно по адресу localhost:3000', function() {
cy.visit('http://localhost:3000');
});
});
Loading